I'm trying to have Gimp batch process some files in OSX. The best example I've found is in this post: How to run python scripts using gimpfu from command line?. However for launching Gimp in batch mode, this, and every other example starts looks like this:
gimp -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import batch;batch.run('./images')" -b "pdb.gimp_quit(1)
I can't just type "gimp" at my OSX command line though. I have to type "open /Applications/GIMP-2.10.app" and then including the various command line arguments throws up errors related to the "open" command.
I tried making an alias in my bash profile so that typing "gimp" launches "open /Applications/GIMP-2.10.app" but I'm still getting open errors.
Is there something else I need to do in OSX to just be able to type "gimp" and launch with command line args?
You need to make your alias /Applications/GIMP-2.10.app/Contents/MacOS/gimp
. That's where the traditional executables live. Or, make a symbolic link in /usr/local/bin
.