Folder Actions on Mac OSX Leopard?

Sean DiZazzo half.italian at
Thu Sep 25 01:30:42 CEST 2008

On Sep 24, 12:31 pm, "squishywaf... at"
<squishywaf... at> wrote:
> Greetings,
> I've been trying to figure out if it's possible to attach a Python
> script to an action via Mac OSX Leopard's File Actions system. I'm
> wanting to call a Python script every time a file is added to the
> monitored folder. Just adding a .py file doesn't seem to do anything
> at all, and I can't find any log output anywhere to see what's going
> on.
> I'm more just looking to see if this is or is not possible. I'm not
> interested in other solutions, as I already have them lined up in case
> this is a no-go, but I'd really love to be able to do it this way if
> anyone has any experience. Googling around revealed pretty much
> nothing.
> Any help is much appreciated,
> Greg

I always wondered about Folder Actions...  I just tested.  You can
have applescript call python scripts via `do shell script`.  But it
seemed a bit flakey.

I would either go with applescript all the way, or look in to your
other options.


More information about the Python-list mailing list