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

Some apps missing from window list (e.g, Reeder) #38

Open
grork opened this issue Mar 4, 2024 · 3 comments
Open

Some apps missing from window list (e.g, Reeder) #38

grork opened this issue Mar 4, 2024 · 3 comments

Comments

@grork
Copy link

grork commented Mar 4, 2024

Got on the TestFlight (yay!), and everything seemed to be working great except, some apps don’t seem to be enumerated in the list at all, so can’t be ‘ensemble’d.

  1. Start session on mac
  2. Starter Reeder.app
  3. Connect from visionOS
  4. Do not see reeder app listed, nor returned in search results
@saagarjha
Copy link
Owner

As far as I can tell the only filter I apply is whether the window has a title (and if's at a normal window level, which I generally expect to be the case):

!($0.title?.isEmpty ?? true) && $0.windowLayer == 0 /* NSWindow.Level.normal */
. Does that apply here?

@grork
Copy link
Author

grork commented Mar 6, 2024

I dug up some apple script to enumerate windows by apps, and captured the title for the Reeder window — indeed, it is ‘blank’. Here’s a capture of it’s output with a few windows open:

{"Application: Safari, Window: Display macOS Windows: Activity Monitor", "Application: Things3, Window: Today", "Application: Script Editor, Window: Untitled.scpt", "Application: Reeder, Window: No Title"}

Script that creates this:

tell application "System Events"
	set windowList to {}
	repeat with theProcess in (every application process whose background only is false)
		repeat with theWindow in (every window of theProcess)
			set windowName to ""
			try
				set windowName to name of theWindow as string
			end try
			if windowName is not "" then
				set end of windowList to "Application: " & (name of theProcess as string) & ", Window: " & windowName
			end if
			if windowName is "" then
				set end of windowList to "Application: " & (name of theProcess as string) & ", Window: No Title"
			end if
		end repeat
	end repeat
end tell

return windowList

@saagarjha
Copy link
Owner

Ok. That's good to confirm, but still…annoying. I'll see what I can do.

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

2 participants