iLounge Forums - View Single Post - Trying to search all tracks based on properties
View Single Post
Old 09-26-2009, 08:40 PM
#6
 
joelbradshaw
Freshman Lounger
 
Join Date: Sep 2009
Location: Washington DC
Posts: 7

tell application "iTunes"

-- do some loop through all tracks of playlist
set CurrentDuration to duration of track ATOHCount of playlist "A Top of Hour"
set CurrentDuration to round (CurrentDuration)
if CurrentDuration = TimeToFill then
copy track ATOHCount of user playlist "A Top of Hour" to playlist "Now Playing"
end if
--loop return

end tell
joelbradshaw is offline  
Reply With Quote