close("Summary"); run("Blobs (25K)"); setAutoThreshold("Default"); waitForUser("Please start another Windows application such as Notepad or Word;\n" + "then go back to ImageJ keeping the window open and press ok.\n" + "Then activate and try to type some text in the other application window.\n" + "The keypresses will go to ImageJ instead of the other application,\n" + "because the Summary table window is forced to front during macro execution.\n" + "Activating Batch Mode does not help in this case."); setBatchMode(true); for (i=0; i<25; i++) { print("Analyze Particles: "+i); run("Analyze Particles...", "display clear summarize"); //this creates the summary table, which is forced in front of all open windows in the OS wait(2000); }