Applescript 让这个苹果脚本在iTunes中播放歌曲特定部分的最佳方法是什么?

Applescript 让这个苹果脚本在iTunes中播放歌曲特定部分的最佳方法是什么?,applescript,Applescript,我希望iTunes能播放播放列表中每首歌曲的特定60秒(比如60-120秒)。实现这一点的applescript代码是什么?到目前为止,我已经: tell application "iTunes" repeat with i from 1 to count tracks of playlist "My Playlist" play track i of playlist "My Playlist" end repeat end tell 尝试: +1.但实际上,

我希望iTunes能播放播放列表中每首歌曲的特定60秒(比如60-120秒)。实现这一点的applescript代码是什么?到目前为止,我已经:

tell application "iTunes"
    repeat with i from 1 to count tracks of playlist "My Playlist"
        play track i of playlist "My Playlist"
    end repeat
end tell
尝试:


+1.但实际上,与“用i从1重复到trackcount”和“播放列表中的曲目i”“我的播放列表”不同,它应该是“用播放列表中的曲目“我的播放列表”重复”和“播放曲目”。
tell application "iTunes"
    set trackCount to count of tracks of playlist "My Playlist"
    repeat with i from 1 to trackCount
        play track i of playlist "My Playlist"
        set player position to 60
        repeat until player position ≥ 120
            delay 0.5
        end repeat
    end repeat
end tell