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 7:53 am, David Crowe wrote:

Is there any reasonable way to capture an AppleScript error via a FileMaker script?

I'd trap the error in the AppleScript and pass the result back to FileMaker via a global field. For example:


try
  -- AppleScript that may produce an error
on error msg number num
  set cell "Result" of table "Sys" to "ERROR " & num & ": " & msg
end try

(this uses FM7 terminology and assumes "Result" is a global field).



--
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>)



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.