Q: Prompt for filename after or before taken a screenshot
Hi there, I like the screenshot function of Mac OS X, I have configured the default path, but I would love to be able to set the filename of every screenshot I take after (or even before) I press Cmd+Shift+4 or whatever. I'm trying to do it with automator but I cannot set the file name and send it as a variable properly.
Could some body help me to do this in automator or apple script?
Thanks in advance,
Alex
MacBook Pro with Retina display
Posted on Oct 16, 2015 3:41 PM
Hello
The following AppleScript script will ask for file name and save screenshot in the file.
set f to (choose file name default location (path to desktop) ¬ default name (do shell script "date +'Screen_%Y%m%d_%H%M%S.png'"))'s POSIX path do shell script "screencapture -i " & f's quoted form
You might save this as an Automator service and assign keyboard shortcut e.g., Command + Shfit + Option + 4.
Regards,
H
Posted on Oct 17, 2015 3:08 AM
