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

I thought I did

 

You can use any text editor to create Photoshop scripts they are just text files. In fact Photoshop scripts can be used from any folder on your system if you don't put it in Presets\Scripts it will not be listed in File>Scripts>Script Names list.  You would need to browse to the folder when recording the action step. The script name would not be listed by name or run by an accidental click in the list. You don't want files to be archived and not processed.

 

try{

   var URL = new File(Folder.temp + "/PhotoCollageToolkit.html");

   URL.open("w");

   URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html"></HEAD></HTML>');

   URL.close();

   URL.execute();   // The temp file is created but this fails to open the users default browser using Photoshop CC prior Photoshop versions work

}catch(e){

alert("Error, Can Not Open.");

};

 

So that would be

 

try{

   var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");

   BAT.open("w");

   BAT.writeln('your hared coded move command');

   BAT.close();

   BAT.execute();   // execute the temp bat file

}catch(e){

alert("Bat MoveFilesToArchive  failed to execute.");

};


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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