Apply macros to multiple files

General questions about using TextPad

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

Post Reply
Phil Reynolds

Apply macros to multiple files

Post by Phil Reynolds »

Hi Folks,
I have 4000+ text files to convert to HTML format. I can readily do one file, but have been unable to figure out how to design the macro to process multiple files.

Thanks!!
Phil Reynolds, General Manager
Garden State EnviroNet, Inc.
510 Main Street
Boonton NJ 07005
Email: mailbox@gsenet.org
Web: http://www.gsenet.org
Andreas

Re: Apply macros to multiple files

Post by Andreas »

I don't think this is possible, as it is not possible to change between files within a macro and macros can't be called from commandline on starting textpad
Stephan

Re: Apply macros to multiple files

Post by Stephan »

If you have all files opened, you might try CTRL-TAB to switch to the 'next' file.
But beware - TextPad's behaviour of CTRL-TAB might not be what you expect, as it 'control-tabs' to the next file in a history. So with files a, b, c open CTRL-TABing might lead to a seqience as abababacabacbcba or whatever...

(If you opened a sequence of files and did nothing but execute the macro, you should iterate over the files in reverse order [reverse from the order the files were opened, that is].)

Hope that helped.

Stephan
Post Reply