Jump to content
ian_989

Alfred Maestro - Keyboard Maestro Integration For Alfred

Recommended Posts

On 10/17/2019 at 10:33 PM, Kirill Maltsev said:

One of the workflow maintainers here. Sorry for the inconvenience! I haven't upgraded to macOS Catalina yet, so can't test myself. I've created a Github issue for fixing that, though.

 

I don't think there's anything you can do about it, but @deanishe linked to a solution (several workflows have this problem with Catalina): 

 

Share this post


Link to post

Hi guys,

 

I've been using this amazing workflow for a while now, but since recently I noticed it was not finding some of my KM macros.

For example, I have a macro called "journal", and this is what I get when I type "km journal"

 

[06:14:22.602] Logging Started...
[06:14:24.247] Alfred Maestro[Script Filter] Queuing argument ''
[06:14:24.486] Alfred Maestro[Script Filter] Queuing argument 'j'
[06:14:24.596] Alfred Maestro[Script Filter] Queuing argument 'jo'
[06:14:24.663] Alfred Maestro[Script Filter] Queuing argument 'jou'
[06:14:24.730] Alfred Maestro[Script Filter] Queuing argument 'jour'
[06:14:24.895] Alfred Maestro[Script Filter] Queuing argument 'journ'
[06:14:24.989] Alfred Maestro[Script Filter] Queuing argument 'journa'
[06:14:25.143] Alfred Maestro[Script Filter] Queuing argument 'journal'
[06:14:25.760] Alfred Maestro[Script Filter] Script with argv 'journal' finished
[06:14:25.763] STDERR: Alfred Maestro[Script Filter] 🍺
06:14:25 workflow.go:307: ------- Alfred Maestro/0.2.2 (AwGo/0.17.0) -------
06:14:25 files.go:66: [ERROR] delete tempfile "~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/iansinnott.keyboardmaestro/kmMacros844108717": remove /Users/mac/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/iansinnott.keyboardmaestro/kmMacros844108717: no such file or directory
06:14:25 feedback.go:441: Sent 1 result(s) to Alfred
06:14:25 feedback.go:431: Feedback already sent. Ignoring.
06:14:25 workflow.go:387: ------------------ 523.388931ms ------------------
[06:14:25.804] Alfred Maestro[Script Filter] {
  "variables": {
    "AW_SESSION_ID": "IDPNHJLHDVTMM0LUJ2S6IYAX"
  },
  "items": [
    {
      "title": "No macros found",
      "subtitle": "Try a different query.",
      "valid": false,
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns"
      }
    }
  ]
}

The macro is definitely present in KM, active and working properly.

This is just an exemple, there are many many more macros that the workflow is not finding (but he's finding some).

 

What am I missing ?

 

 

Share this post


Link to post

Hi Mehdi,

 

Can you please open a new issue in our repository? So this thread doesn't get cluttered with the debugging info. And then can you run these two scripts (get_all_km_macros.scpt and get_hotkey_km_macros.scpt) locally to see if your macro is present in the output?

 

To run the script open terminal and type

osascript get_all_km_macros.scpt
osascript get_hotkey_km_macros.scpt

 

Edited by Kirill Maltsev
Markdown isn't supported, had to reformat

Share this post


Link to post
On 10/27/2019 at 12:01 PM, Kirill Maltsev said:

Hi Mehdi,

 

Can you please open a new issue in our repository? So this thread doesn't get cluttered with the debugging info. And then can you run these two scripts (get_all_km_macros.scpt and get_hotkey_km_macros.scpt) locally to see if your macro is present in the output?

 

To run the script open terminal and type


osascript get_all_km_macros.scpt
osascript get_hotkey_km_macros.scpt

 

Thank you Kirill for your answer.

This one is on me, the Group containing the macro was disabled that's why it wasn't appearing, your scripts helped me figure that out 🙏

 

Mehdi

Share this post


Link to post
On 8/29/2015 at 3:32 AM, Smith007 said:

$macros[] = $macro;

 

Can you guide me to where exactly I can find this line? I don't have much experience with Alfred workflows...🙈 Any help is appreciated, as I would really like to exclude some macros in Alfred. Cheers, everyone.

Share this post


Link to post
3 minutes ago, patowod said:

Can you guide me to where exactly I can find this line?

 

It's long gone. The workflow was rewritten in Go last year.

 

As best as I can see, there isn't a way to (easily) exclude macros. The workflow learns from your usage, though, so macros you never run from Alfred will naturally drop to the bottom of the results.

Share this post


Link to post

Update on the Catalina issues: I just installed Catalina today and so far things are working exactly as expected. If anyone is having issues and hasn't yet upgraded to the latest (10.15.1 as of right now) please do so and give it another try.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...