Help scripting fax setting in System Preferences
Help scripting fax setting in System Preferences
- Subject: Help scripting fax setting in System Preferences
- From: Steve Caine <email@hidden>
- Date: Sun, 08 Feb 2009 16:04:21 -0500
Hello,
I'm trying to turn on/off the "Receive faxes on this computer"
checkbox in the Printing and Fax pane of System Preferences in Mac OS
X 10.4 (Tiger).
I found a working example for changing another system setting:
-- from http://macscripter.net/viewtopic.php?id=25708
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.desktopscreeneffect"
end tell
tell application "System Events"
tell application process "System Preferences"
click checkbox "Change picture:" of group 1 of tab group 1 of
window "Desktop & Screen Saver"
end tell
end tell
so this is what I'm trying:
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.printfax"
reveal anchor "fax" of pane id "com.apple.preference.printfax"
end tell
tell application "System Events"
tell application process "System Preferences"
click checkbox "Receive faxes on this computer" of group 1 of
tab group 2 of window "Print & Fax"
end tell
end tell
but I get this error in the event log:
tell application "System Preferences"
activate
current application
activate
set current pane to pane id "com.apple.preference.printfax"
reveal anchor "fax" of pane id "com.apple.preference.printfax"
end tell
tell application "System Events"
click checkbox "Receive faxes on this computer" of group 1 of tab
group 2 of window "Print & Fax" of application process "System
Preferences"
"System Events got an error: NSReceiverEvaluationScriptError: 4"
I've tried all the variations I can think of ("group 2 of tab group
2", adding a 2-second delay between the two main tell blocks, etc.)
but the error is always the same.
Any suggestions?
(I have verified that "Enable access for assistive devices" is turned
on in the "Universal Access" panel of System Preferences.)
Thanks in advance for any help.
Steve Caine
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden