I've started writing a similar script - although it's for a different purpose
(creating lists of files/folders). It's still in alpha stage (not tested a lot,
quite a few things might change) but the pattern generation lib is separate from
the files/folders part, and has a lot of functions.

I'm certain that the pattern script could be adapted for generating lists in
PSPad.

Download it here (viz http://files.shinyhappypixels.com/NewFilesALPHA.zip )

Run the hta and press F1 for help, but here are a few of the syntaxes it
supports:

_File{1-2}.txt_ *(basic numeric)*

* File1.txt
* File2.txt


_File-{a..b}{001..002}.txt_ *(alphabetic+numbers with zero-padding)*

* File-a001.txt
* File-a002.txt
* File-b001.txt
* File-b002.txt


_Invoice-{Jan-Dec}-2007.txt_ *Month spans*

* Invoice-Jan-2007.txt
* Invoice-Feb-2007.txt
* [... you get the idea]


You can also do multiple patterns in one sequence (_File{A-Z,0-9}.txt_),
zero-padding and case matching is enforced. It also supports back-references, so
the same term can appear twice - which is more useful for files/folders, so you
can do this:

_Invoices-{Jan-Dec}-2007/{%1}-{001-100}.txt_

Invoices-Jan-2007/Jan-001.txt
Invoices-Jan-2007/Jan-002.txt
Invoices-Jan-2007/Jan-003.txt
[...]
Invoices-Feb-2007/Feb-001.txt
[....]


Basically, pretty nifty. Hope it comes in handy.

-- 
<http://forum.pspad.com/read.php?2,42625,42718>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem