Error numbers (was: Re: Error: -1708)
Rob Lewis
rob at whidbey.com
Fri Mar 18 23:59:51 EDT 2016
These error numbers drive me crazy. There is apparently no comprehensive
dictionary of them available anywhere. At the very least, Apple could
maintain a registry so that the numbers would actually convey useful
information.
When I throw errors in my scripts I just make up numbers but then I forget
to document them so they're worse than useless.
Is there any prospect of addressing this? Or am I missing something?
> ----- Original Message -----
>
> From: "XTension Discussion List" <xtensionlist at machomeautomation.com>
>
> To:"XTension Discussion List" <xtensionlist at machomeautomation.com>
>
> Cc:
>
> Sent:Fri, 18 Mar 2016 17:02:37 -0400
>
> Subject:Re: Error: -1708
>
> a -1708 error means that the event wasn’t handled by whatever you were
> sending the event to. In the case of XTension it’s most likely because
> a handler name had a typo in it, the handler didn’t actually exist in
> the target script or the number of parameters for the handler didn’t
> match up with the actual handler definition.
>
> It’s also possible to get this error if there was something
> horrifically wrong happening inside the handler which caused it to crash
> out before it returned properly and the event went unmarked as handled.
> This really should have logged something else in the log window though.
> It could be a problem in the handler code, or in a verb that you’re
> calling in the handler that caused the XTension internal code to throw an
> error, but again if thats the case there really should be something in
> the log about it.
>
> It’s very hard to properly catch errors in handlers in other scripts
> that a script might call. XTension is better at it now than ever before,
> but there are still situations where the applescript error will be simply
> “event was unhandled” or some such, but the XTension log should
> contain more info.
>
>> On Mar 18, 2016, at 4:56 PM, Brian Williams <brwill at me.com> wrote:
>>
>> I resolved it by creating a new interface with the same parameters (IP
>> address,etc) and disabling the original. I don't know what I had
>> disrupted, but I have moved on. Thanks, Brian
>
> Thanks,
> James
>
> James Sentman http://www.PlanetaryGear.org [1]
> http://MacHomeAutomation.com [2]
Links:
------
[1] http://www.planetarygear.org
[2] http://machomeautomation.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20160318/3967c550/attachment.html>
More information about the XTensionList
mailing list