By "stuck in a search" you mean that you get a dialog popping up that no records where found with an offer to either modify or cancel the find?
Try this variant of your script:
If [Get ( CurrentPrivilegeSetName ) = "User 1"]
Set Error Capture [on]
Perform Find [Restore]
If [Get ( FoundCount )= 0]
Show All Records
Perform Script ["Goto Entry Screen"]
Set error capture will supress the error dialog. You don't have to change the use of $recordcount to capture the number of records in your found count if you don't want to, it just seemed redundant to me within the scope of your original post.
The Set Error Capture is what did it. Thank you for your post. I ment to say IWP instead of FMI. On IWP, when you do a find and zero records are returned, instead of a dialog box or error message stating no records found, you get stuck in Find Mode and you have to go back into Browse mode. Doing Set Error Capture On fixes that because as you states it supresses the error and since IWP can't display dialog boxes, allows the script to continue on. That's a big plus with the scripting system to do Error Capture. Thanks again.