【发布时间】:2009-02-10 09:44:38
【问题描述】:
说真的,我什至都不好意思问这个问题。
我有一个 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 是唯一专辑名称的列表,而播放列表是在脚本前面创建的播放列表。
我已经为此苦苦思索了一个星期,但我一直无法弄清楚。提前感谢您提供的任何帮助:)
【问题讨论】:
标签: macos applescript