February 6, 200619 yr 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
February 6, 200619 yr 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
February 6, 200619 yr Author Thanks Soren: I wrapped the whole script in that try statement. Got rid of the filemaker dialogs
Create an account or sign in to comment