• 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
Mute not scriptable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Mute not scriptable?
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Custom Icons?
  • Next by Date: String searching
  • Previous by thread: Re: Custom Icons?
  • Next by thread: Re: Mute not scriptable?
  • Index(es):
    • Date
    • Thread