Hi everyone
I am new to this forum, and also kind of new to applescript. Hope somebody can help me.
I have this problem.
I want to make a list of records. I have some code to do it, but its not fast enough.
to itunes_data()
tell application "iTunes"
set tlist to tracks of library playlist 1
set resultlist to {}
set cnt to count tlist
repeat with t from 1 to cnt
copy {id1:persistent ID, moddate:modification date, pc:played count, sc:skipped count} of item t of tlist to end of resultlist
tell me to log "" & t & " of " & cnt
end repeat
end tell
return resultlist
end itunes_data
is there any way to make it a one liner?
like for instance:
set resultlist to {id1:persistent ID, moddate:modification date, pc:played count, sc:skipped count} of tracks in library playlist 1
I have tried this line, but it makes a record containing the four lists. What i am interestet in, is a list of length (count library playlist 1) containing records of length 4.
Wouldnt that make it a lot faster?
Model: MacBook
AppleScript: 1.10.7
Browser: Safari 522.12.1
Operating System: Mac OS X (10.4)