This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:Filters [2016/06/27 02:47] peternlewis |
manual:Filters [2019/06/24 23:27] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Filters ====== | ====== Filters ====== | ||
- | Keyboard Maestro includes a variety of filters that can be applied to either the system clipboard, Named~~Clipboards, or variables. For clipboards, the filters preserve style information to whatever degree is possible. Use either the [[/action/Filter_Variable|Filter Variable action]] or [[/action/Filter_Clipboard|Filter Clipboard action]] to apply filters. | + | Keyboard Maestro includes a variety of filters that can be applied to either the system clipboard, Named~~Clipboards, or variables. For clipboards, the filters preserve style information to whatever degree is possible. Use the [[/action/Filter|Filter action]] to apply filters. |
The filters are: | The filters are: | ||
Line 18: | Line 18: | ||
* Percent Encode or Decode a URL. | * Percent Encode or Decode a URL. | ||
* Quote for AppleScript, JavaScript, Shell (bash) Script, or Swift. | * Quote for AppleScript, JavaScript, Shell (bash) Script, or Swift. | ||
- | * Get or delete the last path component or the path extension. | + | * Convert a JSON object string to Compact or Pretty format (v9.0+). |
+ | * Get the filename component of a path. | ||
+ | * Get parent of a path. | ||
* Get the basename of the path (ie the name without directory or extension). | * Get the basename of the path (ie the name without directory or extension). | ||
+ | * Get or delete the path extension. | ||
+ | * Get the display name of a path. | ||
* Expand tilde (~) paths, or abbreviate with a tilde. | * Expand tilde (~) paths, or abbreviate with a tilde. | ||
* Resolve symlinks, or standardize the path. | * Resolve symlinks, or standardize the path. | ||
* Delete or bullet (•) control characters. | * Delete or bullet (•) control characters. | ||
- | * Calculate an expression and return the result, see the [[Calculations]] section. | + | * Calculate an expression and return the result, see the [[manual:Calculations]] section. |
- | * Process Tokens and return the result, see the [[Tokens]] section. | + | * Process Text Tokens and return the result, see the [[manual:Tokens]] section. |
* Get the value of a named variable or named clipboard. | * Get the value of a named variable or named clipboard. | ||
* Count the characters, words or lines and return the result. | * Count the characters, words or lines and return the result. |