Hi Everyone, I've been thinking about scripting for a little while. The Apple solution is ported from MacOS Classic, and isn't a sensible model to implement, I think, because it is horrible to use from Objective-C (the only way I've really found of scripting a Cocoa application is to generate a text string containing AppleScript, which is then turned back into Cocoa events on the other side).
Probably the simplest thing to do is define a 'remote scripting object' at a well-known location to be exported via DO. This would export a few primitive methods and expose any functionality desired for remote control. From Smalltalk, I would imagine you'd then run something like this: Script tellApplication:'Melodie' to:[ :theApp | " Loads of Smalltalk code sending messages to theApp, a DO proxy for the scripting object" ] From Objective-C, you would just get the DO proxy and send it messages yourself (you could do this with Smalltalk too, but blocks let us do it in a slightly more clean way). So, the real question is what methods should every app's scripting proxy implement? David _______________________________________________ Etoile-discuss mailing list Etoile-discuss@gna.org https://mail.gna.org/listinfo/etoile-discuss