Created
May 22, 2012 11:21
-
-
Save Capncavedan/2768444 to your computer and use it in GitHub Desktop.
AppleScript bits to help find UI elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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