Created
July 1, 2015 23:15
-
-
Save luketurcotte/99b7dff6d5a321634b6c to your computer and use it in GitHub Desktop.
Simple Applescript to "Love" the currently playing track in iTunes 12.2+.
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 "System Events" | |
if (name of processes) contains "iTunes" then | |
set iTunesRunning to true | |
else | |
set iTunesRunning to false | |
end if | |
end tell | |
if iTunesRunning then | |
tell application "iTunes" | |
set loved of current track to true | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment