Ok, I tried this and thought I got it. But when I tried to execute the script, the disable function seemed to disable the entire Macro. What did I do wrong?
Sorry, I didn't get this one, either. I don't see that option. Right now it's set as "Display text in a window," but there aren't any option that approximate "Set Clipboard Action" in the dropdown. I've tried to find "Set Clipboard Action" when I click on "Insert Token," but don't see anything there, either.
I'm sure I'm overlooking something or am not quite grasping your instructions. Just let me know when you can and I'm sure I'll figure it out.
I can only guess that you must be disabling the entire macro by mistake, as it's definitely possible to only disable individual actions. Here's a slightly modified version of @JMichaelTX's macro with the prompt and Display Text actions disabled and a final additional action using Set Clipboard to Text:
Thank you so much for sending this! Unfortunately, when I create a new trigger and / or click on Try at the bottom of the window, it doesn’t do anything.
I’m sorry if I’m missing something elementary. I’m trying my best to make this work, and thank you for all of your help. Truly.
No worries; we all start out in an elementary state
You're far from the only one to be confused about what the "Try" button at the bottom of the editor does. Rather than execute the whole macro, the "Try" button only executes the currently selected action. The button to execute the entire macro is actually this one:
This is because Keyboard Maestro imports new macros in a disabled state by default, for security purposes. Both the macro group and the macro itself need to be enabled before the imported macro can be executed. Disabled macro groups and macros are shown in faded-out gray:
###Disabled Macro Group
###Disabled Macro
You can enable them by selecting the group or macro and clicking on the corresponding checkmark button at the bottom of the editor:
You can also confirm whether a macro group or macro is enabled or disabled by the large X or √ in the top right corner of the Edit pane:
###Disabled Macro
###Enabled Macro
Once both the macro and its macro group have been enabled, the trigger you assign to the macro should work as expected, or you can use the "execute entire macro" button to try it without needing to set a trigger.
@token12 I'm afraid I just realized that the 1.0.1 version of the macro I uploaded earlier wouldn't work even if it was properly enabled because it needed some more slight tweaks to accommodate only using one list at a time. Here's a new version that I've confirmed works as intended:
I’m afraid there’s no way to use this macro as-is on iOS; as you’ve said, the existing KM iOS app is just a way of triggering macros on your mac from an iOS device, not for running them on one. As I understand it, your only option would be to recreate this macro, or at least an approximation of it, from scratch using Workflow, which is the closest thing iOS has to Keyboard Maestro (though not nearly close enough for my tastes).
Which version are you using? I just tried the Prompt with List version and AppleScript version in KM9 and they worked fine for me. I recommend uploading the specific macro you're using so we can see where it might be going wrong for ourselves.
Thanks so much for your help! I'm attaching the Macro I've tried to use, per your request. Please let me know if I can provide you with anything else. And thank you very much again...
Thank you. That made it easy to figure out what was wrong. For whatever reason, this version used an empty variable to set the list, so there was nothing for the rest of the macro to do:
To fix it, just erase the empty Local__List variable, enable the other one, and replace its contents with the list you want to pick from:
It worked! Thank you so much for your help with this -- I greatly appreciate it.
Two questions; one small, one big...
The small one: When you first helped me set up this Macro, I seem to recall that it pasted the selections from the pick list after I clicked on "Ok." That doesn't work today, and instead I have to just paste the selections into my application. Its there a way to just make the KB Macro past the selection when I click on "Ok"?
The big one: I raised this question before, long ago, and I'm desperately hoping there might be a solution... In short, I have a lot of hashtags in my pick list, and used to group them by categories, with headers IN CAPS. That helped provide definitions, but still required scrolling through a long window to find the right category set / value. That's why you and others suggested creating separate pick lists (i.e., one pick list per category), but it's not exactly quick and easy to to toggle through those lists. So...
Is there any way way to create a kind of system of disclosure triangles to group values within (or underneath) their respective categories? That would be...huge !
You may want to explore the Actions list in the KM Wiki.
For your use case, all you need to do is add a Paste action if the text is already on the Clipboard,
OR, use the Insert Text by Pasting action if you want to specify the variables, text, and even the formatting to be pasted.
Thanks so much! And sorry for the late reply -- I had to suddenly do some traveling.
Yes, I keep going back and forth about whether it's best to manually paste v. have it automatically insert text after clicking on "OK." Don't know which one is best.
Any thoughts about if / how there's a way to create a kind of system of disclosure triangles to group values / categories? I'm desperately hoping there's a way to do this -- or figure out another organizational approach for organizing large sets of values within my pick lists!