Re: Attaching Folder Action
Re: Attaching Folder Action
- Subject: Re: Attaching Folder Action
- From: Christopher Nebel <email@hidden>
- Date: Sat, 24 Aug 2002 19:57:50 -0700
On Tuesday, July 30, 2002, at 09:45 AM, Michael Sullivan wrote:
I'm looking for a way to attach a folder action script
to a folder using some kind of API (on OS 9), and not
through the 'Attach Folder Action' menu obtained with
the control-click.
I would like my application to be able to
automatically attach a script to a folder when the
user chooses his 'hot folder', and not to make him
attach it manually.
Anyone knows how this can be done?
I'm pretty sure you can't do it. ...
No, you totally can. (M. Sullivan seemed to suggest that folder
actions didn't exist, which is certainly untrue in Mac OS 9, and is now
untrue in Mac OS X as of 10.2.)
The "Folder Actions" application in Mac OS 9 is itself scriptable and
can add and remove folder actions. In fact, all the menu command does
is send an event there. In Mac OS X 10.2 (Jaguar), substitute System
Events for Folder Actions; the rest is the same.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.