• 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: get current system volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get current system volume


  • Subject: Re: get current system volume
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 3 Mar 2005 14:38:40 -0500

On Mar 3, 2005, at 11:35 AM, email@hidden wrote:
I can set the system volume easily enough but can I get the current one
(writing a script that briefly mutes the Mac and want to go back to
whatever volume I was at before). Have tried stuff like 'get volume' and
a few million variations and thrown them at the Finder and Sytem
Events...

"get sound volume" and "set sound volume" are parts of the Standard Additions osax. There's no need to use them in a tell block.


set x to sound volume
set sound volume to 0
delay 10
set sound volume to x

Marc [3/3/05  2:30:51 PM]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: get current system volume
      • From: Jason Davies <email@hidden>
  • Prev by Date: Scripting Quark XPress palettes
  • Next by Date: Satimage or AppleScript Text Parsing
  • Previous by thread: Re: get current system volume
  • Next by thread: Re: get current system volume
  • Index(es):
    • Date
    • Thread