Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMaker/AppleScript interactions: Get(LastError)




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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >FileMaker/AppleScript interactions: Get(LastError) (From: David Crowe <email@hidden>)
 >Re: FileMaker/AppleScript interactions: Get(LastError) (From: Tim Mansour <email@hidden>)
 >Re: FileMaker/AppleScript interactions: Get(LastError) (From: David Crowe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.