Created
January 7, 2014 08:01
-
-
Save rummelonp/8296030 to your computer and use it in GitHub Desktop.
iTunes の曲情報を Tweetbot for Mac で投稿するやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "iTunes" | |
set strName to name of current track | |
set strArtist to artist of current track | |
set strAlbum to album of current track | |
end tell | |
set the clipboard to "Now Playing: “" & strArtist & "” / “" & strName & "” from “" & strAlbum & "”" | |
tell application "Tweetbot" | |
activate | |
end tell | |
tell application "System Events" | |
keystroke "n" using command down | |
keystroke "v" using command down | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment