Optional
afterAn optional step to peform after the main action.
Optional
appDeclares the application or website associated with this action, if any.
Optional
beforeAn optional step to peform before the main action.
Optional
captureWhether PopClip will capture HTML and Markdown content for the selection. Default is no.
Optional
captureWhether PopClip will capture RTF (Rich Text Format) content for the selection. Default is no.
Optional
circleDraw the icon inside a circle.
Optional
excludedArray 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.
Optional
filledDraw the enclosing shape as a solid shape.
Optional
flipXIf true, the supplied icon will be drawn horizontally flipped. Default is false.
Optional
flipYIf true, the supplied icon will be drawn vertically flipped. Default is false.
Optional
iconA 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.
Optional
identifierA unique identifying string. An identifier for an action can be any string of your choosing.
Optional
monospacedFor text icons only. Draw the text using a monospaced font.
Optional
moveXMove the icon horizontally by the specified distance, expressed as percentage of the icon's width.
Optional
moveYMove the icon vertically by the specified distance, expressed as percentage of the icon's height.
Optional
preserveIf true, the supplied icon will be displayed with its original aspect ratio instead of being scaled to fit a square. Default is false.
Optional
preserveIf true, the supplied icon will be displayed with its original color instead of being filled in white/black. Default is false.
Optional
regexA 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.
regex = /abc/i // Example regex 'abc' with 'i' (case insensitive) flag
// Matches abc, ABC, Abc, etc.
Optional
requiredArray 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.
Optional
requirementsAn 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.
Optional
restoreWhether the pasteboard should be restored to its original state after paste-result
.
Optional
rotateRotate the icon anticlockwise by the specified angle, expressed in degrees.
Optional
scaleScale the icon by the specified factor, expressed as a percentage of the original size.
Optional
searchDraw the icon inside a magnifying glass shape.
Optional
squareDraw the icon inside a square.
Optional
stayWhether PopClip's popup should stay on screen after clicking this action's button. Default is no.
Optional
strikeDraw a strike-through line over the icon.
Optional
titleThe action's title.
If no title is defined here, the extension's [`[name]] will be used, if any.
Properties common to Action and Extension