Copy text from submit to clipboard

I new at this so don’t laugh:D
I’m trying to do a very simple thing in the beginning of an Automator workflow. The user enters some info, submits it and I want it copied to the clipboard. This is how far I got!

on run {input, parameters}
	
	display dialog "Enter info:" default answer "" buttons {"Cancel", "Submit"} default button 1
	copy result to clipboard
	return input
end run

Hi :slight_smile:
Try this:


on run {input, parameters}
	display dialog "Enter info:" default answer "" buttons {"Cancel", "Submit"} default button 1
	set the clipboard to (text returned of the result) as string
	return input
end run

:wink:

That made my day and thanks a bunch! :smiley: