Hi. I’m trying to get applescript to switch off Bluetooth (amongst other things) for a setup program. This is working up to the last line and then I get a NSRecieverEvaluationScriptError: 4. I have UI Element Inspector but how do I identify the button properly?
tell application "System Events" to tell process "System Preferences"
click the menu item "Bluetooth" of the menu "View" of menu bar 1
delay 1
click the radio button "Settings" of tab group 1 of window "Bluetooth"
click the button "Turn Bluetooth Off" of window "Bluetooth"
end tell
Thanks for your time
Mosh
Model: Mac mini
Browser: Opera/9.10 (Windows NT 5.1; U; en)
Operating System: Mac OS X (10.4)