Skip to main content
Participant
July 23, 2011
Question

Dynamic folder creation possible?

  • July 23, 2011
  • 2 replies
  • 1189 views

Hi all-- I'm new to the scripting thing and have been trying to learn but am getting nowhere. Wondering if anyone could help me.

My current workflow is:

Batch including all subfolders using an action that crops, levels, and adds a border then saves the image as tiff to a folder called tiff, resize and save as jpg to another folder called jpg.

It's a pain sorting through the tiff and jpg folders to separate out the images into new folders named as per the originals.

Is there any way to have a script look at the folder you are currently batching from and create and save to folders in each of the tiff and jpg folders named as per the original folder being batched from?

I would appreciate any help or advice you may be able to give.

Janice

This topic has been closed for replies.

2 replies

JJMack
Community Expert
Community Expert
July 23, 2011

Janice-83 wrote:

My current workflow is:

Batch including all subfolders using an action that crops, levels, and adds a border then saves the image as tiff to a folder called tiff, resize and save as jpg to another folder called jpg.

Janice

Now if you modify your action just a little bit I think you should be able to use the images processor pro script. Your action now does the following crops, levels, and adds a border then saves the image as tiff to a folder called tiff, resize and save as jpg to another folder called jpg. If you delete the endng steps your action would do crops, levels, and adds a border. This shorter simpler acttion should now be all you need  to do what you want to do by using it with the Image Processor Pro script.

With the Image Processor Pro script you can save as many version of your images the you neet to. If you look at the image processor pro dialog it should easy to see that you can do what you want to do with the scipt and a single simple action. If you ouput requirement were more complex you might need to use more then one action. You have the option to use a different action for each image version you save.

You see four sections.

Section  1 Images if your images are ina a tree you could proces  the whole tree, Part of the Tree, a folede or juset the currently open documents.

Section  2 Save image location quite flexable as to where you output can bes saved

Section 3 File Types. This is a very flexable area you can save many different File Types and save as many versions to meet you needs.

for each there are options, save,  File Type save options, optional resize with option, sub folder and file name my image show two of the tabs and the option like file types to save only the jpeg tab without the * would be saved here.

You can add and delete tabs. the + and - buttons you could set uo a Tiff tab and a jpeg tab and use the same action. The Tiff not resize the Jpeg resized. The image is only opened once. The script just reverts the image back to the state it was in  before the processor saved any version after it saves a version.

Section 4 Copyright Info

JJMack
Janice-83Author
Participant
July 24, 2011

Hi again,

Thanks for all of the advice, but this script still does not do what I need it to.

The first step in my workflow has to be a crop, which works with the Image Processor Pro by having it save to tiff after it triggers an action, however, when it goes to the jpeg step it goes it goes back to the original uncropped image, which is uncropped. It does create folders and save the files in the appropriate locations.

My workflow using the Image Processor Pro and actions is as follows:

Image Processor Pro set to include all subfolders and keep folder structure

Set 1 save as tiff and run action 1 (which crops and corrects the image)

Set 2 save as jpg and run action 2 (which adds a border and watermark and resizes for the web)

This creates properly named subfolders containing jpeg and tiff copies of each image, which is good, but the jpeg images have not gone through the action 1 step and are therefore not cropped. I know I could set up action 2 to include another crop step, but that seems redundant. There must be a chunk of code I could use to do this elegantly. I even tried taking apart the Dr. Brown script with no luck.

Inspiring
July 24, 2011

If you have fixed folders that you always use, you could record an action that calls Image Processor Pro (IPP) to do the crop/tiff processsing

then record a second call to IPP that uses the output folder from the first step as the source folder for the second step.

If this doesn't quite fit your workflow, you can always hack IPP to make it do what you want since you do have source

JJMack
Community Expert
Community Expert
July 23, 2011

Photoships with a script named "Image Processor" and Dr Russell Browns web site has a script you can download named something like "Image Processor Pro" I think you should look into these. All you may have to do is create a simple action and use one of these scripts to do most of the work you want done and have it include your action during its processing. 

JJMack
Janice-83Author
Participant
July 23, 2011

Hi there- thanks for the response.

I tried the Dr. Brown script, and it doesn't work for my application, as I have multiple save and correction steps. This would require all of my changes to be made before going through the Image Processor.