Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to attach a Folder Action Script to a folder through scripting?

Action FOLDER Script Scripting
0
Posted

Is there a way to attach a Folder Action Script to a folder through scripting?

0

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.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.