[Pythonmac-SIG] Python vs. AppleEvents

Malte Forkel forkel@arsnova.de
Wed, 18 Aug 1999 12:02:06 +0200


--------------2A3744D7FD3217474EBF9F28
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

I'd like to use Python and the AppleEvent interface to access the
information stored in a
Now Contact address file. Now Contact is a scriptable contact manager.
Unfortenately,
I do not have any AppleScript / AppleEvent specific experience (yet :-).

I followed the example in Mac:Demo:applescript.html and used
gensuitemodule to create an Now Contact specific module. I managed to do
simple data access calls (e.g. get some
entry's name) but I haven't figured out how to do more interesting
things, e.g. count the
entries and loop over them. How about the existings suites like
Standard_Suite and
AppleScript_Suite?

Should I use those tools in Mac:Contrib, i.e. PythonScript and osam? I
assume there is a
convenience vs. performance tradeoff?

Any suggestions and / or sample code would be highly appreciated.

Malte

-----------------------------------------------------------------
Malte Forkel                            mailto:forkel@arsnova.de
Alt-Moabit 60                           Phone (x49-30) 399241-0
D-10555 Berlin                          Fax   (x49-30) 399241-22
-----------------------------------------------------------------


--------------2A3744D7FD3217474EBF9F28
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Hello,

<P>I'd like to use Python and the AppleEvent interface to access the information
stored in a
<BR>Now Contact address file. Now Contact is a scriptable contact manager.
Unfortenately,
<BR>I do not have any AppleScript / AppleEvent specific experience (yet
:-).

<P>I followed the example in Mac:Demo:applescript.html and used gensuitemodule
to create an Now Contact specific module. I managed to do simple data access
calls (e.g. get some
<BR>entry's name) but I haven't figured out how to do more interesting
things, e.g. count the
<BR>entries and loop over them. How about the existings suites like Standard_Suite
and
<BR>AppleScript_Suite?

<P>Should I use those tools in Mac:Contrib, i.e. PythonScript and osam?
I assume there is a
<BR>convenience vs. performance tradeoff?

<P>Any suggestions and / or sample code would be highly appreciated.

<P>Malte

<P><TT>-----------------------------------------------------------------</TT>
<BR><TT>Malte Forkel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A HREF="mailto:forkel@arsnova.de">mailto:forkel@arsnova.de</A></TT>
<BR><TT>Alt-Moabit 60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Phone (x49-30) 399241-0</TT>
<BR><TT>D-10555 Berlin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Fax&nbsp;&nbsp; (x49-30) 399241-22</TT>
<BR><TT>-----------------------------------------------------------------</TT>
<BR>&nbsp;</HTML>

--------------2A3744D7FD3217474EBF9F28--