• 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: how to get the name of the current handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get the name of the current handler


  • Subject: Re: how to get the name of the current handler
  • From: email@hidden
  • Date: Mon, 7 Nov 2005 13:49:27 -0500

I am trying to avoid hard coding, so that it can be a generic error trap function. It seems like Applescript does not have this. Maybe in 2.0 handler properties can be added, such as it's name and even the handle itself.


On Nov 7, 2005, at 11:54 AM, Michelle Steiner wrote:

On Nov 7, 2005, at 9:17 AM, email@hidden wrote:

I very much appreciate your feedback. I am specifically looking for the Handler name and not other information.
The reason for needing this is for debugging purposes to identify the offending handler.

As Nigel suggested, hard code the handler's name within the handler itself.


on test ()
  try
   -- do stuff
  on error
    return "test"
  end try
end test

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: how to get the name of the current handler
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: how to get the name of the current handler (From: email@hidden)
 >Re: how to get the name of the current handler (From: Michelle Steiner <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: RE: Who has that property?
  • Previous by thread: Re: how to get the name of the current handler
  • Next by thread: Re: how to get the name of the current handler
  • Index(es):
    • Date
    • Thread