run("image Sequence..." not working

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

run("image Sequence..." not working

nick44
This post was updated on .
I am trying to open an image sequence make some changes then save into another file
The sequences are all in one dir seq 1 to seq X with the actual images several levels down variable dir3
This all works (in other macros) but i get an error ')' expected in line 23 which is the run image seq line

Below is what I've come up with

any ideas why the error


 dir1 = getDirectory("Select the folder ");
   FolderList = getFileList(dir1);

for (o=0; o<FolderList.length; o++) {

dir3 = dir1 + FolderList[o] + "Raw Images/" + FolderList[o] + "ST000000/SE000000/";
      dir2 = dir1 + FolderList[o] + "text/";
      list = getFileList(dir3);
     
run("Image Sequence...", "open=[dir3 + "IM000000"] number=list.length starting=1 increment=1 scale=100 file=[] or=[] sort");

waitForUser("Select Slice\nThen press OK")

run("Delete Slice");
}
Reply | Threaded
Open this post in threaded view
|

Re: run("image Sequence..." not working

Michael Schmid
Hi Andrew,

in contrast to Java, the macro language does not allow line breaks  
within a command.
I guess that this is the reason for your problem.

Michael
________________________________________________________________

On 3 Jul 2008, at 06:13, nick44 wrote:

> I am trying to open an image sequence make some changes then save into
> another file
> The sequences are all in one dir seq 1 to seq X with the actual images
> several levels down variable dir3
> This all works (in other macros) but i get an error ')' expected in  
> line 23
> which is the run image seq line
>
> Below is what I've come up with
>
> any ideas why the error
>
>
(...)
>
> run("Image Sequence...", "open=[dir3 + "IM000000"] number=list.length
> starting=1 increment=1 scale=100 file=[] or=[] sort");
>
(...)