2011年8月16日火曜日

[AppleScript] iTunesの再生中の曲情報をいろいろ取得

そのまんま、iTunesの曲情報を取得するだけ。
1分で書けるレベルですが、ひな形くらいにはなるかと。
Twitterの呟きパラメータとかになら使えるかもしれません。
というか、実際にその用途でついでに書いただけだったり・・・
ぱっと見たところアートワークの取得も出来たので、使いかたによっては面白いことができるのかもしれません。
こういうの見てると、Windowsのsamurizeを思い出しますね。


tell application "iTunes"
set i_track to current track
set i_name to the name of current track
set i_artist to artist of current track
set i_album to album of current track
set i_genre to genre of current track
set i_rating to rating of current track
set i_lyrics to lyrics of current track
set i_path to location of current track --HFSパス
end tell

0 件のコメント:

コメントを投稿