• 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: 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.


  • Follow-Ups:
    • Re: iSub Toggle
      • From: David Andrews <email@hidden>
References: 
 >Re: iSub Toggle (From: email@hidden)

  • Prev by Date: Re: iSub Toggle
  • Next by Date: extracting attachments from Apple Mail as file
  • Previous by thread: Re: iSub Toggle
  • Next by thread: Re: iSub Toggle
  • Index(es):
    • Date
    • Thread