automatic wiki aliases

I have a DB in DevonThink Pro that contains all of the IETF docs. These docs are all named in the format rfcXXXX.txt where XXXX is the doc number. In side these docs, when other docs are mentioned or referenced, it’s usually in the form RFC XXXX or RFCXXXX. It would be nice if I could define some automatic transform of the doc name to an alias for wiki style links.

I have a script that can do this, but it takes a long time to run if I select a lot of docs and has to be run on any new docs added.

Do you run the script via Apple’s Script Editor? Storing it in ~/Library/Application Support/DEVONthink Pro 2/Scripts and running it via DEVONthink Pro’s built-in script menu is MUCH faster.