-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running a service, incorrect service is invoked #15
Comments
Confirming the same behavior here.
Steps to Reproduce
📒 Note: The issue repeats whenever a different file/folder is selected. You need to launch the workflow, close it, and then relaunch the workflow for the selected item to be executed. |
I've found the cause of the issue - it is to do with the way the menu items are cached currently. For instance, in Finder, the services menu differs based on what you have selected. Eg on my system: Finder Services when selecting a folder Finder Services when selecting a an image Since we are caching menu items, it can happen that the cache is out of date or not in sync with what is selected. Top of my mind, there are a couple of ways to solve this
I'll work on tweaking this a bit and have something out when I release v2.0 of the workflow. |
§ You can actually tweak caching behaviour right now if you type In the settings file, you can have the following snippet:
NOTE In the case of Finder, the app name to be specified in the settings file could be "Finder" or "com.apple.finder" depending on which version of the workflow you have installed. You can figure the exact name to use by typing |
Thanks for looking into this. Unfortunately, even with caching disabled via the settings file, the wrong item is frequently executed when choosing a sub-item of the Services menu. Settings used:
Any other things we could try to improve this? Note: |
Thanks for checking and getting back. I can't think of anything else for the interim - let me debug this more, since I can definitely reproduce it. |
Given this list of services:
Running
m qr
in Alfred finds and allows me to run the "Generate QR Code" service. However, when I do that, Menu-Bar-Search actually runs the "Compare Text in Kaleidoscope" service.Oddly, if I try running
m qr
again, it runs the QR code service as expected.This only seems to affect services; other menu items always work as expected.
Running Menu-Bar-Search 1.7, Alfred 4,6 and macOS 12.0.1.
The text was updated successfully, but these errors were encountered: