Is it possible to have gimp run a script that located in an arbitrary directory? It seems that gimp wants to run scripts from ~/.gimp-n.n/[plug-ins|scripts]/

I often use gimp scripts to non-interactively create many images based on a few parameters. In these cases I use gimp as if it were a compiler e.g.
gimp scripts ==> source code
gimp ==> compiler
images ==> object files

Sometimes I even use a makefile run gimp and check all the source files into a source control project.

Given this way of using gimp, it would be very handy if I could run gimp in some way so that it would run a specified script that is not located in one of the standard gimp directories. I have found that it is possible to specify the entire script on the command line via:

gimp -i -b "$(cat script.scm)"

But this has a couple problems:
1) All of the code exists on the same "line" so if there is a syntax error it is very difficult to track down 2) It only works for scripting languages where white space is not significant. This means you can't use this with python-fu (my preferred scripting language)

Am I missing something?  Is there an obvious way to do this?

If there is no way to do this, would it make a good feature request?

Robert.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to