- on run {input, parameters}
- tell application "iTunes"
- set randomPlaylist to item 1 of (playlists whose name is "Random")
- delete tracks of randomPlaylist
- repeat while (count of tracks of randomPlaylist) is 0
- delay 0.2
- end repeat
- return location of tracks of randomPlaylist
- end tell
- end run
update random smart playlist