• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iSub Toggle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: iSub Toggle
      • From: Peter Vandewalle <email@hidden>
  • Prev by Date: Re: Second-Time conversion
  • Next by Date: Re: iSub Toggle
  • Previous by thread: iSub Toggle
  • Next by thread: Re: iSub Toggle
  • Index(es):
    • Date
    • Thread