Otherwise, set the field to a specified device that we set in our the Pushover account. But I think, with the above AppleScript, if the Device field in KM is set to All or blank, then the message will be pushed to all devices. I have not tested fully, because I'm using only one device (iPad). Set curl to curl & "-form-string \"device=" & Device & "\" " Insert: set Device to do shell script "echo $KMPARAM_Device"Īnd if (Device is not "All") or (Device is not "") then Edit the AppleScript file ( PushoverNotification.scpt):.Insert the below information to the file: Hi can you tell me where I can find the pushover plugin you are using? A KM macro monitors this folder and triggers the macro (See Point 3 below).Save the UUID of the chosen macro to a file named " execMacro.txt" in the Dropbox folder.Ask us to choose a macro from the dictionary list.Get the content of the file as Dictionary.Get the KM Macro List file ( kmmacrolist.json) from my Dropbox folder.It is unnecessary to show these prefixed numbers in the list of the Shortcuts. I'm using UUID instead of name because most of the macro names are prefixed by a number, e.g., 03) Macro Name.It does not have to be the name of the macro, since we are going to trigger it with the UUID. The Description can be any memorable text. This week saw the release of Keyboard Maestro Version 11.Each line is a Description of the macro, followed by a comma and a space, and then lastly its UUID, something like this: In this file, I have a list of KM macros. Create a Macro List File.įor instance, I created a file named kmmacrolist.json and placed it in my dropbox folder: ~/Dropbox/Scripting/KM/Shortcuts/kmmacrolist.json. To accomplish this task, we need do to at least three things: 1. However, what I'm going to share is to let Shortcuts show a list of macros for us to choose from. You can actually use both to accomplish some pretty grand things. Keyboard Maestro can do more menu and in-app control, alfred can do more launching of apps, web searches, and the like. Using Shortcuts to trigger KM macro remotely is not a new thing. But generally speaking, Keyboard Maestro is considered to be the best macros/trigger app for the Mac (with other abilities). Improvement: Change kmmacrolist.txt to kmmacrolist.json and use JSON instead of Plaintext.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |