Previously, previously, previously.

Tags: , , ,

Fucking Apple

I probably ask this every time I "upgrade" macOS, but how the fuck do I simulate a keystroke from cron on 10.15? It's works when I do it from Terminal but it's saying "36:48: execution error: File permission error. (-54)" from an ssh shell or crontab.

I've tried adding everything I can think of to "System Preferences / Security / Privacy / Accessibility" including osascript, cron, launchd and System Events.

E.g., osascript -e 'tell application "System Events" to key code 100'

The only maybe-relevant thing I can see in the relentless firehose that is the system log is: "spawn_via_launchd() failed, errno=1 label=[0x0-0x566566] path=/System/Library/CoreServices/System Events flags=0"

Remember when programs fought for the users instead of against them? Yeah, neither do I.

Tags: , , , ,

  • Previously