On a Mac, how do i programatically compress each folder in a folder?
Easily automate folder compression on your Mac using AppleScript to save time and declutter your storage efficiently.
Duration: 1:08 | Size: 1.3 MB
As part of cleaning out some old drive storage, I needed to zip a folder of folders. I could, of course, do this by hand, but it was a lot of folders and would be rather tedious. Instead of doing that for 10 minutes, I took 2 hours to figure out an automated solution!
I tried Forklift, Automator, Shortcuts, and Pathfinder. Nothing could do it; at least I couldn’t find a way to do it. After some searching, I found partial solutions in AppleScript. Here’s what I came up that solved my problem.
tell application “Finder" set theFolders to selection repeat with aFolder in theFolders set theItem to aFolder as alias
set itemPath to quoted form of POSIX path of theItem
set fileName to name of theItem
set theFolder to POSIX path of (container of theItem as alias)
set zipFile to quoted form of (fileName & ".zip")
do shell script "(cd " & quoted form of theFolder & " && zip -r " & zipFile & " " & quoted form of fileName & ")"
end repeat
end tell
A key feature of this solution is that it doesn’t create an archive with the full pathname. The zip file contains only the folder name and “down”.
The agent-shaped org chart
Every real org has the same topology: principal, role-holder, specialists. Staff AI maps onto it, node for node, and the cost collapse shows up in the deliverables that were always just human-handoff overhead.
AI as staff, not software
Two frames for what AI is doing to work. The tool frame makes tools smarter. The staff frame makes roles unnecessary. Those aren't the same product, the same company, or the same industry.
Knowledge work was never work
Knowledge work was always coordination between humans who couldn't share state directly. The artifacts were never the work. They were the overhead — and AI just made the overhead optional.
The work of being available now
A book on AI, judgment, and staying human at work.
The practice of work in progress
Practical essays on how work actually gets done.
How do I get my dev team to adopt AI?
A stub on helping mixed-interest development teams find their own useful ways into AI.
Want to learn about agents? Talk to someone who ran an agency.
I spent 20 years running consulting engagements at Fortune 500 companies. Turns out that's the best preparation for running a fleet of AI agents ... because the problems are identical.
Your AI agents need a water cooler
We run a twelve-session AI fleet that coordinates through an IRC breakroom. A friend asked: why are you making AI agents act like humans? The answer turned out to be more interesting than the question.
Article analysis: Maximizing organizational productivity: Analyzing ai’’s transformative potential
Unlock the potential of AI to enhance efficiency, streamline processes, and boost productivity in your organization with actionable insights and real-world...
Article analysis: AI revolution reshapes work and home, accelerates faster than any previous technology
Discover how generative AI is rapidly reshaping work and home life, achieving unprecedented adoption rates and impacting productivity across industries.
Article analysis: Why remote work is declining: Analyzing productivity, management preferences, and tech challenges
Explore the decline of remote work as we analyze productivity issues, management preferences, and tech challenges shaping the future of office environments.