• 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
Ringtones in iTunes 7.4 break database ID retrieval?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Scripting Excel: How to find values in cells of kind date
  • Next by Date: Re: Scripting Excel: How to find values in cells of kind date
  • Previous by thread: Re: Printing 2-up duplex in Word (without VBA?) (Was: Scripting Excel: How to find values in cells of kind date)
  • Next by thread: Scripting Excel: simple column copies
  • Index(es):
    • Date
    • Thread