Tristan Chaplin
2012-04-19 04:49:58 UTC
Hi,
Apologies if this is more of a ImageJ question.
I'd like to able to run a jython script from the command line. I tried:
./ImageJ-macosx -batch script.py
but I get
Macro Error: Undefined variable in line 1.
<import> os , sys
I found this command at
http://rsbweb.nih.gov/ij/developer/api/ij/ImageJ.html
After a quick check, it seems that it's assuming the script is java or
javascript and not python (if I comment out the that first line with a //
it goes (and fails) to the next line, but if I use a # it still fails on
the first line).
Is calling jython scripts from the command line not supported? Or am I just
doing it wrong?
Thanks,
Tristan
Apologies if this is more of a ImageJ question.
I'd like to able to run a jython script from the command line. I tried:
./ImageJ-macosx -batch script.py
but I get
Macro Error: Undefined variable in line 1.
<import> os , sys
I found this command at
http://rsbweb.nih.gov/ij/developer/api/ij/ImageJ.html
After a quick check, it seems that it's assuming the script is java or
javascript and not python (if I comment out the that first line with a //
it goes (and fails) to the next line, but if I use a # it still fails on
the first line).
Is calling jython scripts from the command line not supported? Or am I just
doing it wrong?
Thanks,
Tristan
--
Please avoid top-posting, and please make sure to reply-to-all!
Mailing list web interface: http://groups.google.com/group/fiji-users
Please avoid top-posting, and please make sure to reply-to-all!
Mailing list web interface: http://groups.google.com/group/fiji-users