This may sound a little silly but I can't figure out where to put this within the code. Also I'm not sure what to put in place of /* the file*/ that you put in your reply.
Could you please show me how to inject this
var thePdf = app.open(/* the file*/, pdfOpenOptions);
Into this
#target photoshop
var theFolder = Folder.selectDialog ("select folder");
if (theFolder) {
var theFiles = theFolder.getFiles(/\.(jpg|tif|eps|psd)$/i);
for (var m = 0; m < theFiles.length; m++) {
var thisFile = app.open(File(theFiles[m]));
if (thisFile.name.indexOf("10") != -1) {app.doAction(/*insert name of action*/, /*insert name of action set*/)}
}
};
Also what to put in place of /* the file*/.
I'm very new to this. Just barely grasping javascript - have just started learning.