Screenshot to DevonThink

I just made this two-line script to take screenshots directly to DevonThink. Perhaps someone might find it useful:

do shell script "screencapture -c"
tell application id "com.devon-technologies.thinkpro2" to paste clipboard

Any idea how i can prompt for a name to be given to the screenshot?

You could use the “display dialog” command (see menu Scripts > Rename > … for examples).

If you rarely do full screen captures adding the interactive “-i” option could make it more useful, i.e. screencapture -c -i.

Just a simple extension to ask for the record name; whoever wants to use it …

do shell script "screencapture -c -i"
tell application id "com.devon-technologies.thinkpro2"
	set newRecord to paste clipboard
	display dialog "Enter Image Name" default answer "Image 1"
	set name of newRecord to text returned of result
end tell