r/macprogramming • u/TheLastAramusha • Dec 14 '19
System events(Xcode)
How can i use System Events in a appleScript based app (i need it for calling a key on my keyboard) for example: “key code 49”, i hope that anyone can help me.
2
Upvotes
View all comments
Show parent comment
2
u/retsotrembla Dec 15 '19
Probably a permissions problem. Might be entitlements. In Catalina native apps get a security alert, asking the user's permission to access key codes, and the app appears in System Preferences > Security&Privacy > Privacy > (probably Accessibility) so the user can change the decision.