Login  Register

Using exec("open", path)

Posted by vischer on Jan 19, 2015; 11:17pm
URL: http://imagej.273.s1.nabble.com/Using-exec-open-path-tp5011289.html

Hi,

I would like to execute a command similar to the description of exec() in the documentation:
        exec("open", path).
This works correctly when "path" points to a document that knows its creator (like Excel in case of results.xls)


When specifying any other application, I succeeded in OS X Terminal:
open "/Users/norbert/EightDots.txt" -a "/Applications/Igor Pro 6.2 Folder/Igor Pro.app"

However, I cannot get it run from ImageJ.


My text file, which immediately draws a publication quality graph, looks like this:

IGOR
WAVES/O xValues,yValues
BEGIN
3.0955 1.8882
1.9475 1.0004
2.7004 0.8494
2.3837 0.9058
2.7065 1.0626
1.9577 0.8763
1.5672 0.9094
1.7842 0.9633
END
X Display yValues vs xValues
X Modify grid=1
X ModifyGraph mode=2
X SetAxis left 0,2
X SetAxis bottom 0,4
X ModifyGraph lsize=7


Norbert Vischer
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html