Hello Folks
I have many external Triggers for my Macros - especially BetterTouchTool Gestures.
Editing each AppleScript that is attached to any of these Gestures - which is looking like this
-- ignoring application responses
tell application "Keyboard Maestro Engine"
do script "FC17C8F7-01FC-4D39-A1E1-193C2623ADC4"
-- or: do script "Yoink - Helper"
-- or: do script "FC17C8F7-01FC-4D39-A1E1-193C2623ADC4" with parameter "Whatever"
end tell
-- end ignoring
is very time consuming because I would have to copy each AppleScript Trigger from a specific Macro for the Gesture's AppleScript to work. Especially when ReInstalling KM.
My Thoughts here are writing AppleScripts for such External Triggered Macros only once and then never have to think about them.
My Goal here is to parse the right Macro UUID for a Macro by first breaking down all Macros to only a specific Macro Group using the Macro Group's Name and then getting the Macro UUID by using the Macros Name.
something like that
use script "KurtysKMLib"
set theMacroGroup to "My Example MacroGroup"
set theMacro to "My awesome Macro"
set theUUID to KurtysKMLib's getMacroUUID(theMacroGroup, theMacro)
-- ignoring application responses
tell application "Keyboard Maestro Engine"
do script theUUID
-- or: do script theUUID with Parameter theParam
end tell
-- end ignoring
If anyone of the AppleScripters here could help me with this task that would be great.
please note that I want to use a Script Library which I am working on at the moment.
Greetings from Germany
Tobias