Page 1 of 1

Macro copies selected lines from one file paste to another

Posted: Mon Mar 22, 2010 2:37 pm
by cperilli
Quite often I would like to run a macro that will search for any lines that contain a specific text string, copy the line, switch to a new file (already opened), paste the line, switch back to the original file and continue the macro to the end of file. When I try this it does not matter how many lines the macro finds, only one line gets pasted into the new file. However, cut and paste from file to file works just fine in TextPad 3.2.5 so I keep the old version handy solely to support this function in macros.

It would be very nice if you could restore this capability to copy/paste from file to file within a macro. Thank you.

Posted: Mon Mar 22, 2010 8:00 pm
by ben_josephs
Why not bookmark the lines (Find | Mark All) and then copy them together (Edit | Copy Other | Bookmarked Lines)?

That works great but...

Posted: Fri Mar 26, 2010 2:35 pm
by cperilli
I sometimes will perform the following in a Macro:

1. Find a line based on search criteria.
2. Copy it.
3. Paste to other file.
4. Modify the pasted line or possibly add one or more lines of "canned" text after the pasted line.
5. Return to original file and allow macro to continue.

The results above can be achieved with the current TextPad using a somewhat different methodology so it's not a big deal. I just got used to the way I could deal with multiple files using the old TextPad so I still use it from time to time. Guess old habits die hard.

Thanks.