Skip to content

Instantly share code, notes, and snippets.

@luketurcotte
Created July 1, 2015 23:15
Show Gist options
  • Save luketurcotte/99b7dff6d5a321634b6c to your computer and use it in GitHub Desktop.
Save luketurcotte/99b7dff6d5a321634b6c to your computer and use it in GitHub Desktop.
Simple Applescript to "Love" the currently playing track in iTunes 12.2+.
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