Login  Register

Get name of stack or how to choose an inactive window

Posted by KJ-2-3 on Mar 19, 2010; 11:40am
URL: http://imagej.273.s1.nabble.com/Get-name-of-stack-or-how-to-choose-an-inactive-window-tp3688896.html

Hi everybody

Im working with a macro which basically takes a stack and converting it into
images - no problems until now.

However my problem is when I'm trying to get the first image in the stack
(ie. not the active image).

The stack is divided into images with "name of stack"-0001 and so on.

I've figured that I most likely could use the command:

selectWindow('-0001');

But how do I get the "name of the stack" or how do I choose the first window
(the "name of the stack"-0001)

Sincerely
Kristian