Get insights from experienced community members

Community members who reach Level 5 in the community can create User Tips to share knowledge about Apple products. Check out this User Tip created by etresoft: Setting up a local web server on a Mac

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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 Best answer

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.

Posted on Nov 19, 2018 1:44 PM

3 replies
Question marked as Best answer

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.

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 ID.