Re: Set Volume / Get Volume ?
Re: Set Volume / Get Volume ?
- Subject: Re: Set Volume / Get Volume ?
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 19 Oct 2004 21:39:36 -0700
Title: Re: Set Volume / Get Volume ?
On 10/19/04 8:10 PM, "David Hanauer" <email@hidden> wrote:
>
> What you propose for me to use in the Standard Additions does seem to
> be what I would like, but unfortunately I can't seem to get it to
> work.
>
> I am using OS X 10.2.8 and I have "StandardAdditions.osax" 1.9.1
> installed. Opening the dictionary reveals the "set volume" command
> but not the "get volume settings" command.
>
> Is there a newer version I should be using? If so, where can I find it?
It's called Panther. Strangely, changes to 'set volume' and 'get volume settings' are not documented in the Release Notes for AppleScript 1.9.2 or 1.9.3 at http://www.apple.com/applescript/releasenotes/ . But here's what they look like in Standard Additions 1.9.3 (OS 10.3.2 and later). You cannot install 1.9.2 or 1.9.3 without installing Panther:
get volume settings: Get the sound output and input volume settings (defined in: StandardAdditions.osax)
get volume settings
Result: volume settings -- a record containing the sound output and input volume settings
set volume: Set the sound output and/or input volume (defined in: StandardAdditions.osax)
set volume [number] -- the sound output volume, a real number from 0 to 7 (This parameter is deprecated; if specified, all other parameters will be ignored.)
[output volume small integer] -- the sound output volume, an integer from 0 to 100
[input volume small integer] -- the sound input volume, an integer from 0 to 100
[alert volume small integer] -- the alert volume, an integer from 0 to 100
[output muted boolean] -- Should the sound output be muted?
Class volume settings: Reply record for the ‘get volume settings’ command
Properties:
output volume small integer [r/o] -- the sound output volume
input volume small integer [r/o] -- the sound input volume
alert volume small integer [r/o] -- the alert volume (as a percentage of the output volume)
output muted boolean [r/o] -- Is the sound output muted?
Lots more settings available. Note that the old 'number' parameter of set volume is deprecated: if it's used, then the other parameters aren't available.
--
Paul Berkowitz
_______________________________________________
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