Screenshots on macOS are great and one of those features I use daily in my workflows. One issue I run into from
time to time can be the sheer clutter that can be generated during intense coding sessions, so the other day I
spent some time writing a simple helper to help classify and organize screenshots using AI. The plan:
1. Watch desktop for new files matching `"Screenshot(.).png"`
2. Prompt Claude to generate a descriptive name for the file
3. Re-name the file locally and handle edge cases
This document goes over two different approaches to solving this problem using native solutions on MacOS:
- *Option A*: Bash script w/ Automator
- *Option B*: Swift program w/ launchd
I would recommend using Option B as I found it more reliable and easier to setup as a developer, but both are listed
below.
asleepace•1h ago
1. Watch desktop for new files matching `"Screenshot(.).png"` 2. Prompt Claude to generate a descriptive name for the file 3. Re-name the file locally and handle edge cases
This document goes over two different approaches to solving this problem using native solutions on MacOS:
- *Option A*: Bash script w/ Automator - *Option B*: Swift program w/ launchd
I would recommend using Option B as I found it more reliable and easier to setup as a developer, but both are listed below.
> *Source Code*: https://github.com/asleepace/ai-rename-screenshot