[Pythonmac-SIG] State of Python on the Mac
Paul Berkowitz
berkowit@silcom.com
Sat, 01 Mar 2003 09:34:42 -0800
On 3/1/03 9:16 AM, "Jack Jansen" <Jack.Jansen@oratrix.com> wrote:
> But for scripting I don't have any ideas yet. Something with Mail or
> Address book
> or iTunes or so springs to mind, but I'm not really sure what. Best
> would be something that
> is difficult or impossible to do in the host program.
Mail's AppleScripting cannot get text selection. Same for other Cocoa apps.
That's a big complaint. (It will probably be fixed in OS 10.3, however.) Can
Python do that? Address Book cannot import contacts from a tab-delimited
text file, only from a silly LDIF file or vCards. With enough work,
AppleScript can parse the tab-text file and convert it to LDIF, but it would
be very slow. Python could do that much faster - or maybe you could do it
within AB somehow with a Cocoa combination.
--
Paul Berkowitz