【问题标题】:Applescript iTunes RevealApplescript iTunes 显示
【发布时间】:2010-03-09 11:37:40
【问题描述】:

在 iTunes 9 中显示 applescript 命令是否正确?

作品:

tell application "iTunes"
 play (track "Los")
end tell

不起作用:

tell application "iTunes"
 reveal (track "Los")
end tell

但以下方法确实有效:

tell application "iTunes"
 reveal (playlist "Music Videos")
end tell

谁能重现这种行为?有什么解决方法吗?

【问题讨论】:

    标签: macos applescript itunes


    【解决方案1】:

    Doug's applescripts for itunes查看这个 tut

    【讨论】:

      【解决方案2】:

      正确的代码段应该是::

      -- 选择特定曲目

      tell application "iTunes"
          reveal (track "Woo Hoo" of playlist "Music")
      end tell
      

      即使歌曲在您的主库中(即在音乐列表中),playlist "Music" 位也是必需的。如果它在另一个播放列表中,您可以指定它。

      示例 ::

      -- 在另一个播放列表中选择特定曲目

      tell application "iTunes"
          reveal (track "Woo Hoo" of playlist "Sleepy Songs")
      end tell 
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2010-10-01
        • 1970-01-01
        • 2012-06-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多