NEWB- easy question

Is there a way/how do you set a variable to the clipboard

set a_variable to the clipboard

– doesn’t work


set the clipboard to "This is a string that could easily be replaced by a variable"

or


set a_variable to "Just like this"
set the clipboard to a_variable

Puts strings into the clipboard.


set clipboardContents to the clipboard
display dialog clipboardContents

Calls them out as variables

SC

i feel stupid now, i understand completely what you are saying. As it turns out, in the original code, I just said “set a_variable to clipboard” not “set a_variable to the clipboard”