Simple Macros (A Thread?)

My professional work involves medical and legal records review in order to determine future medical costs when someone is injured. Sometimes that involves referencing an academic article and then illustrating the key content in that article, often with an explanatory or rebuttal argument.

Making the browser editable essentially gives me an HTML word processor to mix/match content from various sources and then add my annotations in matching boldfaced or italics font or a different color etc.

In truth I can do the same thing using a Devonthink HTML page as my HTML editor, but sometimes I prefer to do some of the editing in the browser.

Totally separately - not the main purpose but fun once in a while - is to edit (usually political) content in a satirical way and send it to an unsuspecting friend as a joke and play along for a while until revealing that it was edited.

I have a JavaScript bookmarklet from somewhere long forgotten to do the same thing, activated with a Keyboard Maestro Hot Key.

javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200

I regularly save web pages as PDFs and this allows me to remove web site cruft before doing so.

Archive an email in Apple Mail when replying to a message.

I have a group for actions which only work when Mail is open and active. All of my actions for Mail go in this group.

The action itself selects Message > Reply in the menu and then selects Message > Archive to remove it from the inbox.

Reply & Achive.kmmacros (2.6 KB)

Using Command+Return to send emails. This mimics the action in (I think) Airmail and Gmail.

Gmail Send.kmmacros (2.1 KB)

1 Like

Forward emails to my Omnifocus inbox.

Forward to Omnifocus.kmmacros (3.4 KB)

A very daily macro for me to limit my chat history in iMessage to the most important things:

iMessage text delete <B67B 200825T021357>.kmmacros (41,3 KB)

iMessage text delete <B67B 200825T021357>

*** Löschen would also have to replace Delete here.

I have integrated the AppleScript (KM macro) into BetterTouchTool, so I only need one mouse gesture to run the macro. This saves me another shortcut and the deletion is faster and more efficient.

2020_08_25_Support_11

For moving windows to another desktop I'd use commands at the Window menu:

If I set a KM macro to ignore if Windows->Move to LG UltraFine doesn't appear (on the UltraFine) and similar for the other monitor, two macros do it cleanly.

Except I have 5 monitors, of which 3 are in my primary field of view and 2 others are secondary. My most common "move" is 2 monitors away - that can be done in 1 step with a numerical KM macro or 2 steps with the "Tile Window" command.

Swap last two windows
image

Swap last two applications
image

1 Like

Is there a compendium, of macros, available that others create and share?

That’s what this category - Macro Library - is primarily used as.

Nice solution from @gglick to get your client's address from a plain text file:

Insert Safari URL

One of my most used macros is simple one-step macro with a "Insert Text" action set to the token %SafariURL%. It is triggered by typing ,url

So, where ever needed, the currently open Safari window ist just for keystrokes away and is already so hardwired that I sometimes find myself typing it on my iPad wondering why it would not turn to an URL.

Roland

2 Likes

In addition to all of the topics in this section, "Macro Library", there is the Best Macro List -- KM Forum.

1 Like

When I switched to Mac from PC a prime aggravation was the lack of a forward delete key. Now Shift-Delete triggers space right and then delete.

My second most used macros are '1, `2, etc. They trigger the various email addresses I use many times a day.

Function-Delete serves as Forward-Delete if there's no existing Forward-Delete key. Understandably, you may be a point whereby your muscle memory doesn't care to switch.

1 Like

Thanks. I think I knew that. However, it requires two hands which as you point out requires climbing the steepest muscle memory hill of all (-;

I remap a lot of keys to match my muscle-memory from Windows. Can't teach this old dog new tricks, sometimes. :wink:

Control+D will also do “forward delete”.

Hashtag Emacs Keybindings.

1 Like

where ever needed, the currently open Safari window ist just for keystrokes away and is already so hardwired that I sometimes find myself typing it on my iPad wondering why it would not turn to an URL.