d75198be9f1729603e17d61d6f44e63bd201dd57
pyautogui's Quartz-based keystroke path often fails on newer macOS because the Python CLI binary doesn't auto-surface in System Settings > Accessibility. User reported the daemon detected taps fine but keystrokes never landed in any window. Switch to AppleScript / System Events on macOS. Permission attaches to whatever terminal/app launched the Python process (Terminal.app, iTerm, etc.) — a familiar named app the user can grant Accessibility to in one click. Combined keystroke + Return in a single osascript call to keep latency ~100ms per tap. Fall back to pyautogui if osascript fails (handles edge cases) and on non-macOS platforms.
Description
Odoo 19 custom modules
Languages
Python
55.9%
HTML
26.1%
JavaScript
14.9%
SCSS
1.8%
CSS
0.8%
Other
0.4%