Re: Q: Using (sound) volume settings
Re: Q: Using (sound) volume settings
- Subject: Re: Q: Using (sound) volume settings
- From: John Baltutis <email@hidden>
- Date: Sun, 19 Aug 2007 13:47:12 -0700
On 08/18/07, Jon Pugh <email@hidden> wrote:
> At 7:27 AM +0200 8/19/07, Kurt Klamp wrote:
>>get volume settings
>>set vSet to get volume settings
>>get output volume of (get volume settings)
>
> Actually, the correct maneuver is:
>
> get volume settings -- this is all one command name, including the get
> set vSet to get volume settings -- this saves the result record
> get output volume of vSet -- this gets one field of the record
> set volume to 1,000,000,000,000 -- or a sensible value without commas in it
> -- there are other parameters to "set volume" that are coincidentally the same
> -- as the record: alert volume, input volume, output volume, output muted
>
> So it's technically AppleScript's odd multitoken command names system,but
>whatever. ;)
For the guru(s). Why the first line at all? This seems the simplest way to get
the current info:
set vSet to get volume settings -> {output volume:6, input volume:23, alert
volume:100, output muted:false}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden