No, that shouldn't cause any such problems. Does it work if you save it
under a different name?
Yeah, sorry, I was just coming back to the post to add that but you beat me to it!
Yes, it DOES work if I change the output options and add something to the beginning or the end of the filename.
I also neglected to mention that I'm working in Acrobat 9 for this.
It's making me crazy!
Thanks a bunch for getting back!
You can also save the file using JS, instead of via the built-in command in the batch sequence options.
Windows 7 Pro.
Hmm, I've set the sequence to "Don't save changes" and added app.execMenuItem("Save"); to the end of the JavsScript, which runs last in the sequence, but it isn't saving the file.
Is there something other than app.execMenuItem("Save"); I should be using?
First of all, make sure you update to the latest version available of
Acrobat 9. I think it's only officially compatible with Windows 7 from 9.2.
Why did you do it like that? Why not use the built-in method of saving the
files at the end of the process?
Should this.save(); be working because its not.
The console is now opening everytime the sequence runs now also. What the heck is THAT about?!?!
this.save() is not a valid command, which could be why the console shows up...
As I said, use the built-in option to save the file (under the Output Options of the batch sequence), instead of trying to do it yourself in a script.
Or have I completely lost it?
Sorry, I thought you had originally tried it with the execMenuItem command
when you were getting the read-only error...
The way to do it in JS is with this command:
You rock!! That made it all go.
The code looks like this:
//Collapses all bookmarks and shows the bookmarks panel
function BookmarksCollapse(bkm, nLevel)
var s = "";
for (var i = 0; i < nLevel; i++);
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++)
BookmarksCollapse(bkm.children[i], nLevel + 1);
You might have accidentally clicked the tiny icon next to the command, a small window icon. This causes the JS console window to open when each file is processed. Dumb, right? If that's the case, try clicking that icon again so that disappears and then run the batch again.
If you are on a windows system make sure the Windows Explorer is not using the 'Preview" mode.
Are you on a network drive, then there could be clearing of the "Locked" status flag due to timing issues with the server or others may have the PDF open in an edit mode.
You were right Gilad, the "Interactive mode" was active. Yeah, kind of strange. Maybe its helpful for debugging in some situations?
This now works as I need it to.
Thanks very much for all your time.
Almost forgot, GKaiseril, as I mentioned earlier, I know the network drive isn't a problem and the file is in a folder that is "mine." And while someone else could absolutely, potentially, open it I know it wasn't opened by someone else. I also have another sequence that runs fine on that same file, makes the changes and overwrites the original file.
So, that part is still a mystery.