Folder action question

Hi,

Scenario: I have a folder (aFolder), with subfolders, that all contain only image files.

I have a very simple folder action script that opens all images in a folder with the default viewer when I enter the folder. Is it possible to write a script that applies the same script to all subfolders of aFolder and will apply it to all subsequent subfolders createed in aFolder at a later date?

Current script:
on opening folder this_folder
tell application “Finder”
open every file of this_folder
end tell
end opening folder

Thanks in advance…

Hi Kjitta, and welcome to the MacScripter.net BBS. :slight_smile:

This appears to do what you want.

on opening folder this_folder
	tell application "Finder"
		open files of entire contents of this_folder
	end tell
end opening folder

– Rob

Thank you for the greeting.

Yes, this script opens the pictures contained in a folder when entering it, but that is not the issue, so I will refraze the original question.
I have a parent folder with many directories in it that only contains image files. How does one make the above script applicable to all folders currently in the parent folder, and to all folders that are created/placed in the parent at a later date?

As far as I can tell, the script should do what you have described.

– Rob