【问题标题】:Is it possible to update the "watched" flag of a video in the iTunes library through Xcode?是否可以通过 Xcode 更新 iTunes 库中视频的“已观看”标志?
【发布时间】:2014-12-28 21:51:06
【问题描述】:

我正在寻找一个允许我播放 iTunes 库文件的应用程序,但我希望它能够更新视频的状态(例如,已观看或剩余时间)。这可能吗?

【问题讨论】:

    标签: ituneslibrary


    【解决方案1】:

    是的,如果您的应用在 MacOS 上运行,您可以发送 Apple 事件来更改已观看标志或剩余时间。您也可以编写一个 AppleScript 来执行此操作,然后让您的代码运行 AppleScript。

    查看:Applescript Inside of a Cocoa Application 以及 Google 从 C 或 Objective C 发送 Apple 事件

    【讨论】:

      猜你喜欢
      • 2023-03-03
      • 2012-05-17
      • 1970-01-01
      • 2016-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-21
      • 2020-02-14
      相关资源
      最近更新 更多