Re: Need help scripting System Prefs (Sound)
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.