• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error from opening a read only applet in SD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Error from opening a read only applet in SD
      • From: John Stewart <email@hidden>
  • Prev by Date: Re: as is what?
  • Next by Date: Works in Debugger mode... not anywhere else. Weird.
  • Previous by thread: Re: Error from opening a read only applet in SD
  • Next by thread: Re: Error from opening a read only applet in SD
  • Index(es):
    • Date
    • Thread