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