Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Folder Actions and child folders

 
   Mac (Home) -> Apple Scripts RSS
Next:  Microsoft Excel 2008 and Applescript  
Author Message
Phantom

External


Since: Apr 12, 2007
Posts: 6



(Msg. 1) Posted: Thu Mar 27, 2008 9:55 pm
Post subject: Folder Actions and child folders
Archived from groups: alt>comp>lang>applescript (more info?)

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.

This might not be possible, but I thought I'd check with the experts.

thanks much.
P.
Back to top
Login to vote
Dave Balderstone

External


Since: May 31, 2006
Posts: 850



(Msg. 2) Posted: Thu Mar 27, 2008 9:55 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
Back to top
Login to vote
Phantom

External


Since: Apr 12, 2007
Posts: 6



(Msg. 3) Posted: Thu Mar 27, 2008 10:31 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-03-27 15:15:32 -0700, Dave Balderstone
<dave.TakeThisOut@N_O_T_T_H_I_Sbalderstone.ca> said:

> In article <2008032714554516807-phantom@examplecom>, Phantom
> <phantom.TakeThisOut@example.com> 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.
>
> I'd use a stay-open AS app, not folder actions.

good thought, but in this case, it needs to be a folder action.

I like your thinking, though.
Back to top
Login to vote
Dave Balderstone

External


Since: May 31, 2006
Posts: 850



(Msg. 4) Posted: Thu Mar 27, 2008 10:31 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
Back to top
Login to vote
Sander Tekelenburg

External


Since: Aug 24, 2005
Posts: 120



(Msg. 5) Posted: Fri Mar 28, 2008 8:17 am
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <2008032714554516807-phantom@examplecom>,
Phantom <phantom RemoveThis @example.com> 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@examplecom>.


[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.)

--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>

Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"
Back to top
Login to vote
Phantom

External


Since: Apr 12, 2007
Posts: 6



(Msg. 6) Posted: Mon Mar 31, 2008 4:46 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-03-27 15:45:50 -0700, Dave Balderstone
<dave DeleteThis @N_O_T_T_H_I_Sbalderstone.ca> said:

> In article <2008032715313675249-phantom@examplecom>, Phantom
> <phantom DeleteThis @example.com> wrote:
>
>> On 2008-03-27 15:15:32 -0700, Dave Balderstone
>> <dave DeleteThis @N_O_T_T_H_I_Sbalderstone.ca> said:
>>
>>> In article <2008032714554516807-phantom@examplecom>, Phantom
>>> <phantom DeleteThis @example.com> 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.
>>>
>>> I'd use a stay-open AS app, not folder actions.
>>
>> good thought, but in this case, it needs to be a folder action.
>
> I think you misunderstand how FAs work, but good luck in your quest.

not at all... I just need the action to fire when *anything* *within*
the folder gets added. the action works great, it just isn't working
for child folders.
Back to top
Login to vote
Dave Balderstone

External


Since: May 31, 2006
Posts: 850



(Msg. 7) Posted: Mon Mar 31, 2008 4:46 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
Back to top
Login to vote
Phantom

External


Since: Apr 12, 2007
Posts: 6



(Msg. 8) Posted: Mon Mar 31, 2008 4:47 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-03-28 00:17:41 -0700, Sander Tekelenburg <user DeleteThis @domain.invalid> said:

> In article <2008032714554516807-phantom@examplecom>,
> Phantom <phantom DeleteThis @example.com> 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@examplecom>.
>
>
> [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.
Back to top
Login to vote
J. Stewart

External


Since: Oct 05, 2006
Posts: 19



(Msg. 9) Posted: Mon Mar 31, 2008 5:36 pm
Post subject: Re: Folder Actions and child folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-03-31 12:46:16 -0400, Phantom <phantom.DeleteThis@example.com> said:

>> I think you misunderstand how FAs work, but good luck in your quest.
>
> not at all... I just need the action to fire when *anything* *within*
> the folder gets added. the action works great, it just isn't working
> for child folders.

Like Dave said, you don't understand how they work...

They only trigger for the folder to which they are attached, not for
subfolders. Fortunately an individual script can be attached to more
than one folder. The solution is to have a mechanism in your FA script
to auto-attach it to child folders when they appear in the folder
hierarchy.

--
Use ROT 13 on email address for replies to sender
Back to top
Login to vote
Display posts from previous:   
Related Topics:
folder actions - need to move files back to where they cam.. - When a file is dropped in a folder with a folder action attached the file is moved to the folder as usual. (Except in cases where the file must be copied due to permissions.) Is it possible for my script to move the files back to their "home" o...

OS/X Tiger loses files/folders? - I have an AppleScript that I developed on OS/X Panther (10.3.9). It traverses a folder structure and renames any folders or files that have troublesome characters in their names, or whose names are too long. (These folders and files have to be moved via....

Adding New Folder - Below is script that I need to create a new folder in the same folder as the location of the script. It runs and compiles but the folder is never created. I have checked other areas and no folder is created at all even though I don't get an error from....

Desktop folder - Hi, How to obtain the name of the current user ? (to access to his desktop folder) ? Thanks in advance MS

add Finder items of folder to Toast - Hi, the following errors because Finder classes can't be converted for Toast: tell application "Finder" set sourceItems to a reference to (items of folder sourceFolderPath) end tell application "Toast 6 Titanium" add to current...
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact