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

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
References: 
 >iTunes: How to set the volume adjustment of a track by number? (From: Jim Witte <email@hidden>)

  • Prev by Date: Re: A Yummy (_Not_) Bug: Gremlin is Rewriting my GUI-Scripting
  • Next by Date: Re: Scripting XCode with Applescript
  • Previous by thread: iTunes: How to set the volume adjustment of a track by number?
  • Next by thread: Re: How to set the volume adjustment of a track by number?
  • Index(es):
    • Date
    • Thread