【发布时间】:2013-03-06 11:43:33
【问题描述】:
我正在尝试创建一个小脚本,该脚本获取所选项目的列表并计算每个所选项目在库中其他地方出现的次数。如果有重复,它会关闭复选标记,如果这是唯一的副本,它会打开它。
这行得通。
但我想做的是让它只检查已检查歌曲的库。但是,当我在末尾(第三个set 行)添加“启用”位时,脚本会超时。
repeat with entry in selection -- "selection" is a concept implemented in iTunes
set a to artist of entry
set n to name of entry
set x to count of (file tracks whose name contains n and artist contains a and enabled is true)
...
display dialog x
end repeat
如果我取出and enabled is true,它会按预期以双倍的速度完成,结果也如预期。
and enabled is true 在行尾出现了一些神秘的事情。显然我检查不正确
【问题讨论】:
标签: applescript itunes