_NSAppleScript, ASKScript, or NSAppleScript?
_NSAppleScript, ASKScript, or NSAppleScript?
- Subject: _NSAppleScript, ASKScript, or NSAppleScript?
- From: Glenn Howes <email@hidden>
- Date: Tue, 3 Sep 2002 16:23:11 -0700
I'm curious about which of these objects to use and if which how.
_NSAppleScript
There is a note at the top of the _NSAppleScript.h file which says
"Replacement class for NSAppleScript" so I would think this is the one
to use. However I get the following error on launch.
ld: Undefined symbols:
.objc_class_name__NSAppleScript
ASKScript
This is a subclass of _NSAppleScript, and I can launch, but calling
methods of this gets an exception when sending it it's messages with
exceptions such as
*** -[ASKScript initWithText:]: selector not recognized
NSAppleScript
This one doesn't have the message I want from the other two:
- (NSAppleEventDescriptor *)executeHandlerWithName:(NSString *)name
andArguments:(NSArray *)arguments;
As I want to send the script an object in scripts of the form
on handleCD(aCD) -- where aCD is the representation of a NSObject
subclass
end handleCD
**************
I've linked in what appear to be the appropriate frameworks, and I am
using Jaguar and the development environment which shipped with the
general release of Mac OS 1.2.
AppleScriptKit.framework
Scripting.framework
_______________________________________________
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.