User Tools

Site Tools


action:Filter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
action:Filter [2018/03/26 20:07]
JMichaelTX
action:Filter [2019/06/24 23:18]
peternlewis
Line 24: Line 24:
   * Percent Encode or Decode for a URL.   * Percent Encode or Decode for a URL.
   * Quote for Applescript,​ Javascript, Shell Script or Swift.   * Quote for Applescript,​ Javascript, Shell 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.
Line 43: Line 47:
  
 is roughly equivalent to the Uppercase filter, for the System Clipboard, except that it only works with ASCII characters. is roughly equivalent to the Uppercase filter, for the System Clipboard, except that it only works with ASCII characters.
 +
 +Note that the definition of what a character, word, or line is is more than a little ambiguous, so if you have strict requirements for your definition you will need to calculate it yourself to ensure you get the answer you require. ​ For example, the line count will return the number of lines, with a minimum of one, which will not necessarily be the same as the number of end-of-line characters, and the number of characters may or may not count multi-plane unicode characters as one character, and we wont even attempt to define what is and isn’t a single word.
  
 ===== See Also ===== ===== See Also =====
- 
----- 
  
 === Actions === === Actions ===
  
 * [[:​Actions|See all Actions]] * [[:​Actions|See all Actions]]
- 
----- 
  
 ==== Forum ==== ==== Forum ====
Line 58: Line 60:
 - [[https://​forum.keyboardmaestro.com/​t/​potential-bug-with-titlecase-or-new-user-error/​2235/​3|Potential bug with Titlecase (or new user error)]] - [[https://​forum.keyboardmaestro.com/​t/​potential-bug-with-titlecase-or-new-user-error/​2235/​3|Potential bug with Titlecase (or new user error)]]
 - [[https://​forum.keyboardmaestro.com/​t/​search-and-replace-paragraph-mark-in-clipboard-text/​2310|Search and replace paragraph mark in clipboard text?]] - [[https://​forum.keyboardmaestro.com/​t/​search-and-replace-paragraph-mark-in-clipboard-text/​2310|Search and replace paragraph mark in clipboard text?]]
 +- [[https://​forum.keyboardmaestro.com/​t/​filter-action-line-count-behaviour-is-odd/​11679/​11|Filter Action (Line Count) behaviour is odd]]
 - [[https://​forum.keyboardmaestro.com/​t/​create-a-macro-to-strip-html-tags-from-text/​2918/​5|Create a macro to strip HTML tags from text]] - [[https://​forum.keyboardmaestro.com/​t/​create-a-macro-to-strip-html-tags-from-text/​2918/​5|Create a macro to strip HTML tags from text]]
 - [[https://​forum.keyboardmaestro.com/​t/​replace-special-characters-with-html-entities/​3378/​9|Replace special characters with HTML Entities?]] - [[https://​forum.keyboardmaestro.com/​t/​replace-special-characters-with-html-entities/​3378/​9|Replace special characters with HTML Entities?]]
action/Filter.txt · Last modified: 2022/12/28 18:16 by ccstone