Skip to content

Instantly share code, notes, and snippets.

@Kaisarion
Created July 18, 2022 05:01
Show Gist options
  • Save Kaisarion/904fe1627721690963f9a4cea2d6af49 to your computer and use it in GitHub Desktop.
Save Kaisarion/904fe1627721690963f9a4cea2d6af49 to your computer and use it in GitHub Desktop.
Copy Screenshots that are added to a specific folder with AppleScript and Mac
on run {input, parameters}
set thisFile to item 1 of input
set the clipboard to (read thisFile as TIFF picture)
return thisFile
end run
@Kaisarion
Copy link
Author

Setup:

  1. Open a new Automator document for "Folder Action"

Screen Shot 2022-07-18 at 1 02 13 AM

  1. Set folder on the right panel, search for filter in finder, set kind to image
  2. Drag run applescript prompt into right panel, paste the above script in.

Screen Shot 2022-07-18 at 1 03 23 AM

  1. Hit save, close automator, and watch it do its magic.

DISCLAIMER: This tool takes a while to copy to clipboard because the screenshot tool waits about 3 seconds before sending to the folder. This is not a script problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment