glenhest53 Posted February 6, 2006 Posted February 6, 2006 I have a fairly long Calculated Applescript that runs inside a database. when a dialog pops up, it gives the user a message and the user's only option is to click the cancel button which brings the script to a halt. My question is why do I get two "Extra" dialog boxes after the initial Applescript dialog? Two from Filemaker. First: "User Cancelled" button OK Second: "Unknown error -128" button OK
Søren Dyhr Posted February 6, 2006 Posted February 6, 2006 In embedded AS does filemaker get in charge of issuing warnings, there are two ways to avoid the problem: display dialog "Howdy" buttons "OK" This makes it imposible for the user to choose a cul de sac - what it does is it gets rid of an unused button. The other way is to make it inside a: try display dialog "Howdy" on error <- this gets removed by the compiler if nothing follows end try But who needs a useless button? --sd
glenhest53 Posted February 6, 2006 Author Posted February 6, 2006 Thanks Soren: I wrapped the whole script in that try statement. Got rid of the filemaker dialogs
Recommended Posts
This topic is 6863 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now