我有这个非常基本的 AppleScript,我试图在我的 Mac 上运行它来删除 iTunes 中所有歌曲的评分:
tell application "iTunes"
set sel to every track in library playlist
repeat with i from 1 to the count of sel
set rating of track i in sel to 0
end repeat
end tell
我以前从未在 AppleScript 中写过任何东西,但我想我会试一试(因为它应该如此直观)。不幸的是,当我尝试运行脚本时收到此错误:
error "Can’t get every track of library playlist." number -1728
from every «class cTrk» of «class cLiP»
这是什么错误?是否有另一种选择 iTunes 中曲目的方法?谢谢你的帮助。