lambtron Posted October 1, 2015 Posted October 1, 2015 Hey all, Wrote this tiny Alfred workflow that removes all "Screen Shot 2015-10-01 at 9.23.53 AM" files that end up cluttering your desktop after a while. Just have to type "clean" in your Alfred console. The workflow is here: https://github.com/lambtron/alfred-clean Enjoy! Andy
gb0 Posted October 7, 2015 Posted October 7, 2015 (edited) Great idea! Not working though. Any help? I am on El Captain. Edited October 7, 2015 by gb0
xilopaint Posted September 1, 2017 Posted September 1, 2017 On 10/7/2015 at 7:12 AM, gb0 said: Great idea! Not working though. Any help? I am on El Captain. I don't know if it's your case but the workflow doesn't work if your default macOS language is not English.
aviaryan Posted September 1, 2017 Posted September 1, 2017 6 minutes ago, xilopaint said: I don't know if it's your case but the workflow doesn't work if your default macOS language is not English. Does this mean that "Desktop" is named something else in non-English Macs?
xilopaint Posted September 1, 2017 Posted September 1, 2017 1 minute ago, aviaryan said: Does this mean that "Desktop" is named something else in non-English Macs? In a non-English macOS "screen shot" is translated in accordance with the language.
aviaryan Posted September 1, 2017 Posted September 1, 2017 55 minutes ago, xilopaint said: In a non-English macOS "screen shot" is translated in accordance with the language. Oh, I see. Thanks for sharing this information. xilopaint 1
deanishe Posted September 1, 2017 Posted September 1, 2017 2 hours ago, aviaryan said: Does this mean that "Desktop" is named something else in non-English Macs? IIRC, the Desktop folder is always called "Desktop" at the UNIX level, but has a translated name at the macOS level. For example, I'll see "Schreibtisch" in Finder on a German Mac, but still use "cd ~/Desktop" in a shell. You can get the system language via defaults, but I'd recommend putting a filename prefix or regex in the workflow configuration sheet, so users can change it to whatever suits them (they could then also use the workflow to remove other types of files).
Kurt Sanders Posted March 26, 2018 Posted March 26, 2018 Also noted that one has an option to designate screen shots saved as '.jpg' files, so this is an easy fix in the 'Run Script' to rm ~/Desktop/Screen\ Shot*.jpg
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now