• 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: 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
References: 
 >Gibberish lesson (From: Robert Poland <email@hidden>)

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