3

此代码将返回 iTunes 中的所有播放列表:

tell application "iTunes"

get name of playlists

end tell

如何返回子文件夹中的所有播放列表?

先感谢您。

4

1 回答 1

2

你可以尝试这样的事情:

tell application "iTunes"
    set myList to {}
    set myFolder to folder playlist "testFolder"

    set myPlaylists to playlists
    repeat with aPlaylist in myPlaylists
        try
            if aPlaylist's parent = myFolder then set end of myList to aPlaylist's name
        end try
    end repeat

    return myList
end tell
于 2013-03-14T13:31:11.300 回答