0

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
4

1 に答える 1

1

試す:

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
于 2012-06-24T11:28:16.737 に答える