iTunes for Mac まとめ – AppleScriptを参考に作成。
tell application "iTunes" set targetTrack to rating of current track end tell if targetTrack = 0 then set hoshi to "・・・・・" else if targetTrack = 20 then set hoshi to "★・・・・" else if targetTrack = 40 then set hoshi to "★★・・・" else if targetTrack = 60 then set hoshi to "★★★・・" else if targetTrack = 80 then set hoshi to "★★★★・" else if targetTrack = 100 then set hoshi to "★★★★★" end if tell application "LaunchBar" display in large type hoshi delay 1 hide end tell |