I am writng a script to allow my users to combine up to 8 pdfs into the open document. The script needs to determine which of the 8 files are available and then insert them in a preset order.
The files are always in the same directory and are a branch name of the main file
EG Main_File.pdf
Then Main_File_A.pdf, Main_File_B.pdf, Main_File_D.pdf etc
As you will note Main_File_C.pdf was not listed as this may not have been created so I need my script to identify it is not there and skip over it.
I have tried playing with the catching the exception error on an app.opendoc() but it does not suit my purpose. I dont want the files to open just to know they are there.
I can work through the code to insert etc I really just need a pointer to the problem of determining whether a file exists
Thanx in advance anyone who can Help
Mark Green
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com