Before save - rename of Postscript

 
 

Dear All,

I am stuck, I simply want to read a postscript file, look for its contents and rename the file based on its contents.  E.g. If it contains the string "FILE1234" then I wish to save the *.PDF as FILE1234.PDF.

I have been looking the METHOD to rename the PS file but I cannot find it for adding to my VBSCRIPT.

Any advice is welcomed.

Thanks

Adrian