Default filename format (US): | “Screen Shot <date> at <time>.png” |
Preferred: | “<date> <time>.png” |
I.e. | 1) Removing starting “Screen Shot “, incl. ending space 2) Removing “at “, including a space |
Ex. | From: “Screen Shot 2011-12-10 at 15.29.55.png” To…..: “2011-12-10 15.29.55.png” |
- Filename cleaning handling
- Screenshot-filename-Cleanup-v2.3.workflow
- Installed in $HOME/Library/Services/
- Thus also available as a Service including via Finder contextual pop-up menu
- Include a shell script
- $HOME/Library/Services/Screenshot-filename-Cleanup-v2.3.workflow/screenshotscleanfilename.sh “$@”
- Installed in $HOME/Library/Services/
- Screenshot-filename-Cleanup-v2.3.workflow
- Folder Action script
- Screenshot Cleanup Folder Action.workflow
- Installed in $HOME/Library/Workflows/Applications/Folder Actions/
- Use must be configured via Finder pop-up menu, tying to specific folder
- Nowadays “Downloads”
- Folder Action Script (2)
- Move Entries to Downloads.workflow
- Installed in $HOME/Library/Workflows/Applications/Folder Actions/
Installation
- Make sure files above are installed in locations as shown above
- For Downloads folder
- In Finder, go to $HOME folder
- Select Downloads folder
- Finder pop-up menu > Services > Folder Actions Setup
- Scroll down list in Script to Attach list, select Screenshot Cleanup Folder Action.workflow
- Make sure script is selected for folder AND checkbox is checked.
- For Desktop folder
- In Finder, go to $HOME folder
- Select Desktop folder
- Finder pop-up menu > Services > Folder Actions Setup
- Scroll down list in Script to Attach list, select Move Entries to Downloads.workflow
- Make sure script is selected for folder AND checkbox is checked.
- Close dialog for attaching scripts.
- That’s it.
What happens, when screenshot is taken.
- Screen Shot file is created on Desktop, per macOS std behavior
- The Move Entries .. Folder Action will move file into Downloads
- Then the Screen Cleanup … Folder Action will trigger workflow and shell script for actually fixing filename.
The extra step of moving files out of Desktop into Downloads is simply for TWO primary reasons:
- Keeping all sorts of ‘downloaded’ files in one single place.
- (The Move folder action actually moves ANY *file* dropped onto Desktop, though EXCLUDING *folder* [dropped, created])
- Keeping Desktop clean. Lots of entries on desktop has – at least historically – had an adverse effect on performance of computer. Keep it Clean!