application scripting

Keith Ray k1e2i3t4h5r6a7y at 1m2a3c4.5c6o7m
Sun Nov 25 17:11:31 EST 2001


So... no one has every implemented recordability in a Python-scriptable 
application?




In article 
<k1e2i3t4h5r6a7y-52C738.09510621112001 at news1.rdc1.sfba.home.com>,
 Keith Ray <k1e2i3t4h5r6a7y at 1m2a3c4.5c6o7m> wrote:
> Introduction:
> 
> AppleScript is the only ScriptingArchitecture that I know about that 
> allows recording. An application is recordable when all (or most) 
> user-interface handling results in the generation of one or more 
> AppleEvents, which are directly routed to the application itself for 
> execution. The AppleScript system can record these AppleEvents in a 
> script, which the user can then edit. This can be a very user-friendly 
> way for a user to start scripting, but of the relatively few 
> applications that support AppleScript, even fewer support recordability. 
> 
> Mac Applications that are scriptable, but not recordable, have an 
> architecture something like this: 
> 
> [GUI] -> commands -> [Model] <- commands <- [ScriptEngine]
>                          Scripts or AppleEvents --^
> 
> but recordable applications have an architecture like this: 
> 
> [GUI] -> AppleEvents -> [ScriptEngine] -> commands -> [Model]
>   Scripts or AppleEvents --^
> 
> Questions:
> 
> Can anyone describe how recordability would be implemented in a C++ 
> application with (embedded) Python? 
> 
> Would a Python-embedded application have to generate Python source code, 
> to implement the recordability pattern shown above?



More information about the Python-list mailing list