Hi Mark
I think if you use app.open("FileObject") instead of execute, it will automatically wait.
Try this
var file1 = File.openDialog();
var myDoc = app.open(file1);
alert("Now");
The alert "Now" should not come up before the document is open
[At least thats what happened when I tried it]
Davey