Tags

,

每次iTunes查找歌词好麻烦,写了个AppleScript脚本节省时间,作用是复制当前歌曲名并在特定网站搜索:

tell application "iTunes"
    if player state is playing then
        set myTrack to current track
    end if
end tell

set songName to name of myTrack
set searchURL to "http://www.kasi-time.com/allsearch.php?q=" & songName

tell application "Google Chrome"
    activate
    open location searchURL
end tell

配合Alfred的Workflow简直不能更方便