How do I enable Folder Actions in OS X?

To enable Folder Actions in OS X, you can select the “Enable Folder Actions” menu item from the “Folder Actions” sub-menu in the Script Menu.

You can also enable Folder Actions using the following code:

tell application "System Events" to set folder actions enabled to true