On 2008-03-28 00:17:41 -0700, Sander Tekelenburg <user@[EMAIL PROTECTED]
>
said:
> In article <2008032714554516807-phantom@[EMAIL PROTECTED]
>,
> Phantom <phantom@[EMAIL PROTECTED]
> wrote:
>
>> I've been playing around with Folder Actions (very cool!), wondering if
>> it's possible to get a Folder Action to trigger when a *child folder*
>> is changed. i.e. attach the action to ParentFolder, then trigger when a
>> file is added to ChildFolder or GrandChildFolder, etc.
>>
>> The script we have needs to monitor all interior folders, since they
>> are the ones that get populated, rather than the parent, and those
>> folders get created on the fly by an independent application.
>
> If this must be achieved through FolderActions, you'll need to assign
> the FolderAction to each individual 'child' folder (which can of course
> be automated[1]).
>
> But it's not possible to give good advice when you simply state which
> tool you have chosen -- not of the goal you aim to achieve: Message-ID:
> <2008032715313675249-phantom@[EMAIL PROTECTED]
>.
>
>
> [1] You could make it part of the child folder creation process, or you
> could assign a FolderAction to the parent folder that assigns
> FolderActions to child folders when they are created (those
> FolderActions will in turn will have to do the same, if you anticipate
> grandchildren.)
wow, what an awesome idea! a recursive action! I'll play with that
later, thanks for keeping me on track.
cheers
P.


|