Scripting execution order

I have a script that exports some vector data to an external program which modifies it and then, when the external program closes, it re-imports it.  So far so good.  However now I want to ask the user if it looks OK and take further actions depending on the answer.  The trouble is that even though the IMPORT and SET_LAYER_OPTIONS commands precede the DEFINE_VAR and PROMPT, they don't seem to be executed until the script closes.  The YES_NO prompt pops up on an unchanged picture.

How does one overcome this? 

I have a horrible suspicion that it might be tied up with the much requested REFRESH facility, but is there some work around?
Sign In or Register to comment.