Re: Access File Info in macro?
Posted by
Gabriel Landini on
Jul 23, 2013; 7:47am
URL: http://imagej.273.s1.nabble.com/Access-File-Info-in-macro-tp5004079p5004087.html
On Monday 22 Jul 2013 21:15:15 you wrote:
> My macro code:
> run("Raw...", "open="+path+infile+" image=[16-bit Unsigned]
> width="+srcCols+" height="+Wsize+" offset="+mOffset+" number="+NumChunks+"
> gap=0 little-endian use");
>
> must be preceded by a line in which the offset is hardwired, thus:
>
> mOffset = 52840;
>
> This is pretty inelegant: is there any way I can access the offset value
> from ImageJ macro language? If not, is there a Javascript function that I
> can call from the macro to do the same (and how to call?).
Where is the value you want to use in the macro supposed to exist if not in a
variable or constant?
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html