Skip to content

Instantly share code, notes, and snippets.

@phs
Created June 2, 2013 08:43
Show Gist options
  • Save phs/5693053 to your computer and use it in GitHub Desktop.
Save phs/5693053 to your computer and use it in GitHub Desktop.
Applescript to open up the app store and search for Xcode
tell application "App Store"
activate
delay 5 -- wait for it to start
end tell
tell application "System Events"
tell window "App Store" of process "App Store"
-- Search for Xcode
tell text field 1 of group 7 of tool bar 1
set value to "Xcode"
click button 1
delay 2
end tell
-- ...
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment