After every screenshot, I want its file path on my clipboard. Screenshots save to /Users/Shared/Screenshots.

1. brew install fswatch
2. Write ~/bin/screenshot-path-to-clipboard.sh. It watches /Users/Shared/Screenshots with fswatch (Created and Renamed events). For each new .png whose name has whitespace (skip dotfiles, .stfolder and .stversions), it waits until the file size stops changing, then renames it with mv -n so the name has no whitespace: every space and U+202F becomes "-", and the "-" before AM/PM is dropped. Then it copies the new full path to the clipboard with printf '%s' | pbcopy. Files that already have no whitespace are ignored, so the rename doesn't loop.
3. Set LANG and LC_ALL to en_US.UTF-8 in the script, or pbcopy mangles U+202F.
4. Run it at login with a LaunchAgent (RunAtLoad, KeepAlive, /opt/homebrew/bin on PATH, LANG in EnvironmentVariables) and load it with launchctl bootstrap.
5. Test it with screencapture -x into the folder, and show me pbpaste.
