Returning an error from Applescript
Returning an error from Applescript
- Subject: Returning an error from Applescript
- From: Brian Webster <email@hidden>
- Date: Thu, 1 Aug 2002 15:08:05 -0500
I'm implementing some methods that will be called by key-value
coding via a standard Applescript command; in this case I'm
working on implementing delete. There are some cases in which
I'd like to return an error code and string from the script
(e.g. there are some objects that can't be deleted), but there
doesn't seem to be any way to get a reference to the
NSScriptCommand that is executing so that I can set its error
number and string. Am I going to have to implement my own
script command just so I can stuff an error string in it, or is
there some way to get a hold of the command that I'm not seeing
in the docs?
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.