Re: FileMaker/AppleScript interactions: Get(LastError)
Re: FileMaker/AppleScript interactions: Get(LastError)
- Subject: Re: FileMaker/AppleScript interactions: Get(LastError)
- From: Tim Mansour <email@hidden>
- Date: Tue, 31 Oct 2006 08:45:39 +1100
On 30/10/2006, at 1:42 pm, David Crowe wrote:
This is certainly a solution, although it's not perfect for two
reasons. One is that you need to have specific field names known to
both the script and to the FileMaker application (which is not
robust because you have to remember never to change the names of
the fields, or you have to pass the name of the field to the
AppleScript.
Yes but my simple solution there is that I always create same-named
fields for this purpose in every database where I'm using
AppleScript. So my references are always the same (typically: cell
"zz__Result" of table "System").
But the bigger problem is that to capture all errors basically
means putting a "try/end try" bracket around your entire
applescript application, which makes it difficult to debug...
True I suppose ... but I've found I tend to develop the AppleScript
outside of FileMaker (usually with Smile) until I'm happy enough it's
working, and the error trapping is added for parts (such as
controlling other apps) that may cause problems. In practice, I've
been able to get reliable enough systems for our use, but your
systems may be more hands-off than ours.
--
Tim Mansour <email@hidden>
Mobile 0405 500 846
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden