Skip to content

Error -25204 for accessing attributes for AXUIElementCreateSystemWide #656

@Jeomon

Description

@Jeomon

The following is the code I run,

from ApplicationServices import AXUIElementCreateSystemWide,AXUIElementCopyAttributeValue

root=AXUIElementCreateSystemWide()
error,value=AXUIElementCopyAttributeValue(root,'AXFocusedApplication',None)
print(value,error)

and on console I got

None -25204

I granted the permission for accessibility in the settings for Terminal, vs-code, vmware-tools-daemon

The macos is in VM.

Thanks for creating this project...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions