var cmds = newArray("New Hyperstack...", "Import Image Sequence...", "Fly Brain (1MB)", "HeLa Cells (1.3M)", "Close All", "-", "Split Channels", "Merge Channels...", "Add Slice", "Delete Slice", "Z Project...", "Make Montage...", "Label Stacks...", "Animation Options...", "Remove Overlay", "-", "Enhance Contrast...", "Find Maxima...", "Make Binary", "Binary Options...", "Gaussian Blur...", "-", "Analyze Particles...", "Set Measurements...", "Set Scale...", "Scale Bar...", "Calibration Bar..."); var menu = newMenu("Common Commands Menu Tool", cmds); macro "Common Commands Menu Tool - C037T1b12CT9b12C" { label = getArgument(); if (label=="New Hyperstack...") run("Hyperstack..."); else if (label=="HeLa Cells (1.3M)") run("HeLa Cells (1.3M, 48-bit RGB)"); else if (label=="Import Image Sequence...") run("Import Image Sequence..."); else if (label=="Make Binary") run("Convert to Mask"); else if (label=="Binary Options...") run("Options..."); else run(label); }