【问题标题】:AppleScript - Get complete information of current iTunes trackAppleScript - 获取当前 iTunes 曲目的完整信息
【发布时间】:2016-04-22 01:31:57
【问题描述】:

我正在尝试返回当前正在我的计算机上播放的 iTunes Track 的信息。

我可以得到这样的单个信息:

tell application "iTunes"
get name of current track
end tell

例如,这将返回 Thunderstruck

但是有没有可能我可以获得当前曲目的更多信息,所以它会返回如下内容:

"AC/DC, Thunderstruck, Iron Man 2"

这可能吗?还是我必须创建多个脚本?

谢谢

【问题讨论】:

    标签: macos applescript itunes


    【解决方案1】:

    获取nameartistalbum

    tell application "iTunes"
        get {name, artist, album} of current track
    end tell
    

    结果是一个列表


    得到一切

    tell application "iTunes"
        get properties of current track
    end tell
    

    结果是一条记录

    【讨论】:

      猜你喜欢
      • 2014-04-01
      • 2011-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多