AnsweredAssumed Answered

Script Exit when closing the current window

Question asked by BatchMaker on Dec 2, 2009
Latest reply on Dec 2, 2009 by mrvodka

Title

Script Exit when closing the current window

Post

Hello,

I am using FMP10 over a LAN network, all on Mac OS X.

 

I wrote a script that opens a new window (small, like a pop-up) and prompts the user to choose from a small list of records (2-5) in list view. I pause the script to wait for the user entry. I have a button that is set to resume the script, where the next step is to copy the necessary fields (set variable to be used later). The pop-up window then closes and leaves the user on the first window, where they started.

 

I like the pause script step because it forces the pop-up window to remain on top until the user chooses a record.

 

Their are two situations that do not behave as desired.

One is that if the user closes the pop-up window, the script is still paused (instead of exiting the script).

And two is that if they simply press enter, the script uses the first record by default (not as important as the first problem).

 

Is there a variable or script step that could help with one or both of these problems? 

Outcomes