On 17/11/2009 17:44, Bouncing Bob wrote:
> Now, the transformation part I can do - that's easy. Working out how
> to extract the selection, run it through the external program and then
> paste it back again, that's beyond me.
I have a pair of examples in my .properties file:
# Filter the current selection using an external command line program
accepting stdin,
# then replace this selection with stdout.
command.name.4.*=Sort lines
command.4.*=sort
command.is.filter.4.*=1
command.subsystem.4.*=0
command.input.4.*=$(CurrentSelection)
command.replace.selection.4.*=1
command.quiet.4.*=1
command.name.5.*=Dict Lookup
command.subsystem.5.*=2
command.5.*=E:\Dev\AutoHotkey\Dict.ahk $(CurrentSelection)
command.save.before.5.*=2
command.quiet.5.*=1
sort is Unix' command, provided by the UnxUtils.
The Dict.ahk is a script.
--
Philippe Lhoste
-- (near) Paris -- France
--
http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --