Skip to content

Instantly share code, notes, and snippets.

@jayhardee9
Created November 1, 2016 13:33
Show Gist options
  • Save jayhardee9/bdc95af357714c046a87d5b03d72cf3a to your computer and use it in GitHub Desktop.
Save jayhardee9/bdc95af357714c046a87d5b03d72cf3a to your computer and use it in GitHub Desktop.
Prompt for filename before saving screenshot (Macos Automator)
on run {input, parameters}
tell application "SystemUIServer"
set f to (choose file name default name (do shell script "date +'Screen_%Y%m%d_%H%M%S.png'"))'s POSIX path
do shell script "screencapture -ix " & f's quoted form
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment