【发布时间】:2015-01-10 23:11:13
【问题描述】:
我在 MacBook Pro 上的 iTunes 中有歌曲,我将这些歌曲从一星评级到五星评级。当我在 DJ 软件中打开歌曲时,它不显示评分,因为 iTunes 不会将它们写入 ID3 标签,而只是将其保存在 iTunes 中。
我发现我可以通过这样做来读取评分:
tell application "iTunes"
set songRating to get rating of current track
end tell
return songRating
另外,我可以通过以下方式获取位置:
tell application "iTunes"
set songLocation to get location of current track
end tell
return songLocation
现在如何使用我必须将评分写入文件ID3标签的文件路径?
【问题讨论】:
-
抓取mutagen(python 模块)。它带有
mid3v2。从脚本对该程序进行系统调用,并使用它来修改POPM字段,注意带有该字段的 gotchas and inconsistencies。
标签: macos applescript osx-yosemite itunes id3