"Open next" Doesn't work

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

"Open next" Doesn't work

flowglow
Hi everyone!

I am trying to use very helpful run("Open Next"), but it doesn't want open next image=)

So this code is working well:

q=0;
n=92;
open("here I put direct path to the 1st image");
while (q<n)
{
        run("Open Next");
        print(q);
        q++;
}

This one prints "q", but doesn't change image:
q=0;
n=92;
folder = getDirectory("Choose a Directory");
first_photo = getString("Enter name of first photo", "Sample_27_G_000000.JPG");
open(folder+first_photo);
while (q<C[0])
{
        run("Open Next");
        print(q);
        q++;
}

Has someone faced with such problem before?