Automator - Load files into specific application

Hello, I'm using Automator to batch resize photos. I'm also using application JPEGmini to reduce size of there photos after resize.


I made a script for photo resize where I select all photos in folder and click on Resize

but now I need next steps for - Open JPEGmini app, load all these selected photos in JPEGmini app and JPEGmini will do the rest of the work. This app have two options for photo load - classic File / Open or Drag and Drop.


Is this possible with automator?

Thank you for answer.

MacBook Pro with Retina display, macOS Mojave (10.14.1)

Posted on Nov 19, 2018 1:35 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 19, 2018 1:44 PM

Does JPEGmini come with any Automator actions, or is it offer a command-line interface? Automator is based on flow of selected output from one action to another. Once you resize those photos, their full path will pass onto the next action.


If JPEGmini has no Automator actions, but does offer a command-line interface, then you can use a Run Shell Script action, and in the default Bash boilerplate for loop, you can process each file with JPEGmini settings. You will need the Run Shell Script action pass input: as arguments to process each passed file to it.

3 replies
Question marked as Top-ranking reply

Nov 19, 2018 1:44 PM in response to jirifromnovy jicin

Does JPEGmini come with any Automator actions, or is it offer a command-line interface? Automator is based on flow of selected output from one action to another. Once you resize those photos, their full path will pass onto the next action.


If JPEGmini has no Automator actions, but does offer a command-line interface, then you can use a Run Shell Script action, and in the default Bash boilerplate for loop, you can process each file with JPEGmini settings. You will need the Run Shell Script action pass input: as arguments to process each passed file to it.

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 - Load files into specific application

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