【问题标题】:How do I select playlists in a subfolder in Itunes using AppleScript?如何使用 AppleScript 在 Itunes 的子文件夹中选择播放列表?
【发布时间】:2013-03-02 18:25:47
【问题描述】:

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

tell application "iTunes"

get name of playlists

end tell

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

提前谢谢你。

【问题讨论】:

    标签: applescript itunes


    【解决方案1】:

    你可以试试这样的:

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-03
      • 2023-03-08
      • 2012-07-03
      • 1970-01-01
      • 2011-05-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多