Le 2 avr. 09 à 10:00, Scott Haneda a écrit :
Thanks for your other tips, see comments below...
On Apr 2, 2009, at 12:29 AM, Hans-Jörg Bibiko wrote:
The Macro has two commands executeCommandWithOptions { beforeRunningCommand = nop; command = "perl -pe 's/[\t ]+$//g'"; input = document; output = replaceSelectedText; }
What happens if you replace "document" by "selection" ?
I solve the issue of the selection getting replaced by something, but the stripping of tabs and spaces no longer works.
Couldn't you discard the output as what can be done for the commands?
Try: output = discard;
Best regards, Mathieu
___________________________________________
Mathieu Godart
Skype: mathieu_godart MSN: mathieu_godart@hotmail.com
ASIC Integration Manager Coolsand Technologies ___________________________________________