paste clipboard into

how do I assign the clipboard contents to a textarea

[code]
//get the text from the selection of a popup
dim sub_selection as string
sub_selection = PopupMenu_GeneralSub.Text

//assign the text the the Clipboard
Dim c As New Clipboard
c.Text = PopupMenu_GeneralSub.Text
c.Close

//run an applescript
dim mshell as new shell
mshell.Execute Rubyv2

//paste the clipboard with new text from applescript to textarea1
Dim c2 as New Clipboard
c2.text = the Clipboard //here I get the bug icon
TextArea1.Text = c2.Text[/code]

Change the last part of your code to:

//paste the clipboard with new text from applescript to textarea1 Dim c2 as New Clipboard TextArea1.Text = c2.Text

This works without the applescript step, I don’t know if applescript works different and could make this fail.