Multiple (~30) Text Manipulation (Case Change) and Text Expansion Macros

Nothing fancy here. These are several simple macros that I use to apply the built-in filters, manipulate the clipboard or some highlighted text, expand the date, etc. I use these every day (all triggered by name) and thought they might be useful to you or give you ideas. I have marked those of my own creation and those that are more than just applying filters in bold.

Text Manipulation
Download all: Text Manipulation Macros.kmmacros (110.7 KB))

[TM] Add Quotation Marks to Highlighted Text.kmmacros (6.3 KB)
[TM] Capitalize Highlighted Text.kmmacros (6.3 KB)
[TM] Character:Word:Line Count.kmmacros (7.7 KB)
[TM] Double Space Lines of Highlighted Text.kmmacros (8.2 KB)
[TM] Insert Current Clipboard by Typing.kmmacros (4.5 KB)
(Useful for pesky new-password forms that do not allow pasting from 1password and similar)
[TM] Invert List from Highlighted Text.kmmacros (8.2 KB)
[TM] Lowercase Highlighted Text.kmmacros (6.6 KB)
[TM] Numbered List from Highlighted Text.kmmacros (9.1 KB)
[TM] Remove Blank Lines from Hightlighted Text.kmmacros (8.3 KB)
[TM] Remove Spaces From Highlighted Text.kmmacros (6.4 KB)
[TM] Sentence Case Highlighted Text.kmmacros (6.9 KB)
[TM] Title Case Highlighted Text.kmmacros (6.6 KB)
[TM] Remove Symbols From Highlighted Text.kmmacros (6.5 KB)
(Useful for new-password forms that do not accept symbols and do not warn you first)
[TM] Trim Whitespace from Highlighted Text.kmmacros (6.3 KB)
[TM] Trim Clipboard To n Characters.kmmacros (6.4 KB)
(Useful for new-password forms that limit password length and do not warn you first)
[TM] Unordered List from Highlighted Text.kmmacros (8.1 KB)

Text Expansion
Download all: Text Expansions Macros.kmmacros (8.9 KB)

Date - Date Time.kmmacros (2.0 KB)
Date - Day.kmmacros (2.0 KB)
Date - File Date.kmmacros (2.0 KB)
(Inserts date in YYMMdd format followed by an underscore, ie: 161114_)
Date - Number Date.kmmacros (2.0 KB)
Date - Long Date.kmmacros (2.0 KB)
Date - Short Date.kmmacros (2.0 KB)
Time - Time.kmmacros (2.0 KB)

Text Expansion (Finder Specific)
Download all: Text Expansions (Finder Specific) Macros.kmmacros (7.3 KB)

kind:folder.kmmacros (2.0 KB)
kind:image.kmmacros (1.9 KB)
kind:music.kmmacros (1.9 KB)
kind:pdf.kmmacros (1.9 KB)


Thanks for posting. I will definitely be looking at some of these.

It would be good if you could post a .zip file containing all these macros so we could download them all in one go. Even if we just want to look at them, it’s easier in the KM Editor to just load them all into one group (presumably with Dan’s Macro Import Manager for viewing.

Or you could just collect copies all of these into one KM group in your Editor and post the group. (It should be inactive when you post.)

I’ve added a download all for each group as you suggested.

Thanks for sharing. Looks like a lot of great stuff in there. :thumbsup:

Just in case someone hasn't figured this out, I found the following keystrokes to bring up the list of @cfriend's macros:

(note the SPACE after the "m")

Then you see the list, alphabetically sorted. After the space, just type the first few characters of any macro in the list to select.

Well designed, @cfriend. :smile:

I just noticed one of my macros in the list, which also has a prefix of "[TM]".
In my case, the "TM" stands for Time Machine.

Thank you. Personally I usually skip the prefix and go straight for a chunk of the keywords like:

The only downside with skipping the prefix is that it produces some false positives, based on actions and comments in other macros.

Exactly. I found many other hits.
It is easy enough for me to first type “’[tm '”

1 Like

I guess I don’t have a deep enough library yet :smiley:

Useful macro for dates expressions.


How do you bring up this list for typing?? I always wondered, how I can manage to display a search field for macros, as I can’t memorize them all

That is "Trigger Macro by Name." I have it bound to ⇧⌘Space.


Thank you,
it´s another of those “secrets” only known to the “old wizards of KM”.

I found the URL:

It's my preferred method of calling macros, now. I use a lot of conflict palettes, too, especially with eBay.

This one is triggered with ⌥S ("S" for shipping)
i.e.: ⌥S P 9 Will run the USPS PFR $9.95 macro.

This one is triggered with the typed string of ;e ("e" for ebay)
i.e.: Typing ;ecg Runs the eBay Cloud Good ESN Macro.

A post was split to a new topic: How to map typed “Hello” to “+ Hello +”

I use all your text transforms on a daily basis. thank you very much.

I am perplexed by the fact you have a numbered list macro and an unordered list macro. I was expecting to find an ordered (sorted, ascending) list from highlighted text.

Did you not feel that such a macro would be useful, or is it too complicated to write ?

thanks again very much

I have not needed such a macro yet (and in fact forgot about many of these macros! ha!) but it shouldn't be too complicated for you to write.

1 Like

OK. thank you.