
I often stumble upon hilarious memes and nicely condensed content in Social Media. Especially the memes I love to include in presentations to make them more entertaining. But also key figures from study papers or research reports I keep for having a deeper look later.
The problem is though: These files pile up as “Screenshot XXXX-XX-XX at XX.XX.XX.png”-files and my motivation is very low to look through each of those and sort them weeks later. So I vibe-coded a nifty little helper script in Python that I can trigger via a folder action in Automator that uses the OpenAI API to “look at” each image file and give it a proper file name based on its content. This speeds up my “sort and process” work later on. Amazing! This is how it works until Apple finally brings this natively to MacOS with Apple Intelligence (MacOS only):
The Image-Auto-Rename-Folder-Action
You should have Python and xattr installed (You can do so easily via HomeBrew to isolate it from the system’s installation). Then add your OpenAI API key securely to your MacOS keychain and create a Python script in your home folder, e.g. “rename_image_with_gpt.py” using the code below.

Then adapt and test the script above (just ask ChatGPT to tailor it to your environment) and create a drop folder to which you attach below folder action that uses the script.

Et voilà: As soon as you drop images into the folder, the script is activated and (re)names your files automagically as shown in the video above.
Coming Next: The Travel Expense VAT Collector
When I find some minutes I will share another useful CustomGPT …