選択範囲からトラックを変換するように iTunes に指示する以下の AppleScript コードがあります。変換されるトラックの長さをどのように制限するのか疑問に思っていましたか?
tell application "iTunes"
set theFiles to the selection
repeat with theTrack in theFiles
with timeout of 120 seconds
set theSecondTrack to first item of (convert theTrack)