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: ehsan saffari <email@hidden>
- Date: Thu, 28 Aug 2003 08:30:25 -0600
On 28/08/2003 02:09, John Stewart, email@hidden wrote:
>
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
Thank you, but unfortunetly, that doesn't work. Try this and it should
clarify:
global myerr
set myerr to ""
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
set myerr to errNum
else
display dialog errMsg
end if
end try
myerr remains as ""
so I think either Script Debugger is not sending the error back to
Finder, or Finder doesn't know what to do with it....or there is a
special incantation that I have yet to stumble upon.
cheers
ehsan
_______________________________________________
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.