Automate routine and time consuming tasks with the powerful programming language built into every Mac. These are a few useful routines. Copy and paste the code into AppleScript Editor, edit it if necessary, save it to the appropriate location, and attach it to your folder.*
* In the AppleScript Editor, use usual text editing commands to change the property values you want changed and save the file to the path: “[Hard Disk]:Library:Scripts:Folder Action Scripts:”. Control-click the folder on which you wish to attach the folder action and choose Folder Action Setup from the contextual menu. Select your saved folder action script and check the Enable Folder Actions check box. Close the Folder Action Setup window and test your setup by adding a file to the folder on which you have attached the action.