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: John Stewart <email@hidden>
- Date: Thu, 28 Aug 2003 04:09:18 -0400
>
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?
try
set k to "Disk:Folder:applet"
tell application "Finder"
set y to k as alias
open y using application file id "asDB"
end tell
on error errMsg number errNum
if errNum = -1756 then
-- do your stuff here
else
display dialog errMsg
end if
end try
John
_______________________________________________
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.