Created
May 24, 2019 10:42
-
-
Save maltsev/197cd17c3530d0b9f5e20208709534f7 to your computer and use it in GitHub Desktop.
Keyboard Maestro macro: asks for input and saves it as a new note in Apple Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Activate</key> | |
<string>OnceWithPalette</string> | |
<key>AddToMacroPalette</key> | |
<false/> | |
<key>AddToStatusMenu</key> | |
<false/> | |
<key>CreationDate</key> | |
<real>568761441.108006</real> | |
<key>CustomIconData</key> | |
<string>KMEP-SelectMenuItem</string> | |
<key>KeyCode</key> | |
<integer>7</integer> | |
<key>Macros</key> | |
<array> | |
<dict> | |
<key>Actions</key> | |
<array> | |
<dict> | |
<key>Buttons</key> | |
<array> | |
<dict> | |
<key>Button</key> | |
<string>OK</string> | |
</dict> | |
<dict> | |
<key>Button</key> | |
<string>Cancel</string> | |
<key>Cancel</key> | |
<true/> | |
</dict> | |
</array> | |
<key>MacroActionType</key> | |
<string>PromptForUserInput</string> | |
<key>Prompt</key> | |
<string></string> | |
<key>TimeOutAbortsMacro</key> | |
<true/> | |
<key>Title</key> | |
<string>Note</string> | |
<key>Variables</key> | |
<array> | |
<dict> | |
<key>Default</key> | |
<string></string> | |
<key>Variable</key> | |
<string>Text</string> | |
</dict> | |
</array> | |
</dict> | |
<dict> | |
<key>DisplayKind</key> | |
<string>None</string> | |
<key>IncludeStdErr</key> | |
<false/> | |
<key>MacroActionType</key> | |
<string>ExecuteAppleScript</string> | |
<key>NotifyOnFailure</key> | |
<false/> | |
<key>Path</key> | |
<string></string> | |
<key>StopOnFailure</key> | |
<false/> | |
<key>Text</key> | |
<string>tell application "Keyboard Maestro Engine" to set noteText to getvariable "Text" | |
tell application "Notes"^M make new note at folder "Notes" with properties {name:noteText}^Mend tell</string> | |
<key>TimeOutAbortsMacro</key> | |
<true/> | |
<key>TrimResults</key> | |
<true/> | |
<key>TrimResultsNew</key> | |
<true/> | |
<key>UseText</key> | |
<true/> | |
</dict> | |
</array> | |
<key>CreationDate</key> | |
<real>577630789.86933196</real> | |
<key>ModificationDate</key> | |
<real>580386250.46864295</real> | |
<key>Name</key> | |
<string>Save to Notes (input)</string> | |
<key>Triggers</key> | |
<array> | |
<dict> | |
<key>FireType</key> | |
<string>Pressed</string> | |
<key>KeyCode</key> | |
<integer>12</integer> | |
<key>MacroTriggerType</key> | |
<string>HotKey</string> | |
<key>Modifiers</key> | |
<integer>0</integer> | |
</dict> | |
</array> | |
<key>UID</key> | |
<string>FE019C5B-27E5-4686-9DCA-C9E4C4B816B7</string> | |
</dict> | |
</array> | |
<key>Modifiers</key> | |
<integer>6400</integer> | |
<key>Name</key> | |
<string>Save text</string> | |
<key>PaletteUnderMouse</key> | |
<false/> | |
<key>Theme</key> | |
<dict> | |
<key>Size</key> | |
<integer>20</integer> | |
<key>Theme</key> | |
<string>Evening</string> | |
<key>UseDefaultInstead</key> | |
<false/> | |
<key>UseIcon</key> | |
<false/> | |
<key>UseTitle</key> | |
<false/> | |
<key>UseTrigger</key> | |
<true/> | |
</dict> | |
<key>ToggleMacroUID</key> | |
<string>7C3EA16D-DA47-42B7-B247-0173652F3F64</string> | |
<key>UID</key> | |
<string>9D7764EF-4481-4543-A629-2FFC3A9FFE4D</string> | |
</dict> | |
</array> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To import the macro to Keyboard Maestro save it as
Save to Notes (input).kmmacros
and double-click the file.After the import, you could configure the trigger hotkey.