pasteboard¶
Exposes pasteboard functionnalities to copy and paste strings, images, colors and URLs.
To minimize unnecessary notifications when accessing pasteboard data from other applications,
first call hasStrings
, hasImages
, hasColors
or hasURLs
to check if the desired
data type is available before retrieving it. This prevents a notification when the requested
type is not present, but a notification may still appear if data is accessed.
- name: string¶
The name of the pasteboard.
- numberOfItems: number¶
The number of items in the pasteboard.
- hasStrings: boolean¶
Whether the pasteboard contains one or more strings.
- string: string¶
The first string in the pasteboard.
- strings: table¶
A table of strings in the pasteboard.
- hasImages: boolean¶
Whether the pasteboard contains one or more images.
- image: image¶
The first image in the pasteboard.
- images: table¶
A table of images in the pasteboard.
- hasColors: boolean¶
Whether the pasteboard contains one or more colors.
- color: color¶
The first color in the pasteboard.
- colors: table¶
A table of colors in the pasteboard.
- hasURLs: boolean¶
Whether the pasteboard contains one or more URLs.
- URL: string¶
The first URL in the pasteboard.
- URLs: table¶
A table of URLs in the pasteboard.