Ambiguous Macro Commands

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Ambiguous Macro Commands

Sean Burke-2
Hello all.
I am experiencing a problem that is pobably pretty common for new-user
macro writers.  When I try to save a sequence of images using the command:
run("Image Sequence...", "format=Tiff name=Stack start="+j+" digits=4
save=/Users/spb/Stack0000.tif");
I get a window asking which sequence to open.  Clearly this is because
both the process for opening and saving sequnces are titled the same.
Here is my question:  Is there a way to make the run command more
specific?
For example, instead of "Image Sequence..." how about "Save>Image
Sequnce..."?  I am using the most recent version of Image/j.

Thanks in advance!

-Sean


--
Sean Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
1300 Morris Park Avenue
Bronx, NY
Reply | Threaded
Open this post in threaded view
|

Re: Ambiguous Macro Commands

Wayne Rasband
> Hello all. I am experiencing a problem that is pobably
> pretty common for new-user macro writers.  When I try to
> save a sequence of images using the command:
> run("Image Sequence...", "format=Tiff name=Stack start="+j
> +"digits=4 save=/Users/spb/Stack0000.tif");
> I get a window asking which
> sequence to open.  Clearly this is because both the process
> for opening and saving sequnces are titled the same. Here is
> my question:  Is there a way to make the run command more
> specific?
> For example, instead of "Image Sequence..." how
> about "Save>Image Sequnce..."?  I am using the most recent
> version of Image/j.

The commands opening and saving an image sequence are not identical.
The one for saving ("Image Sequence... ") has an extra space at the
end.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: Ambiguous Macro Commands

Sean Burke-2
That was it.  Thanks Wanye.

Sean


--
Sean Burke
Imaging Analysis Specialist
Albert Einstein College of Medicine
1300 Morris Park Avenue
Bronx, NY
Reply | Threaded
Open this post in threaded view
|

Re: Ambiguous Macro Commands

mtleis
Hello,

where can i find such information to know about the open and save functions, is there a documentation for that?

Thanks in advance