Re: get/set volume?
Re: get/set volume?
- Subject: Re: get/set volume?
- From: Andy Wylie <email@hidden>
- Date: Sat, 14 Sep 2002 09:22:19 +1200
on Fri, 13 Sep 2002 12:07:39 -0500 Gibbons Burke wrote:
>
The Standard Additions osax has a command to set the volume of the system (on a
0-7 scale). Is there a way to find out the current volume level setting?
I don't think so, I use Jon's 'sound volume'...
property _List : {"0", "My Level", "1", "2", "3", "4", "5", "6", "7", "8"}
property bla : "System Sound Volume Level"
if (sound volume with large range) +ImA 1 then --Get present setting for list
default
set curVol to sound volume
else
set curVol to "My Level"
end if
set newVol to choose from list _List with prompt bla default items curVol
if result = false then return
if newVol = {"My Level"} then
set sound volume to 1 with large range
else
set sound volume to newVol
end if
sound volume --necessary
_____________________________ Andy
_______________________________________________
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.