• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What Does Error Return ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What Does Error Return ?


  • Subject: Re: What Does Error Return ?
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 13 Mar 2015 17:32:32 +0000
  • Thread-topic: What Does Error Return ?

No.  AppleScript will NOT report a backtrace for an error.

You have to roll-your-own.

I use something like this:

try

MyFirstHandler()

on error errMsg number ErrNbr partial result partialResult from from_ to to_

log errMsg

log ErrNbr

log partialResult

log from_

log to_

end try


on MyFirstHandler()

set handlerName to "MyFirstHandler"

try

set bb to 3 * "ccc"

on error errMsg number ErrNbr partial result partialResult from from_ to to_

log errMsg

log ErrNbr

log partialResult

log from_

log to_

error errMsg from handlerName

end try

end MyFirstHandler

 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: What Does Error Return ?
      • From: Luther Fuller <email@hidden>
References: 
 >What Does Error Return ? (From: Luther Fuller <email@hidden>)
 >Re: What Does Error Return ? (From: Luther Fuller <email@hidden>)
 >Re: What Does Error Return ? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: What Does Error Return ?
  • Next by Date: Re: What Does Error Return ?
  • Previous by thread: Re: What Does Error Return ?
  • Next by thread: Re: What Does Error Return ?
  • Index(es):
    • Date
    • Thread