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

Catalina adaption #6

Closed
ingski opened this issue Oct 8, 2019 · 3 comments
Closed

Catalina adaption #6

ingski opened this issue Oct 8, 2019 · 3 comments

Comments

@ingski
Copy link

ingski commented Oct 8, 2019

Using the latest macOS 10.15 (Catalina) unfortunately GetWindowID is broken.
For example

GetWindowID Safari --list

produces a list of windows where instead of the names "(null)" is listed.
Also

GetWindowID "${appname}" "${windowname}"`

with correct values for both returns no id any more :-(

@smokris
Copy link
Owner

smokris commented Oct 8, 2019

Yeah, unfortunately in macOS 10.15 the CGWindowListCopyWindowInfo() API no longer provides access to titles of other processes' windows. I also tried, unsuccessfully, to get that info using the old Carbon CopyWindowTitleAsCFString API and the private CGSCopyWindowProperty API. I eventually got it to work using the Accessibility API.

@smokris smokris closed this as completed in ee42d56 Oct 8, 2019
@smokris
Copy link
Owner

smokris commented Oct 8, 2019

I tagged version 1.1 which includes this fix.

@ingski
Copy link
Author

ingski commented Oct 10, 2019

Great. Thanks a lot for this update 👍😃

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