paste clipbord contents

Hi all,
I have set the clipboard to some contents using this:
set theString to “a” & tab & “b” & tab & “c”
set the clipboard to theString

This works.

Now I want to paste these contents wherever I am.
I just can´t figure out how this is done.

Any clues?

Greetings, Ronald

Usually the paste command in applications uses the keyboard shortcut command-v, so you can use that with system events. System events can do keystrokes for you. One thing to note though is that the keystrokes are performed on the frontmost application so something like the following would work. For example is you wanted to paste into TextEdit.

-- bring the application to the front
tell application "TextEdit" to activate

-- give the application time to come to the front
-- this delay may or may not be needed
delay 0.5

-- perform the keystroke to paste the clipboard
tell application "System Events"
	keystroke "v" using command down
end tell