OptionalactionSimplified property to define a single action.
OptionalactionsDefine the actions to go in PopClip's popup. This can be an array or a function.
If it's an array, the supplied actions are used in the popup, subject to meeting the requirements and regex conditions.
If it's a population function, it is called by PopClip to dynamically populate the popup with actions from this extension.
Setting requirements and regex keys has no effect on dynamic actions — the function itself is responsible for deciding what actions to show.
Population function requires the dynamic entitlement.
OptionalafterAn optional step to perform after the main action.
OptionalappDeclares the application or website associated with this action, if any.
OptionalauthIf you define this function then PopClip will display a 'sign in' button in the options UI. When the user clicks the button,
PopClip will call this function with an info object and a flow callback.
If the sign in needs a username and password, you'll also need to define username and password options. PopClip will then pass the values
of those options in the info parameter.
OptionalbeforeAn optional step to perform before the main action.
OptionalcaptureWhether PopClip will capture HTML and Markdown content for the selection. Default is no.
OptionalcaptureWhether PopClip will capture RTF (Rich Text Format) content for the selection. Default is no.
OptionalcircleDraw the icon inside a circle.
OptionalexcludedArray of bundle identifiers for which the extension should not appear. The action will not appear if PopClip is used in any of the specified apps.
This property has no effect on dynamically generated actions.
OptionalfilledDraw the enclosing shape as a solid shape.
OptionalflipIf true, the supplied icon will be drawn horizontally flipped. Default is false.
OptionalflipIf true, the supplied icon will be drawn vertically flipped. Default is false.
OptionaliconA string to define the action's icon.
If no icon is defined here, the extension's icon will be used, if any.
Setting to null explicitly sets the action to have no icon.
OptionalmonospacedFor text icons only. Draw the text using a monospaced font.
OptionalmoveMove the icon horizontally by the specified distance, expressed as percentage of the icon's width.
OptionalmoveMove the icon vertically by the specified distance, expressed as percentage of the icon's height.
OptionaloptionsDefines the user-configurable options for this extension.
OptionalpreserveIf true, the supplied icon will be displayed with its original aspect ratio instead of being scaled to fit a square. Default is false.
OptionalpreserveIf true, the supplied icon will be displayed with its original color instead of being filled in white/black. Default is false.
OptionalregexA regular expression to decide whether this action appears in the popup.
You may express the value either as a
JavaScript regular expression literal
(or otherwise constructed RegExp object), or as a string.
RegExp it will be evaluated in the JavaScript engine.NSRegularExpression API (same as for 'classic' PopClip extensions).If the regex matches the selected text, the action will be shown in the popup and the first occurrence of the matched text is accessible later via matchedText.
If there is no match, the action is excluded from the popup.
The regex's lastIndex is reset before and after each invocation, so the g (global) and y (sticky) flags have no effect.
This property has no effect on dynamically generated actions.
OptionalrequiredArray of bundle identifiers for which the extension should appear. The action will only appear if PopClip is used in one of the specified apps.
This property has no effect on dynamically generated actions.
OptionalrequirementsAn array of conditions which must be met for this action to appear — see Requirement.
["text"].When multiple conditions are specified, all of them must be satisfied.
An empty array ([]) indicates no requirements at all, meaning the action will always appear.
This property has no effect on dynamically generated actions.
OptionalrestoreWhether the pasteboard should be restored to its original state after paste-result.
OptionalrotateRotate the icon anticlockwise by the specified angle, expressed in degrees.
OptionalscaleScale the icon by the specified factor, expressed as a percentage of the original size.
OptionalsearchDraw the icon inside a magnifying glass shape.
OptionalsquareDraw the icon inside a square.
OptionalstayWhether PopClip's popup should stay on screen after clicking this action's button. Default is no.
OptionalstrikeDraw a strike-through line over the icon.
OptionalsubmenuMakes the whole extension a single button that opens a submenu of child actions, as an
alternative to actions/action. Same shape as Action.submenu: a static array
of actions, or a population function (requires the dynamic entitlement).
OptionaltestExported test function for use during development.
OptionaltitleThe action's title.
If no title is defined here, the extension's name will be used, if any.
The Extension object defines the PopClip extension.