Insert date +%y%m%d | /usr/bin/pbcopy

Using KeyBoardMaestro 10.2. The following works when hitting “Run”. It places a date within a markdown document in DevonThinkPro (4.2.2) But it does not work when using a Hot Key or String is Typed.

Have toggled the Accessibility for KM and KME.

What am I missing? Should be simple functionality.

Triggered by any of the following:

  • Trigger iconThe Hot Key ⌃D is pressed

Will execute the following actions:

  • Action iconActivate DEVONthink

    Notify on failure.

  • Action iconPause for 0.5 Seconds

    Notify on failure.

  • Action iconExecute Shell Script

    bin/zsh
    date +%y%m%d | /usr/bin/pbcopy

    Paste trimmed results without errors.
    Stop macro and notify on failure.

  • Action iconPaste

Does the macro actually start when you press Control-D? Add a Display Text at the top to see if it's even firing.

-rob.

1 Like

Use the Interactive Help (in the Help menu), Something expected is not happening, and see what it has to say.

Yes, it does. It pastes the date at the target location (DevonThinkPro markup document) when pressing “Run” arrow. It does not paste initiating with a Hot Key or Typed String.

Yes, I did before posting. It says that it is a known problem. That I should switch on/off a button for KM and KMEngine, in Accessibility. Does not have any effect.

I understand it works when you press the Run button. I'm asking if it works when you press Control-D. From what you've posted, I don't think it does. That's why I asked you to add a Display Text step to the macro—if you don't see that when you press Control-D, it's not running.

What happens if you change that to Shift-Command-Control-Option-Y or some other similarly definitely-not-used keyboard combo?

-rob.

Yes you did what?

What exactly does the Interactive Help say?