How to wait for a file to close
Probably very simple question, please don't shoot the newbie.
I want my script to do this:
Open File "something"
<some more stuff>
..but I don't want the "more stuff" to happen until File "something" has done its thing and closed. Seems like a simple request? It would be easy in a shell script, for instance, where you can opt whether or not to wait for a called program to finish until you resume.
I've tried Pause/Resume before the <some more stuff>, but then I need to Resume before "something" gets to do its stuff.