macro "goto_coordinates" {
    saveSettings;
    width=300;
    height=200;
    xc=0; yc=0;
    Dialog.create("My dialog"); // ("Go to selected coordinates. Creates rectangular selection" );
    Dialog.addNumber("Selection center X",xc);
    Dialog.addNumber("Selection center Y",yc);
    Dialog.addNumber("Selection width", width);
    Dialog.addNumber("Selection height", height);
    Dialog.show();
    xc = Dialog.getNumber();
    yc = Dialog.getNumber();
    width = Dialog.getNumber();
    height = Dialog.getNumber();
    print("xc="+xc+", yc="+yc+", width="+width+", height="+height);
    makeRectangle(xc-width/2, yc-height/2, width, height);
    run("To Selection");
    restoreSettings;
}


