Skip to content
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

Doesn't find matches with apps like Forklift #34

Open
Stooovie opened this issue Nov 18, 2023 · 5 comments
Open

Doesn't find matches with apps like Forklift #34

Stooovie opened this issue Nov 18, 2023 · 5 comments

Comments

@Stooovie
Copy link

As per Alfred debugger:

[12:08:07.131] Logging Started... [12:08:20.620] Menu Bar Search[Script Filter] Queuing argument 'syn' [12:08:20.748] Menu Bar Search[Script Filter] Script with argv '(null)' finished [12:08:20.753] ERROR: Menu Bar Search[Script Filter] Code 5: Exited with error code but no message [12:08:21.283] Menu Bar Search[Script Filter] Queuing argument '' [12:08:21.402] Menu Bar Search[Script Filter] Script with argv '(null)' finished [12:08:21.410] ERROR: Menu Bar Search[Script Filter] Code 5: Exited with error code but no message [12:08:21.412] Menu Bar Search[Script Filter] Queuing argument 's' [12:08:21.518] Menu Bar Search[Script Filter] Script with argv '(null)' finished [12:08:21.524] ERROR: Menu Bar Search[Script Filter] Code 5: Exited with error code but no message [12:08:21.617] Menu Bar Search[Script Filter] Queuing argument 'sy' [12:08:21.671] Menu Bar Search[Script Filter] Queuing argument 'syn' [12:08:21.730] Menu Bar Search[Script Filter] Script with argv '(null)' finished [12:08:21.736] ERROR: Menu Bar Search[Script Filter] Code 5: Exited with error code but no message [12:08:21.834] Menu Bar Search[Script Filter] Script with argv '(null)' finished [12:08:21.844] ERROR: Menu Bar Search[Script Filter] Code 5: Exited with error code but no message

@occludedpixel
Copy link

I think this issue is related to the one being addressed by #33 .

The workflow retrieves an invisible Format menu bar item for Forklift:

Apple
ForkLift
[<AXUIElement 0x600003561680> {pid=36446}]
File
[<AXUIElement 0x600003561680> {pid=36446}]
Edit
[<AXUIElement 0x600003561680> {pid=36446}]
Format
[]
View
[<AXUIElement 0x6000035643c0> {pid=36446}]
Go
[<AXUIElement 0x600003578030> {pid=36446}]
Favorites
[<AXUIElement 0x600003561d70> {pid=36446}]
Commands
[<AXUIElement 0x6000035643f0> {pid=36446}]
Window
[<AXUIElement 0x600003578000> {pid=36446}]
Help
[<AXUIElement 0x600003561d70> {pid=36446}]

Format has no kAXChildrenAttribute unlike the other visible menu bar items but the current code does not check that the arrays are non-empty before trying to access the first element.

@notDavid
Copy link

@occludedpixel is there a workaround / beta version that fixes this at the moment?

@occludedpixel
Copy link

occludedpixel commented Mar 29, 2024

@notDavid I have submitted a pull request #33. You can clone that repo and build the menu executable following the instructions here then replace the existing one in the workflow directory with it.

edit: I have just posted a release here which includes the updated executable

@notDavid
Copy link

Great, thank you so much for sharing @occludedpixel !

@yinan-c
Copy link

yinan-c commented Apr 19, 2024

Thank you so much @occludedpixel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants