As stated, I already had access to some info about a file provided by an iTunes drop. I needed to match up info about that file based on either the file name or persistentID provided by the drop to the file in the iTunes library my solution was to use a predicate filter on the iTunes library against the library collection returned by the iTunes scripting bridge.
发布评论
评论(2)
如前所述,我已经可以访问有关 iTunes drop 提供的文件的一些信息。我需要根据拖放到 iTunes 库中的文件提供的文件名或持久 ID 来匹配有关该文件的信息,我的解决方案是针对 iTunes 脚本桥返回的库集合使用 iTunes 库上的谓词过滤器。
As stated, I already had access to some info about a file provided by an iTunes drop. I needed to match up info about that file based on either the file name or persistentID provided by the drop to the file in the iTunes library my solution was to use a predicate filter on the iTunes library against the library collection returned by the iTunes scripting bridge.
这是我使用
ScriptingBridge
从 iTunes 获取当前曲目信息的方法:This is how I get the current track info from iTunes using
ScriptingBridge
: