How to skip documents in an action script batch based upon having "secure" in filename.
i have action script adds files in directory batch ocr, unskews pages, encrypts file, , saves word secure suffix file name. works no problem. issue having can't figure out how write script skip documents secure in filename.
i tried variations on following:
function getdocname(){
if (event.target.documentfilename.contains(secure)){
app.settimeout('event.target.closedoc(true);', 1);
} else {
return null;
}
}
or
function getdocname(){
if (event.target.documentfilename.contains(secure)){
event.rc = 0;
} else {
return null;
}
}
try following if statment:
if (/secure/.test(event.target.documentfilename)) {
More discussions in JavaScript
adobe
Comments
Post a Comment