-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
This following code works well when BUNDLE_ID is com.apple.Automator, but cannot find any windows when BUNDLE_ID is com.tencent.WeWorkMac, the len(windows) is 0 in the output.
also I cannot detect any UI elements for this app com.tencent.WeWorkMac manually using Accessibility Inspector.
Anyone know what's the problem? and any advice to troubleshooting this issue? Appreciate it.
btw, com.tencent.WeWorkMac is a very popular IM for business in China, you can download it from https://work.weixin.qq.com/#indexDownload.
import atomacos
BUNDLE_ID = 'com.tencent.WeWorkMac'
# BUNDLE_ID = "com.apple.Automator"
atomacos.launchAppByBundleId(BUNDLE_ID)
automator = atomacos.getAppRefByBundleId(BUNDLE_ID)
print(automator)
windows = automator.windows()
print(len(windows))
print(windows)
print(windows[0].AXTitle)
Metadata
Metadata
Assignees
Labels
No labels