Re: get current system volume
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