Re: Writing an OSAX using Project Builder?
Re: Writing an OSAX using Project Builder?
- Subject: Re: Writing an OSAX using Project Builder?
- From: Jon Pugh <email@hidden>
- Date: Mon, 14 Apr 2003 20:45:32 -0700
At 5:51 PM -0700 4/14/03, Christopher Nebel wrote:
>
Scripting additions can only define commands, not objects, so if you want an object model, you have to make an application.
This is an interesting piece of dogma we should revisit.
After all, it was never *really* true. The real problem was the OSL, which expected an application context and used globals to register handlers and the like. If you reimplemented the OSL, you could handle objects in scripting additions, aside from the get and set events, although there are techniques available there that haven't been fully explored.
In theory, the OSL has been replaced. Presumably Cocoa has classes which handle object parsing. If these could be used in a scripting addition, then this restriction wouldn't be valid any longer.
Of course, Cocoa probably expects an application context and uses globals...
Jon
_______________________________________________
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.