Hi all.
I am trying to come up with a command line macro to open a file and run a macro command on Mac OS X. Here is what my command looks like:
open -a ImageJ64 --args -debug -eval 'open("/tmp/dave.png"); run("Make Composite", "display=Composite"); '
It works fine if I do not have ImageJ64 running already. However if the ImageJ64 application is already running my image is not loaded and the command is not run.
I also tried doing it this way:
open -a ImageJ64 /tmp/dave.png --args -debug -eval 'run("Make Composite", "display=Composite"); '
But what happens here is that the script is run first, before the image is loaded, defeating the purpose.
Any insight into my problem would be appreciated.
Dave
David T. Chen, PhD [MSC contractor]
mailto:
[hidden email] http://erie.nlm.nih.gov/~davephone:301.435.3264 iphone:301.524.3174
Office of High Performance Computing and Communications
National Library of Medicine