Re: get volume
Re: get volume
- Subject: Re: get volume
- From: Charles Ross <email@hidden>
- Date: Wed, 16 Oct 2002 10:30:51 -0700
Bill,
Normally I wouldn't mind using a scripting addition, but this is for a
client and there's no way I can guarantee that the addition would be
installed on everyone's machine. It's not critical. I was interested
because the script trashes files it creates, and therefore the OS makes
the trash sound every time this happens, which seems disrupting to me.
Thanks for the response. I take it there's no built-in way to get the
volume.
Chuck
On Wednesday, October 16, 2002, at 06:11 AM, Bill White wrote:
Chuck,
If you don't mind using a third party scripting addition, Jon's
Commands
offers you an option. It's still in beta; you can download it from
http://www.seanet.com/~jonpugh/software/
sound volume: Returns the current system sound volume. (defined in:
Jons
Commands.osax)
sound volume
Result: small integer -- The volume level, from 0 to 7.
So your script would go something like this:
set currentVolume to sound volume -- capture current setting
set volume 0 -- mute
-- do things here
set volume currentVolume -- restore setting
Hope this helps.
Bill
I see from the Scripting Additions dictionary in Mac OS X that there
is
a set volume command. I would like to find out what the volume is,
mute the volume, perform some operations and then restore the volume
to
its original setting. Is there some way to get the current value of
the volume?
--
Charles E. Ross
Developer & Writer
(661) 943-9169
fax: (253) 663-0082
email@hidden
_______________________________________________
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.