you can use physical units in the Edit>Selection>Specify… dialog. Here is how you would do this in a macro:
run("Specify...", "width=500 height=500 centered scaled"); run("Crop");