MACRO: Log It, v5.2—Quickly Save Plain Text Snippets to One or More Log Files

2022-02-12 UPDATE: With Log It, v5.2, the steps in this post have been superseded by a much simpler method.

For more information, refer to the macro header comment, section MULTIPLE INSTANCES OF LOG IT.

Just curious, how will you use a second copy?

I found this post by @JMichaelTX. In it he provides a macro named: BETA Change KM Variable Prefix (rename) to Local in All Actions @DEV.kmmacros. I tested it and it seemed to work quite well for Log It.

Instructions:

  1. Download and enable BETA Change KM Variable Prefix (rename) to Local in All Actions @DEV.kmmacros. It will install in a group named [KM]. It can remain there.

  2. Create a Hot Key Trigger for the downloaded macro.

  3. Make a copy of Log It, rename it (e.g., Log It B), and place the copy in the [KM] group.

  4. In the Keyboard Maestro editor, select the renamed Log It and launch the downloaded macro using the Hot Key Trigger set above.

  5. When the macro dialog opens, enter the following:

CurrentPrefix : jsLI__
NewPrefix : jsLI_2__

Note: The first prefix needs to be exactly as specified. Both prefixes need to end with two underscores (__).

  1. Review the dialog that summarizes your specifications.

The macro will create a copy of the renamed Log It and after a few seconds of execution will display a window summarizing the changes. Note that you will want to keep the macro you renamed, not the backup created by the macro.


FYI: These are the Log It values that persist and can be found in Keyboard Maestro > Preferences > Variables

jsLI__Add Timestamp Prefix
jsLI__Auto New Each Day
jsLI__Confirm With
jsLI__Content Suffix
jsLI__if nothing selected replace Selection with Clipboard
jsLI__Log Filename
jsLI__Markdown Content
jsLI__Mode
jsLI__Shorten URL
jsLI__Start With