Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6863 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.