• 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: Time to figure out what is going on...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time to figure out what is going on...


  • Subject: Re: Time to figure out what is going on...
  • From: Glenn Sugden <email@hidden>
  • Date: Sun, 21 Aug 2005 23:27:20 -0700


On Aug 21, 2005, at 7:53 AM, Matt Neuburg wrote:

*All* scripts that throw *any* error in Apple's Script Menu fail silently
("no error message, no beep, no nothing").


So wrap your script in a try block. In the error block of the try block,
catch the error with all its parameters and show the info as a display
dialog or alert. Now you can see why you're failing at runtime.

A great suggestion - not sure why it didn't occur to me. ;-)

So now I get the helpful "NSReceiverEvaluationScriptError: 4" error message (string).

    Time to do some "I made it here"s... uhg.

Thanks,

::Glenn

_______________________________________________
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: Time to figure out what is going on...
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: Time to figure out what is going on... (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Finder f*ck-ups
  • Next by Date: Re: Finder Scripting
  • Previous by thread: Re: Time to figure out what is going on...
  • Next by thread: Re: Time to figure out what is going on...
  • Index(es):
    • Date
    • Thread