Re: Gibberish lesson
Re: Gibberish lesson
- Subject: Re: Gibberish lesson
- From: Michelle Steiner <email@hidden>
- Date: Sat, 2 Oct 2004 14:52:28 -0700
On Oct 2, 2004, at 11:55 AM, 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.
output volume of (get volume settings)
--> 56
You made a problem for yourself by putting "get volume settings" inside
braces instead of inside parentheses.
-- Michelle
--
The problem with political jokes is that too many of them get elected.
_______________________________________________
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