Skip to content

Instantly share code, notes, and snippets.

@emanon001
Created January 21, 2015 12:51
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 emanon001/30e399487ac9dbe602ff to your computer and use it in GitHub Desktop.
Save emanon001/30e399487ac9dbe602ff to your computer and use it in GitHub Desktop.
Click "Not Yet" button of OSCulator
on run
tell application "System Events"
set processName to "OSCulator"
if not (application process processName exists) then
return
end if
set p to application process processName
set windowName to "OSCulator"
if not (window windowName of p exists) then
return
end if
set w to window windowName of p
set elementName to "Not yet"
if not exists UI Element elementName of w then
return
end if
set e to UI Element elementName of w
click e
end tell
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment