• 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: Robert Poland <email@hidden>
  • Date: Thu, 3 Mar 2005 14:10:00 -0700

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

did you run this ...?:-) or is Standard Additions not automatically installed? anyway, I get an error (not that I am not grateful to you and everyone else..)

This is part of a script I run several times a day. On OS 10.3.8.

set currentVolume to (output volume of (get volume settings)) as string
set muteVolume to 1 -- a 0 here interferes with the mute command
set middleVolume to 50
set highVolume to 100
set soundVolume to middleVolume

if (currentVolume) ‚ soundVolume then
	set volume output volume (soundVolume)
	if soundVolume ‚ muteVolume then
		set volume output muted (false)
		beep
	else
		set volume output muted (true)
	end if
end if
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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


References: 
 >Re: get current system volume (From: Jason Davies <email@hidden>)

  • Prev by Date: Re: get current system volume
  • Next by Date: Re: get current system volume
  • Previous by thread: Re: Hiding ScriptingAdditions.osax
  • Next by thread: Re: get current system volume
  • Index(es):
    • Date
    • Thread