• 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: How to set the volume adjustment of a track by number?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set the volume adjustment of a track by number?


  • Subject: Re: How to set the volume adjustment of a track by number?
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 30 Aug 2005 08:51:25 -0700

On Tue, 30 Aug 2005 09:33:55 -0500, Jim Witte <email@hidden> said:
>This is a really silly question, which most likely has a silly
>answer..  How do I do this:
>
>tell application "iTunes"
>     set volume adjustment of track 3  to 50
>end tell
>
>It says 'expected end of line but found to'.

In iTunes the application has no "track" property. You have to talk to a
particular playlist:

tell application "iTunes"
    tell playlist "library"
        set volume adjustment of track 3 to 50
    end tell
end tell

After that, as you've been told, it's the missing parentheses. Do it like
this:

tell application "iTunes"
    tell playlist "library"
        set (volume adjustment of track 3) to 50
    end tell
end tell

(My book is quite helpful (and emphatic) on the importance of
((parentheses()))). (And it explains why they are needed, too.) ((Sort of.))
m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
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

  • Prev by Date: Re: file types and UTIs don't mix in choose file
  • Next by Date: Re: A Yummy (_Not_) Bug: Gremlin is Rewriting my GUI-Scripting
  • Previous by thread: Re: iTunes: How to set the volume adjustment of a track by number?
  • Next by thread: A mail script inquiry
  • Index(es):
    • Date
    • Thread