Is there a way to attach a Folder Action Script to a folder through scripting?
Yes. But you can’t tell the Finder to do so. You have to “tell” the Folder Actions extension in your Extensions Folder (inside your System Folder) directly: tell application “Folder Actions Extension” attach action to “Macintosh HD:Desktop Folder:My Folder:” using “Macintosh HD:My Scripts:My Folder Action” end tell Be aware that the name of the extension might vary depending on the language of your Mac OS. You will have to adjust the first line of the tell block accordingly.