Automator + Photoshop, but mostly Automator....

Hello, sorry for the newbie questions, but I wanted to take a moment to see if this can be done or if I should just stick to doing this manually. I create several "mock-up files" for my art. I use the same file size for every piece of art and I run the same photoshop action every time that I have crate, but I would like to apply this to an entire folder instead of having to run the script, move the files, open the next file, etc.


Here's what I wanted to do and if someone could point me in any direction on how I can do this using Automator, I would be extremely grateful.


  1. Scan directory for all files.
  2. Copy each file in the directory and make a new folder based on the file name.
  3. Move the file to the respective folder it's named after.
  4. Open Photoshop 2020 and run specific script that creates all the variations of the art.
  5. Move those files into the same directory as the the folder created from the original filename. (photoshop actions only allow you to choose which folder (same folder) every time.) I currently will save all the files created by Photoshop in the same main directory as the original files were found.
  6. Move onto the next file until directory is done and all the mockups are created.


It seems to simple, but I can't seem to figure this out in Automator. Any help would be most appreciated. Thanks again.

MacBook Pro 13”, macOS 10.15

Posted on Aug 24, 2020 10:27 AM

Reply

Similar questions

4 replies

Aug 25, 2020 4:20 PM in response to brenden213

In my opinion, you have about a 0% chance of doing this with basic Automator actions.


Automator has way too little control over loops and if/then logic, and I think that's going to be necessary given your outline.


For example, just take your first two steps:


  1. Scan directory for all files.
  2. Copy each file in the directory and make a new folder based on the file name.


step 1 is easy enough, bUt if you have, say, 100 files in the starting directory, you need step two to run 100 times, once per file. Automator stops right there. You can do one thing with those 100 files (e.g. move them all en masse to one new folder), but you can't do 100 different things - at least I've never found a way to do that in my time with Automator.


You *could* do this with AppleScript, or some other more robust scripting system (including shell scripts), and these could be embedded in your Automator workflow (via the Run AppleScript or Run Shell Script actions), but since 99% of the processing happens in that script, you have an AppleScript/shell solution, not an Automator one.


No matter what, your use case is very specific, so even if someone does help write the guts of any such script, you're going to need to understand the logic to be able to tweak/maintain the scripts over time (or pay someone to do so).

Aug 25, 2020 8:59 AM in response to brenden213

Hey Brenden,


It appears you'd like to run an Automator script to accomplish this workflow to save you some time. We'll do our best to provide the resources to assist with creating this.


Create a workflow in Automator on Mac to select the folder you want to scan. Then an action to create that copy of the files and create the new folder. Select another new action for moving the files. Search for Photoshop in the search field for opening the app and add your specific script you'd like it to run: Add AppleScript scripts to a workflow in Automator on Mac


After that you'll create another action to move those files once more and save it exactly how you'd want it to be saved. Lastly, one more action to move those files until it completes.


Hope it helps, take care!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automator + Photoshop, but mostly Automator....

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.