MACRO: Float Specified Apple Notes v2.1

PURPOSE

This macro will open the Apple Notes app and float one or more notes (i.e., open each note in a separate window). Thus it provides a convenient method to access frequently used notes.


SETTINGS

Note settings for this macro are entered in local_Favorite_Folders_Titles. To view the required syntax, open this folding section.

Required Syntax

local_Favorite_Folders_Titles : The following multiple-line Text Variable (a.k.a. a List), includes the SETTINGS (Notes) for this this macro. It is in the format (for each line):

Notes App Folder:::Note Title Substring

Three consecutive colons (:::) should be used to delimit the Notes app Folders and Note Title Substrings (both are case-insensitive).

The Notes app Folder (and delimiter) can be excluded on one or more lines, however, the search will be faster if: a) a note is within a Notes app folder, and b) the folder is specified.

The macro will generate a Prompt With List that includes all of the specified Note Title Substrings. (See exceptions below.) The selected note will then be floated and positioned.

If local_Favorite_Folders_Titles includes only one line, the Prompt With List will be skipped and the specified note will be immediately floated and positioned.

Each line in local_Favorite_Folders_Titles can have one, or both, of the following prefixes:

<hk>n: if this macro is triggered using a Hot Key that includes n (any single character), then only this note will be floated
$> float the note directly, i.e., bypass the Prompt With List for lines that include this prefix

If both prefixes are supplied on a given line, <hk>n: must be specified first.

Lines that begin with # will be ignored.


Window position settings are entered in local_WindowPositions_x_y_w_h; syntax provided in Comment Syntax Description—SETTINGS (Windows).


HOT KEY TRIGGERS

  • ⌥⌘N : primary Hot Key trigger. This macro processes the SETTINGS (Notes) normally (same as if it was triggered from the KM Editor, a palette, etc.). This Hot Key can be freely changed.

  • (any modifier combination)+n, where n is any single character (e.g., ⇧⌘W, ⌥⇧⌘3, ⌃⌥⌘Q) : These optional secondary Hot Keys will normally be matched (in the three examples W, 3, Q) to prefixes in the SETTINGS (Notes) variable. If no match is found, this macro functions as if it was triggered from the Keyboard Maestro Editor.


TRIGGERING

If this macro is triggered directly it will use the SETTINGS (Notes). If it is triggered by another macro* (a.k.a. a caller), it will use the SETTINGS (Notes) provided by that macro.

*To ensure that a calling macro is structured properly, duplicate macro Float Specified Apple Notes CALLER TEMPLATE and customize the duplicate as needed.


ACKNOWLEDGEMENTS

This macro includes:


TESTED WITH

• Monterey, v12.0.1; Mojave 10.14.16
• Keyboard Maestro, v10.0.2
• MacBookPro16,1, Macmini6,2


VERSION HISTORY

1.0 - This was based off Float Selected Apple Note with the following enhancements:
a) open one or more notes directly (with $> prefix)
b) open a specific note with a Hot Key Trigger
c) trigger this macro from a calling macro
2.0
• Added SETTINGS for window positions.
• Accommodates <hk>n: prefixes in the SETTINGS (Notes) from a calling macro.
2.1
• Set icon to the Apple Notes app
• Updated parsing of text lists.
Bug fix:
<hk>n: was not properly detected unless the line also incuded $>, i.e., <hk>n:$>


DOWNLOAD Macro File:
Float Specified Apple Notes.kmmacros (229 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.

Macro-Image


Float Specified Apple Notes can be triggered (a.k.a called) for another macro. The following is a template that can be duplicated and modified as required.

DOWNLOAD Macro File:
Float Specified Apple Notes CALLER TEMPLATE.kmmacros (21 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.

Macro-Image

5 Likes

I've updated the OP with Version 2.0 of Float Specified Apple Notes.

  • Added SETTINGS for window positions.
  • Accommodates <hk>n: prefixes in the SETTINGS (Notes) from a calling macro.
1 Like

I've updated the OP with Version 2.1 of Float Specified Apple Notes.

  • Set icon the the Apple Notes app
  • Updated parsing of text lists.

Bug fix:

  • <hk>n: was not properly detected unless the line also incuded $>, i.e., <hk>n:$>
1 Like

Nice, thanks for sharing the update. Ever since you posted your original macro I have been using it quite extensively both as a stand-alone as well as embedded in other macros. It’s a very well put together macro!

Hi @cdthomer, glad you are finding it useful. Thanks for the feedback. Your early comments (with Float Selected Apple Note, the predecessor) inspired some of the current features—so extensive I had to even change the macro name. :grinning:

1 Like