Folder Actions are one of many obscure treasure in macOS . you’re able to set an action to occur whenever the content of a folder are changed . This can be a simple action drawn from a lean that Apple provide with macOS , an AppleScript , or a workflow produce in Automator . Automator let you extend these actions into Terminal scale playscript and other languages .

you’re able to use Folder Actions for a lot of disparate role :

Control - get through any booklet in the Finder and chooseServices > Folder Actions Setupin Monterey . In former adaptation of macOS , the option appears in the main lists of contextual point . To avoid the malicious and inadvertent installation of Folder Actions , macOS requires a ratification footmark that ca n’t be automated : clickRun Servicein the Confirm Service dialog . This adds the current folder to the Folders with Actions list without contribute actions .

Article image

The Folder Actions Setup windowpane appears with a duologue already open that reads pick out a handwriting to Attach . This inclination include one that Apple seeded , locating them inside the / Library / Scripts / Folder Actions Scriptsfolder . Any handwriting instal by apps or that you ’ve create and placed inside your household directory’s~/Library / Scripts / Folder Actions Scriptsfolder appear as well .

Folder Actions Setup show all pamphlet macOS is watching . take any folder to see which scripts are attached . you could use checkboxes to toggle switch handwriting on or off and folder watching for each folder on or off .

you’re able to create Folder Actions in a number of ways :

Article image

AppleScript is comparatively light to write and can be accommodate from wide-eyed recipes . Appleoffers some in its developer documentationof the feature . I also recommendreading Jessica Thornsby ’s clause .

you’re able to use AppleScript as a simple bit of connective tissue , too . For instance , I have a workflow in Flying Meat’sRetrobatch Proimage - processing software that set a border around an image . A uncomplicated AppleScript turns a folder into a springiness - loaded passthrough for the Retrobatch Pro surgical process .

If you need more advanced look on - brochure behavior , change by reversal toHazel from Noodlesoft , a supercharged third - political party reading of Folder Actions .

Article image

Ask Mac 911

We ’ve roll up a list of the questions we get enquire most frequently , along with answer and links to columns :   read our super FAQ   to see if your motion is comprehend . If not , we ’re always looking for new problems to solve ! Email yours tomac911@macworld.com , including screen captures as appropriate and whether you want your full name used . Not every question will be answer , we do n’t reply to e-mail , and we can not provide direct troubleshooting advice .