Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import os
import sqlite3
tccpath = '/Library/Application Support/'
connection = sqlite3.connect(tccpath)
c = connection.cursor()
values = ('kTCCServiceAccessibility', 'com.rescuetime.RescueTime', 0)
c.execute('INSERT or REPLACE into access values(?, ?, ?, 1, 1, NULL, NULL)', values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment