If you use Javascript instead of VBScript, you can achieve what you want to like this:
http://openpaste.org/en/3504/ (viz http://openpaste.org/en/3504/ ) I must admit, it took me a while to figure this one out - what should have worked didn't; and I had to take the long way around. I think there's something wrong with PSPad's scripting host mechanism. -- <http://forum.pspad.com/read.php?2,42907,42924> PSPad freeware editor http://www.pspad.com
