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

Here is how I start a web browser for help on my Photo Collage Toolkit for the help buttons in my collage scripts dialogs. . So I can maintain a single copy remote from the users. That enables me to add information and news of updates and provide a download link.

 

Instead of writing a html file your Action would steps would be a  File Automate Image Processor Pro step followed File Script move files. The Photoshop Script move files script would write a bat file on windows that would do the move.  On a Mac ??? In the code below change URL to BAT and instead of the html stuff replace that with bat stuff.

 

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.");

};

 

 

DOS move command

MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination

 

 

To rename a directory:

MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2

 

 

  [drive:][path]filename1 Specifies the location and name of the file

                          or files you want to move.

  destination             Specifies the new location of the file. Destination

                          can consist of a drive letter and colon, a

                          directory name, or a combination. If you are moving

                          only one file, you can also include a filename if

                          you want to rename the file when you move it.

  [drive:][path]dirname1  Specifies the directory you want to rename.

  dirname2                Specifies the new name of the directory.

 

 

  /Y                      Suppresses prompting to confirm you want to

                          overwrite an existing destination file.

  /-Y                     Causes prompting to confirm you want to overwrite

                          an existing destination file.

 

 

The switch /Y may be present in the COPYCMD environment variable.

This may be overridden with /-Y on the command line.  Default is

to prompt on overwrites unless MOVE command is being executed from

within a batch script.


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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