Hello.
Trying to set up a basic KM macro that is triggered via a LaunchBar action with the idea that the input string (LaunchBar input) should be passed onto the macro.
This is my current attempt where I am copying the input string to clipboard and pasting it in the macro:
LaunchBar Action's AppleScript:
-- LaunchBar Action Script
on handle_string(theString)
set the clipboard to theString
tell application "Keyboard Maestro Engine"
do script "9026166A-0EB6-4185-87C8-BC747ED093D7"
-- or: do script "Search Nimbus Note"
-- or: do script "9026166A-0EB6-4185-87C8-BC747ED093D7" with parameter "Whatever"
end tell
end handle_string
Above works ok but I am wondering how I can do the same w/o using the clipboard.
I think it is something along the lines of:
If it is really that important to you, I guess you could use LB with a custom Action that takes your input and then triggers a KM macro, passing the input as a parameter to the Macro. Then use the
%TriggerValue%
token to read the parameter.
or Passing filenames from LaunchBar to KM-Macro.
Thanks,
Sridhar.