Re: How to set the volume adjustment of a track by number?
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