6V8 - Production of my Mind

Home page > For your Computer > Proxi Last.fm control blueprints

Proxi Last.fm control blueprints

 
Since I’ve been using last.fm player on OS X, I have been missing the ability to control it quickly from my keyboard without switching applications and from my sofa without moving.
23 February 2007, by Mortimer

Proxi already provides triggers and tasks to control iTunes [1] but nothing relevant for the last.fm player.

If you want the easy way, the blueprint for Last.fm is available at the bottom of this page.

1How to do it: Some Details

In fact, this player doesn’t provide any applescript API or anything of the kind to control it easily and I never thought I could find a way to until I looked into the proxi example blueprints and in particular the one for VLC.

You can see an easy way to control the application, that can be associated to any trigger you’ll want (like a keypress or a remote control):

  • in the tasks, first select launch application
    • set it to launch Last.fm
    • check the "Activate if application is already running" box.
  • add a new "Key Press" task to press one of the Last.fm shortcut, for example Command+P to start playing.

So now, we can control the Last.fm player without problems, but it brings the application to the front and we have to manually switch back to whatever we were doing. Wouldn’t it be nice if proxi also managed that? The VLC blueprint doesn’t give any hint on that, but there is a solution: using a bit of applescript and more proxi power.

  • Go to your trigger and add an extra value, select "Active Application" in the drop down menu,
  • add a new "applescript" task and type in the code:

    tell application ""
        activate
    end tell
     
  • then drag and drop "ActiveApp" from the Values window between the " in the code.
  • You are done!

You can replicate this for the different functions of the Last.fm player. Or just download one of the blueprint I provide:

2Keyboard Control

Proxi Blueprint - 5.7 kb
Keyboard control

This is the blueprint to control last.fm from your keyboard.

To install the blueprint, download it, open the proxi editor and drag and drop the blueprint on it.

1150 download(s) since 25 July 2007

This blueprint provides five keyboard shortcuts to control Last.fm from the keyboard:

  • ctrl+⌘+enter:play
  • ctrl+⌘+left:stop
  • ctrl+⌘+right:skip
  • ctrl+⌘+up:love
  • ctrl+⌘+down:ban

3Griffin AirClick Control

Proxi Blueprint - 6.6 kb
AirClick Control

This is the blueprint to control Last.fm with a Griffin Airclick.

To install the blueprint, download it, open the proxi editor and drag and drop the blueprint on it.

793 download(s) since 25 July 2007

This blueprint defines trigger to use with your Griffin AirClick remote so you can listen to Last.fm from your sofa:

  • play/pause button: play and stop
  • next button: skip
  • volume up/down buttons separately: volume up/down
  • volume up/down buttons at the same time: love
  • previous and next buttons at the same time : ban

(note that they’ll only work if the last.fm application is focused)

4Apple Remote Control

Proxi Blueprint - 3.8 kb
Apple Remote Control

This is the blueprint to control last.fm from your apple remote.

To install the blueprint, download it, open the proxi editor and drag and drop the blueprint on it.

913 download(s) since 25 July 2007

This blueprint defines trigger to use with your Apple Remote so you can listen to Last.fm from your sofa:

  • play/pause button: play
  • play/pause button held: stop
  • next button: skip
  • previous button held : ban
  • menu button held : love
  • +/- : volume control

(note that they’ll only work if the last.fm application is focused)

Date of online publication: 23 February 2007
last-update: 1 March 2007
Forum messages 5
visits:
12542

Creative Commons Attribution NonCommercial ShareAlike 2.5  License

notes

[1] in fact, I personally use SizzlingKeys for the keyboard control of iTunes.

 

P.S.

(thanks go to Izo for the icon work)

5 Forum messages

 

The most read articles

 
©
Pierre Andrews
York, uk
| Site Map | Site created with SPIP 1.9.2c [10268] | RSS | template by IZO, Mortimer. | clicky stats
the recent the published first
the recent the published first
the recent the published first
the recent the published first
the recent the published first