[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emms-help] Re: Opening PLS from Firefox

From: Thierry Volpiatto
Subject: [emms-help] Re: Opening PLS from Firefox
Date: Mon, 30 Jun 2008 17:48:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

address@hidden (Joel J. Adamson) writes:

> Howdy Emmsers,
> I wrote the following script to access .pls playlists from Firefox:
> ,----~/.emacs.d/play-url.sh
> | #! /bin/sh
> | emacsclient -e "(emms-play-url \"$1\")" || audacious $1
> `----
> This works fine from the command-line, but when I try to open links in
> Firefox using "Open with..." I get the wrong playlist in Emms and
> nothing plays.
> Has anyone else accomplished this already?  The critical thing is that
> in those insanely rare times when I"m not running Emacs, I'd like
> audacious to open the link.
Hi Joel!
Thats work for me:

1) Add to your ~/.mailcap:(create it if you have not, but i am sure you
have one) ;)

| audio/x-scpls ; emms-bin.sh %s

that the script i run:
I call it emms-bin.sh, so modify the mailcap entry
| #!/bin/bash
| emacsclient -e "(emms-play-pls-playlist \"$1\")"

3) Click on link in firefox and set the path to your script

A + Thierry
Pub key: http://pgp.mit.edu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]