• 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: Q: Using (sound) volume settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: Using (sound) volume settings


  • Subject: Re: Q: Using (sound) volume settings
  • From: John Baltutis <email@hidden>
  • Date: Sun, 19 Aug 2007 13:47:12 -0700

On 08/18/07, Jon Pugh <email@hidden> wrote:
> At 7:27 AM +0200 8/19/07, Kurt Klamp wrote:
>>get volume settings
>>set vSet to get volume settings
>>get output volume of (get volume settings)
>
> Actually, the correct maneuver is:
>
> get volume settings  -- this is all one command name, including the get
> set vSet to get volume settings -- this saves the result record
> get output volume of vSet -- this gets one field of the record
> set volume to 1,000,000,000,000 -- or a sensible value without commas in it
> -- there are other parameters to "set volume" that are coincidentally the same
> -- as the record: alert volume, input volume, output volume, output muted
>
> So it's technically AppleScript's odd multitoken command names system,but
>whatever.  ;)

For the guru(s). Why the first line at all? This seems the simplest way to get
the current info:

set vSet to get volume settings -> {output volume:6, input volume:23, alert
volume:100, output muted:false}
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Q: Using (sound) volume settings
  • Next by Date: How to step through two lists at the same time?
  • Previous by thread: Re: Q: Using (sound) volume settings
  • Next by thread: How to step through two lists at the same time?
  • Index(es):
    • Date
    • Thread