How can I 'force' a (Nisus perl) macro to _only_ run on selected text and, when there is no text selected, to not run at all?
I have found that the "Common Regexp Processing" macro needs such a line, because it reproduces the text when used for the second time without any text selected...
If nothing selected macro command?
-
- Posts: 42
- Joined: 2006-12-14 09:09:51
indeed
yes it works for me too!
strange indeed though, wonder how you came to this solution.
Anyway big THANKS, saves me a lot of work!
strange indeed though, wonder how you came to this solution.
Anyway big THANKS, saves me a lot of work!
Dirk,
You are very welcome. After seeing your post, I wondered if your problem would occur with a macro that I had written to change selected text; the problem did not occur. As the only relevant difference between my macro and "Common Regexp Processing" was the added line (p 195 of the Nisus Guide), the fix was easy to guess.
Steve
You are very welcome. After seeing your post, I wondered if your problem would occur with a macro that I had written to change selected text; the problem did not occur. As the only relevant difference between my macro and "Common Regexp Processing" was the added line (p 195 of the Nisus Guide), the fix was easy to guess.
Steve
Last edited by ssampler on 2006-12-21 09:09:56, edited 1 time in total.