Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobsalmela/c34133f552071bcbe4f2 to your computer and use it in GitHub Desktop.
Save jacobsalmela/c34133f552071bcbe4f2 to your computer and use it in GitHub Desktop.
Starts the system check for TestNav
# Click full-screen button twice so all computers have the Safari window in the same position
osascript -e 'tell application "System Events"
set frontmost of process "Safari" to true
tell process "Safari"
click button 4 of window 1
end tell
end tell'
# Sleep for a bit seconds to make sure full screen is fully-activated
sleep 4
# Click Start button of System Check page
# Uncomment coordinates for your model listed below
# Or create your own based on the size of your screen and position of the Safari window
# iMac Intel (27-inch, Early 2013)
# iMac Intel (21.5-inch, Mid 2011)
click -x 530 -y 375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment