1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Python Scripting from command line

Discussion in 'GIMP for Mac' started by Maitreya, May 29, 2010.

  1. Maitreya

    Maitreya New Member

    Joined:
    May 28, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    :wilber:
    Hola, I'm trying to run gimp on the command line to run a python script without any gui. I've tried:
    open /Application/Gimp.app --args --no-interface --batch ...
    and
    /Application/Gimp.../Gimp --no-interface --batch ...

    but the gui shows up so I'm pretty sure it's not doing anything with my arguments. Also, I'm not 100% on how to pass it the python script.

    Is this even implemented? Any useful info?
     
  2. lisanet

    lisanet Member

    Joined:
    Sep 15, 2008
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    16
    Although the GIMP app bundles are not intented to be used on the command line, soing so should work in most cases.

    You need to call the script

    Code:
    /Applications/Gimp.app/Contents/Resources/script --args --parameters --etc ...
    That should do the trick.

    :)
    skl
     

Share This Page