Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Opening files one by one

$
0
0

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.


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>