Clear pasteboard (pasteboard.clear)
Declaration
items = pasteboard.clear()
Returns
-
items
Table. Returns the previous pasteboard content. It may contain multiple entries, each withtype
anddata
fields.Structure of the returned items
{
{
type = "public.utf8-plain-text",
data = "data here",
},
{
type = "public.rtf",
data = "data here",
},
{
type = "public.html",
data = "data here",
},
...
}
Notes
Clear the system pasteboard.
Available since version 1.3.8 or later.
Example
pasteboard.clear() -- clear pasteboard