I would like Photoshop to automatically execute the following task for a given folder:
- Load all PNG files in a given folder.
- Convert each file's mode to
RGB color
- Add one layer to each file
- Save the files as PSD in the same folder
I have been told that this can be done with Photoshop scripting, but I don't know how to get started since unfortunately I don't have much experience with JavaScript.
One thing I know is that I can't run the task above using Actions
because when I record the last step (4), Photoshop records the action to save the PSD files in the folder that I use when recording the macro (instead of the one used to load the original PNG files). In other words, it fixes the destination folder to the one used in the macro.
This takes me to the following question: Is there a way to automatically generate the Photoshop Javascript code that runs a given action?
If so, I wouldn't mind learning how to modify the script to fix the above folder problem.