i have been trying to get this script to work:
but applescript editor comes up with
any help would be appreciated, thanks.
tell application "System Preferences"
activate
end tell
tell application "System Preferences"
activate
set current pane to pane "com.apple.preferences.Bluetooth"
tell application "System Events"
tell process "System Preferences"
click radio button "On" of window "Bluetooth"
tell application "System Preferences"
quit
end tell
end tell
end tell
end tell
but applescript editor comes up with
after opening system prefs and navigating to Bluetooth pane.System Events got an error: Cant get radio button "On" of window "Bluetooth" of process "System Preferences".
any help would be appreciated, thanks.