[Pythonmac-SIG] just one apple event

Dante dante@oz.net
Sun, 12 Dec 1999 12:19:44 -0800


At 11:41 AM +0000 12/12/99, Bill Bedford wrote:
>At 4:57 pm -0800 11/12/99, Dante wrote:
>
>>I've been working with aetools and gensuitemodule.py trying to get 
>>Python to work smoothly with a scriptable app. It hasn't been going 
>>very well. What I truly desire is to be able to write a function to 
>>send an application ONE appleevent. I have gleaned the information 
>>I need from MacOS with CaptureAE and a one line applescript.
>>
>>So where in this mess of tools do I go to be able to do this?
>
>Each method, in the modules generated by gensuitemodule.py, 
>represents your single apple event. They even have the same name.

I don't think I stated my problem clearly. Once I build modules with 
gensuitemodule.py I am able to make the call as I (more or less) 
normally would. But I am left with several k of python code that I 
don't necessarily need or want. Somewhere in the files created by 
gensuitemodule.py Python sends the appleevent "misc, dosc, 
"----":"workspace.foo", &tran:63464" to "LAND". That event is 
identical to the one sent by the applescript one liner I can write to 
do this job except for the &tran which is replaced with &subj:'null'()

For instance, in UserTalk (which bears a striking resemblance to 
Python) there is the following call: appleevent("LAND", "misc", 
"dosc", "----", "workspace.foo") which is pretty self explanatory.

What I want is the python version of this one liner and I can't seem 
to figure out where I go for this.

Dante

_________________________________________________________
Dante - dante@oz.net - #FightThePower on Openprojects