Re: iSub Toggle
Re: iSub Toggle
- Subject: Re: iSub Toggle
- From: email@hidden
- Date: Thu, 24 Jun 2004 23:52:57 -0400
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.