Write data to pasteboard (pasteboard.write)
Declaration
pasteboard.write(data [, uti ])
Parameters
- data
String. The content to write to the system pasteboard. - uti
String, optional. Uniform Type Identifiers. Default: "public.utf8-plain-text".
Notes
Write content into the system pasteboard.
Example
pasteboard.write("Demo text") -- Write "Demo text" (without quotes) to the pasteboard
--
pasteboard.write(screen.image():png_data(), 'public.png') -- Write a screenshot to the pasteboard
Note: Uses screen.image