Hardware Reference
In-Depth Information
4. Make sure Enable Folder Actions is checked at the top of the Folder Actions
Setup window. Your window should look something like Figure 39 .
Figure 39: You're looking for approximately this end result
(folder and script names may differ) after configuring Folder
Actions.
5. Quit Folder Actions Setup.
Now, to use your folder action, drop a new file in the folder (or take whatever other action(s)
the script supports, such as changing or removing files). The script should run automatically.
Tip: An alternative way to get much the same effect as a folder action is to set up a
rule in Hazel (see Organize Files with Hazel ) .
Here are a few further examples of things you could do with an AppleScript folder action:
• Get an alert when someone puts a new file in a shared folder. (I do this to learn
when I have a new monthly royalty statement, which my publisher puts in a
shared Dropbox folder.)
• Rename all the files to follow a particular format or convention.
• Upload the files to a Web server.
• Move files to other folders on your Mac depending on file type, name, or other
characteristics.
Learn More about AppleScript
I've barely scratched the surface of what you can do with AppleScript. If you want to learn
more, allow me to recommend a few useful references:
• Apple's official Introduction to AppleScript Language Guide
• The AppleScript portion of the excellent Mac OS X Automation site
Search WWH ::




Custom Search