AppleScript - 获取当前 iTunes 曲目的完整信息
AppleScript - Get complete information of current iTunes track
我正在尝试 return 我的计算机上正在播放的当前 iTunes 曲目的信息。
我可以这样获取单身信息:
tell application "iTunes"
get name of current track
end tell
例如returns Thunderstruck
。
但我是否可以获得当前曲目的更多信息,所以它 return 是这样的:
"AC/DC, Thunderstruck, Iron Man 2"
这可能吗?还是我必须创建多个脚本?
谢谢
获取name
、artist
和album
tell application "iTunes"
get {name, artist, album} of current track
end tell
结果是一个列表
得到一切
tell application "iTunes"
get properties of current track
end tell
结果是一条记录
我正在尝试 return 我的计算机上正在播放的当前 iTunes 曲目的信息。
我可以这样获取单身信息:
tell application "iTunes"
get name of current track
end tell
例如returns Thunderstruck
。
但我是否可以获得当前曲目的更多信息,所以它 return 是这样的:
"AC/DC, Thunderstruck, Iron Man 2"
这可能吗?还是我必须创建多个脚本?
谢谢
获取name
、artist
和album
tell application "iTunes"
get {name, artist, album} of current track
end tell
结果是一个列表
得到一切
tell application "iTunes"
get properties of current track
end tell
结果是一条记录