|
Hey guys,
First time writing a macro for ImageJ, so this is probably some stupid syntax error. Here's what I want to do: have the user select a directory, and then open all the images within it with the Import Sequence command. Here's what I do.
dirX = getDirectory("Choose Source Directory ");
list = getFileList(dirX);
file0 = list [0];
i = 0;
while(i < list.length)
{
i++;
}
filepath = dirX;
filepath = filepath + file0;
run("Image Sequence...", "open=[filepath] number=i starting=1 increment=1 scale=100");
I've checked the filepath variable by replacing the run with a simple open(filepath) command, and it opens the correct image fine. But when I run this, nothing happens. No error, but it doesn't do what anything either. Any thoughts?
|