clipboard.get

Syntax clipboard.get (type, addr)

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

addr is the address of the object into which the contents of the Clipboard are to be placed.

Action Retrieves the data of the specified type from the Clipboard and assigns it to the object at addr, as a binary value whose binaryType is type.

Returns True if the operation succeeds, false if the Clipboard is empty or the data in the Clipboard does not match type.

Examples Open examples.testText and select the entire sentence in that document. Now type and execute:
clipboard.get ('TEXT', @examples.testString)


   » true

Notice that the value of examples.testString is set to "0x546869732069..." (the value is too long to show in the normal Frontier Object Database Table window). Its kind is shown as "binary [TEXT]."

Notes clipboard.get does not make any attempt to recognize the datatype of the information in the Clipboard. It works with the standard Clipboard datatypes and always brings Clipboard data into Frontier in a binary form.

See Also clipboard.getValue

Discuss