# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
copy {[object [to {card | group | stack} ]] | [chunk of field]}
# Params
- object : Any available object. If no object or chunk is specified, the copy command copies whatever is currently selected. - card : If a card, group, or stack is specified, the object is placed there instead of being placed in the clipboard, and the clipboard is left unchanged. - chunk : Expression to define a range of the field - field : The object from which the text chunk will be derived
# Examples
copy
copy button "next" to group "container"
copy this card to stack "Project 1"
copy word -3 to -1 of field "output"
# Description
Use the copy command to place objects or text on the clipboard, or to make a copy of an object without changing the contents of the clipboard.
If a chunk of a field is specified, the specified text is copied to the clipboard (including text styles).
>*Note:* When copying from a list field, only entire lines can be > copied. If you specify a chunk that's smaller than a line or that > crosses line boundaries, the copy command copies the entire > line or lines containing the chunk.
>*Note:* Copy operations that result in an object being placed on the > clipboard are not supported on mobile devices.
# Tags
ui,
# See
- **property:** clipboardData, selected, ID - **message:** newAudioclip, newButton, copyKey, newPlayer, newBackground, newGraphic, newField, newScrollbar, newEPS, newImage, newVideoclip - **keyword:** card, control, it - **glossary:** object, property, variable, message, line, card, command, list field - **function:** clipboard, copyResource - **command:** select, doMenu, undo, cut, paste, clone, group, place - **object:** stack