I'm trying to run a batch that will perform a Save As. I understand that Save As must be executed as a trusted function and place as a folder leverl javascript.
Here is my Javascript:
// Save As EPS function
var saveAs = app.trustedFunction(
function()
{
app.beginPriv();
var name = this.documentFileName;
var n = name.split(".");
this.saveAs({
cPath: "/c/junk/test/in/" + n + ".eps",
cConvID: "com.adobe.Acrobat.eps"
});
app.endPriv();
}
);
When I call the saveAs() function in my batch I get the following error message:
MissingArgError: Missing required argument.
this.saveAs:1:Batch undefined:Exec
===> Parameter cPath.
Any help would greatly be appreciated.
There might be other problems with your code, like the usage of the "this" object.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com