Paul Sexton <psex...@xnet.co.nz> writes: > brian powell <briangpowellms <at> gmail.com> writes: > > >> * Something like this; respectively!?: >> >> [[shell:mplayer -ss 00:03:21 -endpos 00:06:54 ~/some_podcast.mp3 &]] >> [[shell:mplayer -ss 00:03:21 ~/some_podcast.mp3 &]] >> [[shell:mplayer ~/some_podcast.mp3 &]] > > The troubles with using shell commands in hyperlinks: > 1. Only works in the operating system and directory structure where > you were when you wrote the link; > 2. No ability to stop playback, pause, etc, unless you run the > program as a GUI, which means (horror!) doing something outside > Emacs.
If you are using different setups on different operating systems, 1) should probably be solved in some general fashion, like setting some vars to important locations depending on environmentearly in your .emacs. 2.) [[elisp:(emms-play-file "~/tmp/video/magit.flv")]] or [[elisp:(emms-play-file (concat MYSCREENCASTSDIR "magit.flv"))]] or [[elisp:(emms-play-file (concat MYSCREENCASTSDIR "magit.flv"))][View magit demo]] Of course, there is no problem with setting up org to treat file links to mediafiles special. But given the power of org hyperlinks, I think using "elisp:" solves your 1.) and 2.) sufficiently. Memnon