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

Re: Monitor a folder, run Dr Brown's "Image Processor Pro" script, and move original file

$
0
0

It indeed could but the complexity of changing Image Processor Pro dialog  to include a newly designed optional move feature is infinity more complex then simply adding a step to an action that use a Photoshop script that has a hard coded move files in a source hard coded folder to a hard coded archive folder.

 

Agreed mostly. IPP could modified to move the files to a hardwired folder but then you would have to remake the change when a new rev of IPP came out. Customization like this is rarely a good idea. If you were to do it, the block of code you would have to change is:

  try {

    if (!self.processDocument(doc, file)) {

      self.failedFiles.push(file);

    }

  } finally {

    doc.close(SaveOptions.DONOTSAVECHANGES);

  }

 

to something like this

 

  try {

    if (self.processDocument(doc, file)) {

      // insert code to move file

   } else {

      self.failedFiles.push(file);

    }

  } finally {

    doc.close(SaveOptions.DONOTSAVECHANGES);

  }

 

But don't do that. A second script is the way to go.

Also, it might make this thread a little more navigable if JJMack removed _all_ of the IPP source code.


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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