/iTunes-Loved-Alfred-Workflow

:revolving_hearts: :musical_note: Easily Toggle iTunes 12 Loved State

iTunes Loved Alfred Workflow

iTunes loved

Executes the following JavaScript via osascript.

(function() {
  var track = Application("iTunes").currentTrack();
  var trackLoved = track.loved();
  var notification = (trackLoved ? "UnLoved" : "Loved") + ": " + track.name();
  track.loved = !trackLoved;
  return notification;
})()

Then shows a notification.

iTunes Loved Screenshot