KeyboardCowboy icon indicating copy to clipboard operation
KeyboardCowboy copied to clipboard

Bug: shell script, AppleScript, or Shortcuts not working for current date string

Open chippokiddo opened this issue 10 months ago • 8 comments

Hello,

I've been trying to get my snippet to work for the current date string, but it seems to output as blank. Maybe it's not a bug and it's something wrong with my scripts?

I have my snippet set as \date and then I tried this shell script: date "+%B %d, %Y" to output the date. I've also tried AppleScript: return (current date) as string and the same thing occurs. Lastly, I tried creating a Shortcut in the Shortcuts app: Current Date → Format Date (date: medium, time: none, locale: default) → Stop and output: Formatted Date → If there's no output: Do Nothing and the same thing occurs.

Chip

chippokiddo avatar Feb 25 '25 02:02 chippokiddo

I'm 64 years old and I'm an old orphan of the most beautiful app I've ever known: quickeys.

Although I have been using keyboard maestro for many years I have always missed the possibility of using shortcuts driven by combinations of characters typed in sequence as KC also allows you to do, so thanks to all of you.

I would like to take this opportunity to propose two wishes:

Context menu for creating shortcuts that open applications (with quickeys it was possible)

Coordinate with the keycue app so that even when KC is not in the foreground it is possible to bring up a window that summarizes all the shortcuts.

Come on guys you are so strong! 💪

vivoperte avatar Feb 26 '25 07:02 vivoperte

@vivoperte QuicKeys was a true marvel, couldn't agree more.

Mind sharing some more insight into how context menus work in more detail?

zenangst avatar Feb 26 '25 08:02 zenangst

https://github.com/user-attachments/assets/d54c7c55-708b-4151-ae87-2b18c2482c77 here an example of what contestual menu is, please look at movie

vivoperte avatar Mar 02 '25 17:03 vivoperte

Hey @chippokiddo! I just released version 3.27.0 with some cool improvements to the scripting. Would you mind giving it a try? You can find it here: https://github.com/zenangst/KeyboardCowboy/releases/tag/3.27.0

zenangst avatar Mar 12 '25 00:03 zenangst

Hi @zenangst, thanks for letting me know about the update! I repeated all three shell script, AppleScript, and Shortcuts, but unfortunately it still outputs as blank. I even tried changing the snippet from \date to cdate thinking the backslash may have been causing issues, but it wasn't.

chippokiddo avatar Mar 12 '25 02:03 chippokiddo

Hey @chippokiddo, could you share a screenshot of the workflow? Also, which terminal shell are you using?

zenangst avatar Mar 12 '25 05:03 zenangst

No problem. The terminal shell I'm using is zsh.

Shortcuts App

Keyboard Cowboy Shortcuts

Keyboard Cowboy ShellScripts

Keyboard Cowboy AppleScripts

P.S. I have them currently disabled for now since they're not working.

chippokiddo avatar Mar 12 '25 05:03 chippokiddo

Thanks @chippokiddo, I'll get cracking at debugging these when life allows.

zenangst avatar Mar 12 '25 18:03 zenangst