Re: iTunes: How to set the volume adjustment of a track by number?
Re: iTunes: How to set the volume adjustment of a track by number?
- Subject: Re: iTunes: How to set the volume adjustment of a track by number?
- From: Jesper Storm Bache <email@hidden>
- Date: Tue, 30 Aug 2005 08:10:49 -0700
I have no previous experience with scripting iTunes, but here is what
I found:
1) Looking at the object model in ScriptingDebugger (from http://
www.latenightsw.com), it looks to me that a proper reference is
something like: "track3 of view of browser window 1"
2) The compiler error is odd, but goes away if you use a parenthesis
3) iTunes seem to have a bug in the volume adjustment settings, where
it sets the adjustment to one less that is specified (except if you
specify 0)
Given these findings, I get an AppleScript such as:
tell application "iTunes"
set myTrack to track 3 of view of browser window 1
set (volume adjustment of myTrack) to 51
-- Check the changed value
get volume adjustment of myTrack
end tell
Jesper
On Aug 30, 2005, at 7:33 AM, Jim Witte wrote:
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'. I can 'get the number
of the current track', but I can't seem to refer to a track by the
'number' property..
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40adobe.com
This email sent to email@hidden
_______________________________________________
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