小编tar*_*eon的帖子

从csv文件填充iTunes播放列表

任何人都可以提供一种方法来填充我的播放列表与csv文件/文本文件中的歌曲格式如下:歌曲标题,艺术家?我可以单独为标题做,但不能指定它必须有一定的艺术家.

编辑:以下是我如何通过标题获取它们的示例:

set TheFile to read file "Macintosh HD:Applications:Automator stuff:01b iTunes Scripts:SongList.txt"
tell application "iTunes"
    set thePlaylist to playlist "SongList"
    try
        delete every track of thePlaylist
    end try
    set MySongs to paragraphs of (TheFile) -- read artist names (separated by newlines) from the file
    repeat with AnItem in MySongs -- get all tracks from each artist
        set AnItem to (contents of AnItem)
        if AnItem is not "" then try -- don't bother with empty names
            set MyTracks to (location of …
Run Code Online (Sandbox Code Playgroud)

applescript itunes

8
推荐指数
1
解决办法
152
查看次数

标签 统计

applescript ×1

itunes ×1