| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Zuhayr Khan wrote:
>I'm writing an application that needs to have iTunes import a file
>into it's library.
>
>The simple script I started with...
>
>tell application "iTunes"
> open "Macintosh HD:Users:zuhayrkhan:Music:Test.mp3"
>end tell
>
>...worked, but ended up playing the track - this isn't what I wanted.
Did you try this?
tell application "iTunes"
add "Macintosh HD:Users:zuhayrkhan:Music:Test.mp3"
end tell
It seems to do exactly what you want: add the referenced file to the iTunes
library without playing it.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.