You can do it if you save the file using JS. Use this code:
if (/^PDF/.test(this.documentFileName)) this.saveAs(this.path);
Make sure not to add a separate Save command, of course.
I removed the save command from the action and added the code as written
(cut & paste) but now no files are updated. Do I need to change the code to
specify where to save? Thank you for your assistance - it's much
No, it should work as is... Are you sure your files actually begin with "PDF" (in upper-case)?
Yes. As an example, one file is PDF0024-01.pdf
Are there any error messages in the console?
No, it runs fine, I can see the action performing on all files in the
folder - I see the file names stream by.
Only thing I can think is maybe the script is not saving the files to the
network folder where they were opened from?
Temp files were being created
at D:\Users\myprofilename\AppData\Local\Temp\Preflight Acrobat 10\Batch
A temp folder would be created, with a sub-folder for each PDF that action
was ran on. I was able to copy and past the folders when script running -
otherwise, at end of script, they were gone. That's probably just the
preflight itself creating those files - still not sure if/where the final
copies are saved to.
Searching for the file, PDF0024-01.pdf I don't see anywhere other than my
recent files and original network folder.
On Tue, May 24, 2016 at 5:57 PM, Peter Moses <firstname.lastname@example.org>
Only PDFs. In the Action wizard, I deselected all other file types so it
would run faster. I even tried renaming one of the files to "PDF.pdf" to
see if that would work but still no modified file saved in the shared drive
I got it, thanks so much for your help.
Now I'm trying to figure out the inverse - the action causes the preflight
to running on all PDFs in the folder, but it only saving the ones that
begin with PDF. It would be faster if it did not preflight the other files
and skipped over them. I figure I can put some code before the preflight
action to return to top of java code if file doesn't start with "PDF".
On Wed, May 25, 2016 at 3:08 PM, Peter Moses <email@example.com>