11 Replies Latest reply on Jul 29, 2017 4:16 AM by JJMack

    A script to run an action according to the file name

    Elgato74

      Dear All,

       

      I hope someone can help.

       

      I am looking at the following task: I have several .jpg files in a folder. Their names are something like "ADE-4LP.jpg" or "DBA-3P.jpg" or "EFC-1P.jpg"

       

      I would like to open these files in Photoshop and then run actions according to their file names. So for example, if the file name has the -4LP ending, the action named "Create4LP" is triggered. If the name has the -3P ending, the action "Create3P" is triggered and so on.

       

      Can this be done with a script ?

       

      Thanks muchly !!

       

      Felix