Ringtones in iTunes 7.4 break database ID retrieval?
Ringtones in iTunes 7.4 break database ID retrieval?
- Subject: Ringtones in iTunes 7.4 break database ID retrieval?
- From: comctrl6 <email@hidden>
- Date: Mon, 17 Sep 2007 12:51:14 -0700 (PDT)
I have the following AppleScript:
tell application "System Events"
set the_file to path of file
"/Users/<user-name>/Desktop/Test.m4a"
tell application "iTunes"
set the_track to add the_file
set the_track_id to (database ID) of the_track
tell playlist "Library"
name of some track whose (database ID) is
the_track_id
end tell
end tell
end tell
If I have a ringtone in my iTunes library, when I run
the above, I get the following error message:
"iTunes go an error: Can't get name of some track of
playlist "Library" whose database ID = 1288."
However, as soon as remove the ringtone from iTunes,
that scripts starts to work, as it should. Does anyone
have any idea what is going on here? Is this a bug in
iTunes 7.4 or am I doing something wrong?
Thanks
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden