• 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/set volume?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Sorting? [sorted]
  • Next by Date: Re: Sorting? [sorted]
  • Previous by thread: get/set volume?
  • Next by thread: iCal
  • Index(es):
    • Date
    • Thread