SELECT service,
client,
client_type,
auth_value,
auth_reason,
auth_version,
csreq,
policy_id,
indirect_object_identifier_type,
indirect_object_identifier,
indirect_object_code_identity,
flags,
last_modified
FROM access
WHERE service = 'kTCCServiceAppleEvents'
ORDER BY client ASC;
I have been working with this in a few different ways and using some methods that you have outlined have enabled apps and scripts for the first time in the Ventura System Settings >>> Privacy & Security >>> Automation. I would like to clarify here for anyone else stuck in my situation; I was only able to achieve this by modifying the ~/Library/Application Support/com.Apple.TCC/TCC.db
using CLI sqlite3 / SQLiteStudio (the latter much easier if you are testing)
I did take a quick shortcut by using a similar command: osascript -e 'tell application "Script Debugger" to make new document'
without using Excel as the go-to app for obtaining said blobs from the database I have been working with tonight.
It’s added nicely. At this stage, after a few hours of trying, I still cannot find a way to enable Script Debugger to work with Apple Events, which are then sent to Music.app.
I believe I have added everything I can to Privacy & Security >>> Automation (Music.app, Script Debugger, actual Apple.scpt file also), but I’m sure I’m missing something.
What I can tell you is that MacOS native Script Editor shows as this in the database if we were to convert to .app:
service kTCCServiceAppleEvents
client com.apple.ScriptEditor.id.MYSCRIPTNAME
client_type 0
auth_value 2
auth_reason 3
auth_version 1
csreq ��
policy_id
indirect_object_identifier_type 0
indirect_object_identifier com.apple.Music
indirect_object_code_identity ��
flags
last_modified 1688852179
Now towards the end of my script (converted to an app) towards the end I invoke System events. So we also have a new entry:
service kTCCServiceAppleEvents
client com.apple.ScriptEditor.id.MYSCRIPTNAME
client_type 0
auth_value 2
auth_reason 3
auth_version 1
csreq ��
policy_id
indirect_object_identifier_type 0
indirect_object_identifier com.apple.systemevents
indirect_object_code_identity ��
flags
last_modified 1688852580
In this one example which may help all of us understand more (I’m hoping)… Does anyone have a further suggestion? I’ll be able to test more tomorrow.