formats

Hotkey to Rate an iTunes Track

Published on August 22, 2011

Do you rate your tracks in iTunes?  Ever find it a slight pain to swap back over to iTunes while working on something important just to rate a playing track?  Here’s how to set up global hotkeys to rate a track from anywhere (Windows XP or newer).  Like Win+Alt+1 for one star, Win+Alt+2 for two, etc.

  1. Get the Tools
    Have a master AutoHotKey hotkey file and set PowerShell to autoload my little
    iTunes.ps1
    library on PowerShell startup.  With these two it makes it real easy to assign hotkeys to various iTunes commands.
  2. Add the AutoHotkey Lines
    What enables this line to be so simple is that there is a
    itPlaylist
    function in the above
    iTunes.ps1
    file that gets auto loaded as part of step 1.
    ; Rate the currently playing song 1 to 5 stars with Win+Alt+#
    #!1:: Run powershell -command (itunes).CurrentTrack.Rating = 20,,Hide
    #!2:: Run powershell -command (itunes).CurrentTrack.Rating = 40,,Hide
    #!3:: Run powershell -command (itunes).CurrentTrack.Rating = 60,,Hide
    #!4:: Run powershell -command (itunes).CurrentTrack.Rating = 80,,Hide
    #!5:: Run powershell -command (itunes).CurrentTrack.Rating = 100,,Hide

That’s it!  Then with just one keystroke you can rate the current song from any app without switching over to iTunes.

My full script: MediaKeys.ahk 
Related posts: Hotkey to Instantly Play Music in iTunesHotkey to Play/Pause/Next iTunes Tracks 

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© Noah Coad
credit