Skip to content

Instantly share code, notes, and snippets.

@semanticart
Created May 24, 2011 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semanticart/989639 to your computer and use it in GitHub Desktop.
Save semanticart/989639 to your computer and use it in GitHub Desktop.
itunes ratings in tmux
# this lets you do prefix F1-F5 to rate the current song in iTunes
bind F1 run-shell "osascript -e 'tell app \"iTunes\" to set the rating of current track to 20'"
bind F2 run-shell "osascript -e 'tell app \"iTunes\" to set the rating of current track to 40'"
bind F3 run-shell "osascript -e 'tell app \"iTunes\" to set the rating of current track to 60'"
bind F4 run-shell "osascript -e 'tell app \"iTunes\" to set the rating of current track to 80'"
bind F5 run-shell "osascript -e 'tell app \"iTunes\" to set the rating of current track to 100'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment