This content has been marked as final. Show 3 replies
I do know how to traverse folders with a relative path starting point. I still can't find how to do an absolute path.
I realized that I had filePath in the beginning of the path which would set the start point at my existing file, Doh!
So I tried changing the save line to the following:
myPDFFile = new File("/Volumes/Common/FastChannel/watchedfolders/ZwebPDFs/" + "j_" + app.activeDocument.name.split(".indd") + "_a" + ".pdf" );
to no avail.
In Adobe's scripting manual it says this should work.
Try just making your PDF file variable as a string var instead and feeding that to export instead, perhaps?
I work in Applescript, but I know it gets balky when I try and create an alias to a file that doesn't exist. Also, the export command says it can accept a string or alias in AS. Hopefully JS is the same.