It sounds like you need to DISABLE Field Entry in 'BROWSE" Mode anyway - uncheck 'Browse' in Field Entry Subsection of the Inspector's Data Tab. Same goes for Find mode if your script is supposed to work in Find Mode too.
BUT, why can't the Field BE the button in this case? Do you still need data-entry access to the Field sometimes?
Thank you. That did the trick! I appreciate your help.
In that case, I recommend using the FIELD itself as the button...single object on Layout, nothing hidden, easier to maintain going forward, no?
I will research that possibility and I appreciate your advice.
To set up a field as a button on your layout:
Enter Layout Mode
Select the field
Select Button Setup... from the format button.
Using Button Setup... from the format button, you can turn a number of objects on your layouts into buttons--such as turning a graphic image or some layout text into a button.