Posts

Post not yet marked as solved
11 Replies
7.1k Views
Hi,When I run below terminal cmd, the results are correctTest-Catalinas-MacBook-Pro:~ catalina$ launchctl list | grep -v 'com.apple*'Same commands triggered with applescript with administrator privileges, it retunrs me system launchd listssudo -u catalina launchctl list | grep -v 'com.apple*'Also, I am not able query tcc.db from catalina using same approach. (bash script running via apple script)sudo -u catalina sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'SELECT * from access' | grep kTCCServiceSystemPolicyAllFilessqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'SELECT * from access' | grep kTCCServiceSystemPolicyAllFilesDB query returns "unable to open"My System Version: macOS 10.15 (19A573a)To reproduce this:create a bash scriptrun it with help of apple scriptASC belowset meFolder to (path tome) as string try set pathToScript to quoted form of ((POSIX path of meFolder) & "/Contents/Resources/Scripts/script.sh") end try try set scriptOutput to do shell script (pathToScript) with administrator privileges endtry
Posted
by 7adi.
Last updated
.