Automating with Shortcuts and macOS Folder Actions »

Jason Snell shared a classic automation post covering how to use long-living Mac feature combined with the latest Shortcuts features.
Automating with Shortcuts and macOS Folder Actions »

From Jason Snell at Six Colors:

Folder Actions is pretty clever—you can run scripts when items are added or removed from a folder, when the folder is opened or closed, or when the window of that folder is moved in Finder.

Unfortunately, this is a feature that is wired directly into AppleScript. So in order to use a version of my existing shortcut with Folder Actions, I needed to write a three-line AppleScript script:

on adding folder items to this_folder after receiving added_items
    tell application "Shortcuts Events" to run the shortcut named "Apple Result Transcriptor" with input added_items
end adding folder items to

Pretty dumb — for those keeping score we’ve now gone from Audio Hijack to AppleScript to Shortcuts in order to get what we want. (I could’ve rewritten my Shortcut in AppleScript, but… I don’t want to do that!) And yet also pretty brilliant, because I’m using a 21-year-old OS feature to run a Shortcut, an automation system that didn’t appear on the Mac until 2021.

Neat feature – and I agree with Jason’s conclusions at the end about Automations on the Mac.

Read the full story on Six Colors.

Posts You Might Like

13 Easy YouTube Shortcuts for Creators and Viewers »
13 Easy YouTube Shortcuts for Creators and Viewers »
From Stephen Robles on YouTube: Stephen’s set of YouTube shortcuts are great, taking advantage of YouTube’s web URL to redirect across the app. Plus, the RSS feed ones go even further for creators.
15 iPhone Shortcuts YOU Requested: Auto-Texting, Alarms, Music, and More! »
15 iPhone Shortcuts YOU Requested: Auto-Texting, Alarms, Music, and More! »
Stephen Robles continues his Shortcuts series on YouTube by building shortcuts off listener requests – a great watch as always.
Ulysses adds Find Sheet, Find Group actions for Shortcuts; Substack support »
Ulysses adds Find Sheet, Find Group actions for Shortcuts; Substack support »
Ulysses has expanded their App Intents support in version 39 with Find, Import File, and Search actions – plus support for Spotlight on Mac.
Siri to gain deep Shortcuts integration in iOS 18, Apple spending millions per day on conversational AI »
Siri to gain deep Shortcuts integration in iOS 18, Apple spending millions per day on conversational AI »
According to a report from The Information, Apple is investing heavily in some combination of language models and Shortcuts to augmenet Siri's capabilities – read the summary from 9to5Mac.