Accessibility api

  • Open the app in xcode
  • Run it
  • Give Accessiblity permission to the hello1.app
  • Now select any text in any window
  • Press Ctrl + Shift + J
  • It will log into the Xcode debug window
systemWideElement: <AXUIElement System Wide 0x6000000ac8d0>
focusedElement: nil
Screen.Recording.2025-05-05.at.11.21.41.AM.mov