Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ashton-W/6805525 to your computer and use it in GitHub Desktop.
Save Ashton-W/6805525 to your computer and use it in GitHub Desktop.
#!/usr/bin/osascript
-- Open Xcode Organizer
-- To use, make sure "Enable access for assistive devices" is enabled in the Universal Access pref pane
tell application "System Events"
tell process "Xcode"
-- Activate Xcode if necessary
set frontmost to true
-- Open the Organizer
keystroke "2" using {shift down, command down}
set organizer to window 1
-- Select the Documentation panel if it's not already selected
if the title of organizer is not "Organizer - Devices" then
click button "Devices" of tool bar 1 of organizer
delay 0.1
set organizer to window 1
end if
-- Move focus to the search field
-- set searchField to text field 1 of splitter group 1 of organizer
-- set searchField's focused to true
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment