Last active
September 26, 2019 02:06
-
-
Save minacle/41bb9eac70e4bdeb8c5147fc0e9900b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell process "Xcode" | |
set frontmost to true | |
tell menu bar 1 | |
set moveTabToNewWindow to a reference to menu item "Move Tab to New Window" of menu "Window" | |
if enabled of moveTabToNewWindow is true then | |
click moveTabToNewWindow | |
end if | |
tell menu "View" | |
set hideToolbar to a reference to menu item "Hide Toolbar" | |
if hideToolbar exists then | |
click hideToolbar | |
end if | |
set hideNavigator to a reference to menu item "Hide Navigator" of menu of menu item "Navigators" | |
if hideNavigator exists then | |
click hideNavigator | |
end if | |
end tell | |
end tell | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment