• 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: Gibberish lesson
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Gibberish lesson (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Volume status
  • Next by Date: Re: iCal scripting problem
  • Previous by thread: Re: Gibberish lesson
  • Next by thread: Getting Data out of Filemaker Pro
  • Index(es):
    • Date
    • Thread