Applescript iTunes 揭晓

发布于 2024-08-24 23:23:59 字数 381 浏览 5 评论 0原文

iTunes 9 中的 Reveal 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

任何人都可以重现此行为吗?有什么解决方法吗?

Is it correct that the reveal applescript command is broken with iTunes 9?

Works:

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

Doesn't work:

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

But the following does work:

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

Can anyone reproduce this behavior? Any workarounds?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蛮可爱 2024-08-31 23:23:59

正确的代码段应该是 ::

-- 选择特定曲目

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

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

示例 ::

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

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

The correct code segment should be ::

-- select a specific track

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

The playlist "Music" bit is necessary even when the song is in your main library (ie in the Music list). If it's in another playlist, you can specify that instead.

Example ::

-- select a specific track in another playlist

tell application "iTunes"
    reveal (track "Woo Hoo" of playlist "Sleepy Songs")
end tell 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文