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 15:36:36 -0600
On 28/08/2003 14:55, John Stewart <email@hidden> wrote:
>
It works just fine when you consider that it returns error number -43
>
which isn't what's being tested
>
for. Ergo the code to set "myerr" never gets executed, try it this way ->
>
>
>
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 <-- simplified
>
set myerr to errNum
>
end try
>
>
return errNum
--> The variable errNum is not defined.
Are you testing this with Script Debugger? Because in SD nothing after
"on error" gets executed.
And thanks to Emmanuel for pointing out my "Read Only" error.
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.