Re: iSub Toggle
Re: iSub Toggle
- Subject: Re: iSub Toggle
- From: Peter Vandewalle <email@hidden>
- Date: Fri, 25 Jun 2004 10:01:36 +0200
Seems to have a problem with the click checkbox line. "System Events
got an error: NSReceiverEvaluationScriptError : 4" The code doesn't
seem to find the Output tab or the checkbox...
Thanks anyway,
PTR
On 25-jun-04, at 05:52, email@hidden wrote:
>
The following code brings forth 'System Preferences' 'Sound' utility
>
and toggles its 'Mute' check box.
>
>
----- Code starts here -----
>
>
-- A 'System Preferences' 'Sound' utility 'Mute' check box toggling
>
demonstration.
>
>
tell application "System Preferences"
>
activate -- Set 'System Preferences' as the front most process.
>
>
-- Display the 'Sound' Utility of 'System Preferences'.
>
set current pane to pane "com.apple.preference.sound"
>
end tell
>
>
tell application "System Events"
>
tell process "System Preferences"
>
>
-- Toggle the state of the 'Mute' button.
>
click checkbox 1 of group 1 of window 1
>
>
end tell
>
end tell
>
>
tell application "System Preferences" to quit
>
>
----- Code ends here -----
>
>
--
>
>
SJWL
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.