Re: Gibberish lesson
Re: Gibberish lesson
- Subject: Re: Gibberish lesson
- From: Graff <email@hidden>
- Date: Sat, 02 Oct 2004 17:24:07 -0400
Wouldn't you just use:
set currentVolume to output volume of (get volume settings)
-->70
That will return a number value, if you want a string then coerce it to
one:
set currentVolume to (output volume of (get volume settings)) as
string
-->"70"
- Ken
On Oct 2, 2004, at 2:55 PM, Robert Poland wrote:
I guess I need another lesson on gibberish, See script;
set currentVolume to {get volume settings}
--> {{output volume:50, input volume:50, alert volume:100, output
muted:false}}
set currentVolume to currentVolume as string
--> "dle2TEXTDouvllong2invllong2alvllongdmutefals" (Some characters
stripped for email)
set AppleScript's text item delimiters to ","
set currentVolume to items 1 thru 15 of currentVolume as string
--> "d,l,e,2,,,,,T,E,X,T,,,"
set AppleScript's text item delimiters to ""
What I'd trying to get is the output volume number, without using an
osax.
_______________________________________________
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