• 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
itunes and duplicating track from library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

itunes and duplicating track from library


  • Subject: itunes and duplicating track from library
  • From: "David A. Cox" <email@hidden>
  • Date: Mon, 15 Nov 2004 09:31:40 -0800 (PST)

This should be simple, but I have tried a lot of variations on a basic step in a script, and I can't seem to get it to work.

I want to convert a track in one playlist, and then add that converted song to a different playlist. The scripts I have tried will convert the track, and add the result to the library, and return the "track" to the script, but I can't seem to duplicate the track to a new playlist. The simpelest script that I hoped would work is:
*****
tell application "iTunes"
convert track 1 of playlist "AIFF"
set fixedtrack to result
duplicate fixedtrack to playlist "AAC"
end tell
*****


but when I run the script, I get an error back of the form:

iTunes got an error: Can't set playlist "AAC" to {file track id 732 of library playlist id 40 of source id 39}.

Anyone know how to make this work? I have tried to set variables to the track number of the result and stuff like that, but I have had no luck....

Thanks,

DAC
_______________________________________________
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


  • Follow-Ups:
    • Re: itunes and duplicating track from library
      • From: Mr Tea <email@hidden>
  • Prev by Date: Re: X10, home automation and AppleScript
  • Next by Date: Replace text on spesific page
  • Previous by thread: Re: Networking / AS query
  • Next by thread: Re: itunes and duplicating track from library
  • Index(es):
    • Date
    • Thread