Skip to main content
mysysctrlm74982608
Known Participant
March 12, 2022
Answered

how to apply different actions once to different each folder contains different images and export wi

  • March 12, 2022
  • 3 replies
  • 1629 views

how to apply different actions once to different each folder contains different images and export with the same folder names and hierarchies as its imported

 

In short, it is to repeat the single operation process of batch processing, but import files and actions are variables

This topic has been closed for replies.
Correct answer jazz-y

If I understood the task correctly, then you can use my script - Auto-find-action 

(download jsx file from github and put it into Presets\Scripts\ folder of Photoshop)

 

It looks for a match between the name of the action and the name of the document, the name of the folder from which the document is opened, the name of the active layer, or any layer from the document. It is designed to be written to an action, which allows it to be used in batch processing as well. I think that the interface is intuitive, but just in case, I recorded a short video with an example of work:

3 replies

jazz-yCorrect answer
Legend
March 12, 2022

If I understood the task correctly, then you can use my script - Auto-find-action 

(download jsx file from github and put it into Presets\Scripts\ folder of Photoshop)

 

It looks for a match between the name of the action and the name of the document, the name of the folder from which the document is opened, the name of the active layer, or any layer from the document. It is designed to be written to an action, which allows it to be used in batch processing as well. I think that the interface is intuitive, but just in case, I recorded a short video with an example of work:

mysysctrlm74982608
Known Participant
March 12, 2022

Holy crap!! yes it is! !!

Stephen Marsh
Community Expert
Community Expert
March 12, 2022

Further to my previous post... Your task requires custom scripting, the script may take a lot of time and effort to create unless you can find a pre-made script that does what you require.

 

I would propose the following as a less than ideal alternative by leveraging existing tools that do not require custom programming:

 

1) Image Processor Pro (IPP) script, which can use a single top-level/root input folder and process sub-folders maintaining directory hierarchy and naming with a base-name* and sequential numbering + using an action to process and save into various file formats. 

 

2) *The name used by the IPP script is not the parent directory name, however, this can be changed either by adjusting the IPP script code (harder to do) or using batch rename in Adobe Bridge (easy to do).

 

mysysctrlm74982608
Known Participant
March 12, 2022

Thank you so much! Could you tell me how to apply a A document corresponding to its A action, next B document to its B action and so on...  and export each of them to an individual file.

Stephen Marsh
Community Expert
Community Expert
March 12, 2022

There is not much info to go on, please answer the following so that the forum can help you:

 

1) Do you know how to script in JavaScript, AppleScript or VB Script?

 

2) How will you match the folder to the action set and action?

2a) Is it a single folder to a single action set and action?

2b) Is it a single folder to the same action set with different action for each folder?

 

3) Your directory structure is unknown, I get the impression that there are sub-directories? Please upload a screenshot or provide more info on the folder structure.

 

4) File naming is based on the parent directory name, however, what sort of sequential numbering suffix is required to avoid filename clashes with multiple input images being renamed to the same directory name?

 

5) Output file format and options, is this the same as the input image or are different input file formats all being saved to a single output file format?