Hello...
I'm not sure if it's me, my computer, or iTunes specifically, but I've noticed that scripts seem to run really slow against iTunes. Even something as simple as:
Code:
tell application "iTunes"
set poss to ((file tracks of playlist 1) whose database ID is 4177)
if ((count of poss) is greater than 0) then
set myTrack to item 1 of poss
try
set Name of myTrack to "newName"
set Artist of myTrack to "newArtist"
set Album of myTrack to "newAlbum"
set Track Number of myTrack to "1"
end try
else
display dialog "Error finding track ID 4177"
end if
end tell
...can take 60-90 seconds to run on a 1GHz G4. The entire time, my CPU is pegged, and a ktrace shows a lot of calls to sigprocmask.
Is this typical, or am I missing something?
The impetus behind this is that I had to write a script to restore a bunch of tags after a run of iEatBrainz went screwy.
TIA,
--Dj