MacOS – How to open the Screenshot Folder right after taking the screenshot

automatormacosscreen capture

I've changed the folder to which Screenshots are saved on the MacOS (This explains how it is done – http://www.idownloadblog.com/2014/06/15/how-to-change-where-screenshots-are-saved-on-mac/).

I was wondering if I can create an Automator script / Workflow so that this custom folder, say ~/Screenshots, automatically opens up immediately after the screenshot is taken. (For reference, I want it to behave like the Chrome Fireshot extension).

Best Answer

Save this script as "Reveal_Screenshot.scpt", In Script Editor to your /Users/INSERT YOUR USERNAME/Library/Workflows/Applications/Folder Actions folder.

on adding folder items to theFolder after receiving theNewItems
    --  Called after items have been added to a folder
    --  theFolder is a reference to the modified folder
    --  theNewItems is a list of references to the items added to the folder 
    tell application "Finder"
        activate
        reveal theNewItems
    end tell
end adding folder items to

Now add a folder action to your ~/Screenshots folder in Finder.app by control + click on ~/Screenshots folder

enter image description here

Because you saved that script in the previous step, it will now be available to choose as a folder action to attach to your folder

enter image description here

Now every time a screen shot gets added to your ~/Screenshots folder , it will bring Finder.app to the front and reveal the new file in your folder