【问题标题】:iTunes Movies metadata refreshiTunes 电影元数据刷新
【发布时间】:2018-01-28 19:47:49
【问题描述】:

我的 Mac Mini 上的 iTunes 12.7.3.46 资料库中有许多电影。我已经为每个视频手动添加了专辑封面,但在我的 AppleTV 上观看电影时,只有大约一半的电影实际显示了专辑封面。电影的另一半只显示一个框架。我仔细检查了未显示专辑封面的电影的“获取信息”,并确认已列出专辑封面。一旦我这样做了,AppleTV 就会显示专辑封面。我想写一个我可以运行的applescript,它基本上会自动为每部电影做一个“获取信息”,这样艺术就会显示出来。这是我目前所拥有的:

tell application "iTunes"
    set MovieList to tracks of playlist "Movies"
    repeat with x from 1 to count of MovieList
        tell (item x of MovieList)
            refresh MovieList
        end tell
    end repeat
end tell

我将脚本保存在这里:/Library/iTunes/Scripts/Refresh.scpt

当我尝试在 iTunes 中运行它时(在 iTunes 中,有一个脚本菜单(一个滚动图标,就在帮助的左侧),我得到:

{«class cFlT» id 55680 of «class cUsP» id 55668 of «class cSrc» id 66 of application "iTunes", «class cFlT» id 56396 of «class cUsP» id 55668 of «class cSrc» id 66 of application "iTunes", «class cFlT» id 56395 of «class cUsP» id 55668 of «class cSrc» id 

我什至不知道这意味着什么……知道从这里去哪里吗?

【问题讨论】:

  • 我目前无法测试您的代码,但不应该是 refresh item x 而不是 refresh MovieList

标签: applescript itunes


【解决方案1】:

使用最新版本的 Sierra 为我工作

tell application "iTunes"
    set theTracks to tracks of playlist "Movies"
    repeat with i from 1 to number of items in theTracks
        set this_item to item i of theTracks
        try
            refresh this_item
        end try
    end repeat
end tell

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-26
    • 2020-02-07
    • 1970-01-01
    • 2010-09-09
    相关资源
    最近更新 更多