clipboard.put

Syntax clipboard.put (type, addr)

Params type is a string4 denoting a valid Macintosh resource datatype.

addr is the address of the object from which the new contents of the Clipboard are to be created.

Action Creates an item of type type containing the data of the value of addr, and puts it on the Macintosh Clipboard, replacing the previous contents of the Clipboard.

Returns True

Examples s="Some text from the QuickScript window.";
clipboard.put ('TEXT', @s); « Places string "s" into the Clipboard.
clipboard.getValue ('TEXT')

   » Some text from the QuickScript window.

pict.pictureToPICT (@examples.picture, @x);
clipboard.put ('PICT', @x) «places PICT x into the Clipboard.

   » true

See Also clipboard.get

clipboard.putValue

Discuss