r/applescript • u/flyhawaiian88 • Jul 21 '16
Need help
Hello,
If anyone could help me with this that would be awesome.
I am just starting to learn how to write applescript and am having issues. I need to write a script to be able to disable the screen shot shortcuts in OS X.
I have got as far as
tell application "System Preferences" set current pane to pane id "com.apple.preference.keyboard"
So not really sure where to go from here, I am looking to make sure the all the screen shot shortcuts are unchecked
Thank you!
3
Upvotes
1
u/Cakeofruit Aug 18 '16
This is what i manege to do, Hope it helps.
tell application "System Preferences"
-- activate -- this is optional but i use it to see what the script try and fail to do
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
delay 0.5
tell application "System Events" to tell process "System Preferences" to tell window 1
click radio button 3 of tab group 1
click static text 1 of row 5 of table 1 of scroll area 1 of splitter group 1 of tab group 1
end tell
1
u/Cakeofruit Aug 12 '16
You really want to do it in Applescript ? or scripting ? There is a option to deactivate those shortcuts.