Page 1 of 1

Apply macros to multiple files

Posted: Sun Sep 23, 2001 4:43 am
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

Re: Apply macros to multiple files

Posted: Sun Sep 23, 2001 7:03 am
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

Re: Apply macros to multiple files

Posted: Sun Sep 23, 2001 12:38 pm
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