dir = "/Users/wayne/Downloads/stack/"; run("Close All"); run("Image Sequence...", "open=&dir sort"); rename("t1-head"); run("Image Sequence...", "open=&dir sort"); rename("t2-head"); run("Image Sequence...", "open=&dir sort"); rename("t3-head"); run("Image Sequence...", "open=&dir sort"); rename("t4-head");