I really like this idea.. perhaps we could leverage python here?

We could define a scripting context by just supplying a dict of globals that the user can use.

For example, for posting CPIA events we would just define a global function "PostEvent" so that a script could look like

PostEvent("SidebarSelect")
PostEvent("OpenCalendar")

or whatever.. but the idea would be that this particular "global" function transparently passes its parameters to the CPIA event system. The "user" wouldn't really have to know Python unless they wanted more complex program flow

this would allow people to start using python itself to handle control flow, etc... as in:

for 0 in xrange(5):
    PostEvent("CreateCalendarEvent")

The advantage of this being:
- we wouldn't have to define any kind of script syntax, besides the "global" functions
- handling parameters would be easy
- error handling would be pretty easy - or at least python would let us know when things broke

Alec

Donn Denman wrote:
I wrote a proposal to build a very simple scripting system for Chandler in the 0.6 timeframe.  In the near term, our testing needs are driving this effort, so this isn't a user feature for 0.6.

http://wiki.osafoundation.org/bin/view/Chandler/CpiaScript

Comments will be appreciated.

- Donn Denman

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to