说真的,我连问这个都不好意思。
我有一个 Applescript,它应该建立一个包含整张专辑的播放列表。一切正常,除了将曲目实际添加到播放列表中。以下是相关代码:
repeat with theAlbum in randAlbums
set these_tracks to (tracks of library playlist 1 whose album is theAlbum)
repeat with the_track in these_tracks
add the_track to playlist thePlaylist (* doesn't work *)
end repeat
end repeat
我得到的错误是“iTunes 出错:发生描述符类型不匹配”。
randAlbums 是唯一专辑名称的列表,而 thePlaylist 是在脚本前面创建的播放列表。
一个星期以来,我一直在努力解决这个问题,但我一直无法弄清楚。提前感谢您提供的任何帮助:)