Mute not scriptable?
Mute not scriptable?
- Subject: Mute not scriptable?
- From: Robert Poland <email@hidden>
- Date: Mon, 19 Jan 2004 10:14:06 -0700
Hi,
I'm trying to run this script, with little success.
----
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.sound"
end tell
tell application "System Events" to tell process "System Preferences"
to tell window 1 -- to tell tab group 1
tell checkbox "Show volume in menu bar" to if value is 0 then
click
repeat until value is 1
end repeat
end if
tell checkbox "Mute" to if value is 1 then
click
repeat until value is 0
end repeat
end if
end tell
----
tell checkbox "Show volume in menu bar" works fine but tell checkbox
"Mute" gives the error; "System Events got an error:
NSRecieverEvaluationScriptError: 4"
System Preferences dictionary was no help.
Command "set soundVolume to N" doesn't override Mute.
iMac FP 800, OS 10.3.2.
Tia,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
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.