Re: itunes and duplicating track from library
Re: itunes and duplicating track from library
- Subject: Re: itunes and duplicating track from library
- From: "David A. Cox" <email@hidden>
- Date: Sat, 20 Nov 2004 17:51:43 -0800 (PST)
Again, fantastic help.
I got a lot farther on my my project, and it is working great thansk to
the help I got from this list, but now I have run into what looks to me to
be an odd error. I have simplified the steps needed to see the error, and
I was hoping someone would be able to help me out.
With a script of:
----
tell application "iTunes"
convert track 1 of playlist "AIFF"
end tell
----
The script will work great if it is run from the script editor, or if it
is saved as an application from the editor. But if I save the file as a
script, and put it in ~/Library/iTunes/Scripts and then run it from the
script menu of iTuens, I get the error:
"AppleEvents timed out."
that pops up. Once I click the OK button, the script goes on to do
everything it is supposed to do (even if there are later steps). Changing
"with timeout" options does not make any difference.
The full script runs, so it is not stopping the script, but it is
bothersom. Some parts of my full script can take up to a few hours to run,
so I have already worked on the timeout options, and I need to keep the
acurate for what I am trying to do.
Anyway, any advice would be great.
DAC
On Tue, 16 Nov 2004, Mr Tea wrote:
This from Mr Tea - dated 16/11/04 12ยท24 am:
this should work...
But this should work better. Here's a slightly more robust and specific
version of my previously posted script, with the format conversion included:
--*****
tell application "iTunes"
set theTrack to track 1 of playlist "AIFF"
convert theTrack returning fixedtracklist
set fixedtrack to location of item 1 of fixedtracklist
add fixedtrack to playlist "AAC"
set oldTrack to location of theTrack
set theID to database ID of theTrack
set theLib to name of first library playlist
tell playlist theLib
delete (every track whose database ID is theID)
end tell
end tell
tell application "Finder" to delete oldTrack
--*****
Nick
pp Mr Tea
--
_______________________________________________
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
_______________________________________________
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