Skip to main content
100%

Autolabel screenshots

✓ Published0🌍 Public
KKevinGutowski
Last edited Dec 5, 2025
Created on Dec 5, 2025

This example shows a macOS service that automatically annotates screenshots with the URL of the frontmost browser window. When the user captures a screenshot, the AppleScript checks whether Google Chrome or Safari is active, retrieves the current tab’s or front document’s URL, and then sets that URL as the Finder comment on each selected image file. It uses the System Events, Finder, and browser-specific AppleScript dictionaries, leveraging the `POSIX file` and `alias` conversions to apply the metadata. The script only processes files when a browser is frontmost and skips empty URLs.

AI-generated description

Similar vizzes