Re: Bug in 1.37j ?
Posted by
lechristophe on
Feb 20, 2007; 12:01pm
URL: http://imagej.273.s1.nabble.com/Bug-in-1-37j-tp3700284p3700288.html
I reformulate my first email with greater details.
1) Open an image (.tif file) (you can close other opened images to
reduce the parameters).
2) Run the following macro :
---- begin code ----
macro "test" {
RepertoireSource=getDirectory("image");
print(RepertoireSource);
}
---- end code ----
The log window will display the path to the open image (without the name
of the image)
3) Close the image, open a stack by opening two images from the same
folder and do a "Images to Stack" command (or "Import > Image Sequence"
command, or "Import > Selected As Stack" command, or any command that
generate a stack).
4) Run the test macro on the active stack. It will display a blank
string, not the path from where the images were open. I can assure you
that it retrieved the path from stacks with previous ImageJ versions.
Christophe Leterrier
Gabriel Landini a écrit :
> On Tuesday 20 February 2007 11:42:48 Christophe Leterrier wrote:
>> Sorry, my mistake.
>>
>> It was a typo. I'm using the latest 1.38j I got by downloading the jar
>> file.
>
> OK. What is the problem with the macro, can you post an example that does not
> work?
>
> Cheers,
> G.
>