Skip to content

Instantly share code, notes, and snippets.

@codahale
Created January 14, 2009 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codahale/46725 to your computer and use it in GitHub Desktop.
Save codahale/46725 to your computer and use it in GitHub Desktop.
--- LastFM - Ban Current Track
set previousApp to name of (info for (path to frontmost application))
tell application "Last.fm" to activate
tell application "System Events" to keystroke "b" using command down
open location "x-launchbar:hide"
tell application previousApp to activate
--- LastFM - Love Current Track
set previousApp to name of (info for (path to frontmost application))
tell application "Last.fm" to activate
tell application "System Events" to keystroke "l" using command down
open location "x-launchbar:hide"
tell application previousApp to activate
--- LastFM - Skip Current Track
set previousApp to name of (info for (path to frontmost application))
tell application "Last.fm" to activate
tell application "System Events" to keystroke (key code 124 using command down) -- right arrow
open location "x-launchbar:hide"
tell application previousApp to activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment