r/applescript • • Jul 01 '22

Automating Image Compression with ImageOptim

Looking for some input on how or the best way to do this. I currently have a folder of pictures that is synced and updates daily, but is getting quite large.

Goal: I'm trying to set up an automation where when the file lands in the folder (or sub-folder) that it is automatically sent to ImageOptim to compress the image.

I've tried using automator and applescript, but I'm getting a bit lost as i'm not really good at either one. I also considered keyboard maestro or hazel. I keep getting stuck at opening the application, then trying to select the file. Also wondering if I have multiple pictures uploaded at once will it try to open the program repeatedly and cause an error there?

Any help or advice is very much appreciated! Thanks

5 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/linnic Jul 02 '22

Wow thanks so much for your detailed reply! Ill try it out later today. I’ll check out the book as well, sounds like it’ll be super useful.