Re: Very Irritating Open Handler
Re: Very Irritating Open Handler
- Subject: Re: Very Irritating Open Handler
- From: Axel Luttgens <email@hidden>
- Date: Mon, 04 Apr 2011 22:40:09 +0200
Le 4 avr. 2011 à 17:13, Luther Fuller a écrit :
> [...]
>
> I tried this. (Interrupted by a Sat afternoon power outage.)
> As far as I can determine, it does not trap anything.
> Here is what I tried, with comments ...
>
> [...]
>
> on open location WL
> display dialog "open location" -- this displays correctly for a .webloc
> display dialog WL -- this displays correctly for a .webloc
> display dialog "finished" -- this displays correctly for a .webloc
> error "open loc" -- but no error is returned. Should return -2700 error.
> end open location
>
> The application simply dies within the open location handler without returning.
>
> [...]
Hello Luther,
So, in the case of a .webloc, the open location handler gets invoked as announced; this means that if you don't insert a:
continue open location
statement within that handler, the event would indeed be trapped.
Now, I'm not sure whether issuing an error statement from within the handler is a good idea; what happens without that statement?
Axel _______________________________________________
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