Watching for file changes on macOS

150 · Alex Chan · May 11, 2026, 6:55 a.m.
Summary
This blog post describes a Swift script that utilizes the FSEvents API on macOS to monitor file changes and relay notifications to Python via standard output. It showcases a practical integration of Swift and Python for file monitoring tasks.