Skip to content

Instantly share code, notes, and snippets.

@Capncavedan
Created May 22, 2012 11:21
Show Gist options
  • Select an option

  • Save Capncavedan/2768444 to your computer and use it in GitHub Desktop.

Select an option

Save Capncavedan/2768444 to your computer and use it in GitHub Desktop.
AppleScript bits to help find UI elements
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
set visible to true
click menu item "Backblaze Backup" of the menu "View" of menu bar 1
click button "Settings..." of the first group of the window "Backblaze Backup"
--return every UI element of tab group 1 of front sheet of front window
--return name of every UI element of front window
--delay 3
click radio button "Performance" of tab group 1 of the front sheet of the window "Backblaze Backup"
delay 1
set value of the first value indicator of the first slider of the first tab group of the first sheet of the window "Backblaze Backup" to 50
delay 1
click button "OK" of the first sheet of the window "Backblaze Backup"
--return every UI element of tool bar 2 of window "Backblaze Backup"
--return name of every UI element of tool bar 2 of window "Backblaze Backup"
end tell
end tell
tell application "System Preferences"
quit
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment