Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working command line arguments fail in shell script
#1
After some great help from this forum I've nailed down my Gimp plugins and bash shell commands. However I want to launch them from a shell script and they're failing from there. 

I'm on OS X Mojave. 

Here's my bash shell command:

Code:
gimp -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import OAFE_PARAM;OAFE_PARAM.open_add_flatten_export('/Users/TimB/Desktop/xcftemplate.xcf', '/Users/TimB/Desktop/jpg_to_add.jpg', 2060, 410, '/Users/TimB/Desktop/')" -b "pdb.gimp_quit(1)"

OS X shell scripts don't recognize my Gimp alias, so I try to launch this and it fails. 

Code:
/applications/GIMP-2.10.app/contents//macos/gimp -idf --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import OAFE_PARAM;OAFE_PARAM.open_add_flatten_export('/Users/TimB/Desktop/xcftemplate.xcf', '/Users/TimB/Desktop/jpg_to_add.jpg', 2060, 410, '/Users/TimB/Desktop/')" -b "pdb.gimp_quit(1)"

Here's the error I see:

Code:
GIMP is started as MacOS application
2021-03-20 23:44:41.568 gimp[68881:966437] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
/applications/GIMP-2.10.app/contents/macos/gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
GIMP-Warning: The batch interpreter 'python-fu-eval' is not available. Batch mode disabled.

gimp_check_updates_callback: loading of https://www.gimp.org/gimp_versions.json failed: Operation not supported

Any thoughts on what I could do differently?

Starting with "open" at the beginning doesn't work because then it treats my command line parameters as parameters for "open" and not for Gimp.
Reply


Messages In This Thread
Working command line arguments fail in shell script - by TimorousMe - 03-21-2021, 03:46 AM

Forum Jump: