Programmatically copy to memory

Is there a way to programmatically copy an item from SC to memory so that ctrl/apple + v will paste that item? I am creating a small helper GUI to convert Logic OSX midirolls to pbind structures. Ideally the values, eg. [0.25, 0.25, 0.25, 1, 1] should be shown in a field and a button next to should copy the values to memory.

you can use pbcopy →

("echo" + [1, 3, 5].asString + "| pbcopy").systemCmd

…then cmd-v

On a Mac you can use apple script from the terminal using the osascript command

1 Like

Great that was exactly what I was looking for!