Unprocessed selection contents indexed by UTI.
Data of various kinds, that PopClip detected in the selected text.
Email addresses.
Other protocols or app urls e.g. ftp:
, omnifocus:
, craftdocs:
etc. (PopClip has a pre-defined allowlist
for custom URL schemes.)
Local file paths.
HTTP ot HTTPS urls.
HTML content (if captureHtml
is true).
Markdown content (if captureHtml
is true).
If the action specified requirements or a regex to match the input, this will be the matching part of the text. Otherwise, it will be the same string as text.
If the action specified a regex to match the input, this will be the full result of the the match.
You can use this to access any capture groups from the regex. The value is a return value from JavaScript's RegExp.prototype.exec() method.
// text: "apple", regex: /.(.)/
selection.regexResult[0] // "ap" (full match)
selection.regexResult[1] // "p" (capture group 1)
RTF content (if captureRtf
is true).
The plain text selected by the user. If there is no selected text, this will be the empty string.
XHTML content (if captureHtml
is true).
Generated using TypeDoc
Input defines properties to access the input text contents.