Childcare, Want to work out, but do not know what to do with the little ones?

If I delete the 'Open' command it does seem to work, but I'd like to keep 'Open' because I'm using the rename(Without Extension)' command to rename the image file for saving, and if I don't use 'Open' then it gets renamed with the name of the macro instead (hope that makes sense! I would really appreciate any insights / suggestions - I've no idea if this is me making some sort of rookie error, or some weird bug preventing the macro from working more than a couple of times... run("Open..."); run("Set Scale...", "distance=1.1 known=1 pixel=1 unit=um global"); run("Set Measurements...", "area perimeter bounding display redirect=None decimal=3"); run("Colors...", "foreground=black background=white selection=red"); run("8-bit"); //Converts to 8-bit image for thresholding rename(Without Extension); run("Select All"); run("Copy"); new Image(Without Extension, "8-bit white", 1680, 1056, 1); run("Paste"); run("Auto Threshold", "method=Default white"); run("Select None"); set Tool("polygon"); wait For User("Draw round all villi of interest then press OK"); run("Make Inverse"); run("Cut"); function roi Rename Last(name) var n = 0 run("Select None"); while (get Boolean("Draw a base?
We stayed here for a long weekend and decided at the last minute to do a 'quickie' wedding.
We were a little concerned given a couple of reviews on Trip Advisor but it was recommended to us by a friend so we went for it and we're glad we did.
Hello all, I am new to FIJI/Image J and a novice at macro programming.
I've managed to throw together a basic image analysis macro to measure various parameters from JPGs or TIFs.