EditLowerCase command not working in a bigger Macro?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
BruceMarriott
Posts: 8
Joined: Wed Jul 14, 2004 5:46 am

EditLowerCase command not working in a bigger Macro?

Post by BruceMarriott »

I have written a macro with these commands in it:

EditLowerCase
# SearchReplace
Replace = " ", "-", MatchCase, InSelection
DoReplaceAll

the idea is that if I select text like this in a line:
a Test of Making all lc with no Spaces

and run the macro I should get:
a-test-of-making-all-lc-with-no-spaces

unfortunately, when I run the Macro given above I just get this:
a-Test-of-Making-all-lc-with-no-Spaces

So the EditLowerCase command is not working. If I try moving the EditLowerCase to the end of the macro instead of the start, there is no change in outcome.

I might be doing something super stupid here, but any help would be appreciated.

In general it would be nice to see (in the Textpad documentation) many more examples of how you write macros.

Finally I did email support but after initial contact got no response to the above problem.

As I say, thanks for your help.
User avatar
bbadmin
Site Admin
Posts: 863
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: EditLowerCase command not working in a bigger Macro?

Post by bbadmin »

This is a bug which will be fixed in the next release. Thanks for reporting it.

In the meantime, you can work around it by setting the default scope of the macro to "Document", rather than "Selection".
BruceMarriott
Posts: 8
Joined: Wed Jul 14, 2004 5:46 am

Re: EditLowerCase command not working in a bigger Macro?

Post by BruceMarriott »

Thanks for the update and information.

I confirm the workaround works - ie setting the scope to "Document" makes the macro work and just on the selected/highlighted text (not actually across the whole document!)
Post Reply