Re: Error from opening a read only applet in SD
Re: Error from opening a read only applet in SD
- Subject: Re: Error from opening a read only applet in SD
- From: Mark Alldritt <email@hidden>
- Date: Thu, 28 Aug 2003 15:06:29 -0700
>
I have a situation like this:
>
>
set k to "Disk:Folder:applet"
>
tell application "Finder"
>
set y to k as alias
>
open y using application file id "asDB"
>
end tell
>
>
Now if applet is read only, Script Debugger puts up a dialog with the
>
result code -1756. How can i capture this error to return it to my script?
>
>
it must be a duh question, I know it!
In this instance, Script Debugger does not return the error code with the
result for the Open event. I've filed a bug and will get it resolved in the
future. As things stand, SD will always display the error alert and return
error number 1 for the open event.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9
AIM: markalldritt
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.