On Mar 15, 7:31 pm, Mark Carter <[EMAIL PROTECTED]> wrote:
> has wrote:
> > On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote:
> >> The sorts of things I want to do are:
> >> * copy the directory of Finder to the clipboard
> >> * add a new file to Finder's directory.
> >> * find out the size of a directory
> >> * open a file with Aquamacs, regardless of file type,
>
> > If you want to control desktop applications directly, that generally
> > means using Apple event IPC. The most popular language for application
> > scripting is traditionally AppleScript, but Apple event bridges exist
> > for other languages as well. The best of these is appscript; see my
> > sig for links. Some Finder scripting examples:
>
> > #!/usr/bin/python
>
> ...
> > Control AppleScriptable applications from Python, Ruby and ObjC:
> >http://appscript.sourceforge.net
>
> Aah! Many thanks. I see that I had to do
> easy_install appscript
> and ensure I use /usr/bin/python
> I'm off to play with it now. Exciting stuff.
>
> I installed the Python from MacPorts. That's not quite what I wanted,
> because they only have a version for Python 2.4. *Sigh*. MacPorts seems
> to be getting new ports all the time. The problem is, there also seems
> to be an aweful lot of ports gathering bitrot.

Is there a particular reason you want python from MacPorts? OSX
Leopard comes with python 2.5, that's what I use on my mac.

--
Arnaud

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to