• 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: Need help scripting System Prefs (Sound)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help scripting System Prefs (Sound)


  • Subject: Re: Need help scripting System Prefs (Sound)
  • From: Jamie Eastwood <email@hidden>
  • Date: Thu, 13 Mar 2003 11:47:59 +0000

Hi Jonathan,

Here is a script for changing the output options. You may need to
change the 'row' that you select depending on what you want your output
option to be.

Jamie

tell application "System Events"
activate
end tell

tell application "System Preferences"
activate
end tell

tell application "System Events"
tell process "System Preferences"
click menu item "Sound" of menu "View" of menu bar 1
end tell
end tell


tell application "System Events"
click radio button "Output" of tab group 1 of window "Sound" of
process "System Preferences"
end tell


tell window "Sound"
tell application "System Events"

select row 1 of table 1 of scroll area 1 of tab group 1 of window
"Sound" of application process "System Preferences"

end tell
end tell
_______________________________________________
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.

  • Prev by Date: Re: Need help scripting System Prefs (Displays)
  • Next by Date: Re: scripting mail to select mailboxes
  • Previous by thread: Re: Need help scripting System Prefs (Sound)
  • Next by thread: Illustrator Newbie question 2
  • Index(es):
    • Date
    • Thread