Hello,
I need to optimize the following AppleScript:
As you can see, it returns the location, start time and finish time of each track of a playlist.
It takes ~ 14 seconds to run on my computer. Please let me know if you have any ideas. Thanks!
I need to optimize the following AppleScript:
Code:
set out to {}
tell application "iTunes"
set a to tracks of playlist "Mobile"
repeat with t in a
set l to location of t
set p to the POSIX path of l
set s to the start of t
set f to the finish of t
copy {{location:POSIX path of l, start:start of t, finish:finish of t}} to the end of out
end repeat
end tell
return out
As you can see, it returns the location, start time and finish time of each track of a playlist.
It takes ~ 14 seconds to run on my computer. Please let me know if you have any ideas. Thanks!