iTunes album Artister属性是否因AppleScript查询而被破坏?

iTunes album Artister属性是否因AppleScript查询而被破坏?,applescript,itunes,Applescript,Itunes,以下脚本无法按预期工作: tell application "iTunes" tell source "Library" tell playlist "Music" set theTracks to (every track whose album artist is "xxx" and album is "Fiddle Tunes 2006 Concert") count of theTracks end

以下脚本无法按预期工作:

tell application "iTunes"
    tell source "Library"
        tell playlist "Music"
            set theTracks to (every track whose album artist is "xxx" and album is "Fiddle Tunes 2006 Concert")
            count of theTracks
        end tell
    end tell
end tell
它匹配唱片集艺术家属性为空的曲目。它不应该匹配任何轨迹。该特定专辑标题没有包含非空专辑艺术家字段的曲目(也没有设置了编译标志的曲目)

如果我用艺术家替换专辑艺术家,它不匹配任何曲目,这是正确的


我是否遗漏了一些明显的错误,或者这是iTunes中的一个错误?

这是一个错误,在macOS 10.12.5和iTunes 12.6.1.25中修复。

它与我库中的任何空专辑艺术家都不匹配,当然我没有任何空字段,所以我必须清空一个。。但后来就不匹配了。那么,这可能是您的设置?似乎问题并不取决于专辑艺术家字段是否为空。我用几个不同的专辑标题尝试了相同的查询,它们都表现得好像查询中的专辑艺术家部分不存在一样。接下来,我尝试交换查询中字段的顺序,它正常工作了!