[Tutor] screen scraping web-based email

Alan Gauld alan.gauld at btinternet.com
Thu Apr 19 08:42:34 CEST 2007


"R. Alan Monroe" <amonroe at columbus.rr.com> wrote

> You can drive the fat client via COM if you install the Win32
> extensions for python.
>
>> (I know I could do it with a torturous combination of applescript 
>> and
>
> Except judging by this, you're on a MAC... so maybe not. Still,
> working WITH the app (using its APIs) is bound to better than 
> working
> AGAINST it (screen scraping).

Good point Alan. The OP can use Python to drive applescript
in a similar way to Windows users driving COM. The MacPython
package includes functions to interface to applescript.

There are examples of doing this in the book MacOS Hacks
by O'Reilly (albeit from Perl, but the Python interface is, I believe,
very similar)

So that might be an alternative route.


Alan G





More information about the Tutor mailing list