Public Notes by chase_ats Tagged #useful
Notes publicly shared by our members.
"This Python script helps to add items to OS X's TCC.db sqlite database, which is useful in a distributed Apple-centric environment where a blanket TCC file would not work properly." "Apple's OS X 10.8 "Mountain Lion" introduced a feature which notifies users whenever an application attempts to gain access to their contacts (address book) or their computer's "Accessibility" options (such as screen overlays). Whenever a user responds to one of these prompts, the computer stores the answer in an sqlite3 databased called "TCC.db". In a single-user environment, this is usually a perfectly suitable solution without problems. However, this system causes issues in distributed environments where applications may be added or removed at any time and the database file would need to be updated. Constantly having to update this file for the template user would be tedious and could cause errors (what if you forgot to add one of the other applications?). This script allows for applications to programmatically be added to the TCC database during our regular maintenance cycle. In our environment, it's integrated in such a way that adding an entry to the TCC.db database is no more difficult than adding a single line of text to our files, which is significantly simpler than rebuilding the entire database file and uploading it to our main image server." #scripts #cli #useful #open_source #python #automation #mac #pub
"A Python script to enable or disable the Location Services feature in Apple's Mac OS X, and then to add or remove applications to it manually. Tested on OS X 10.9." -- "Location Services is (usually) entirely autonomous. It runs in the background via the low-key locationd process, waiting for an application to ask you for permission to report your physical location in the world to whatever service it is communicating with. This can be used by many things, such as when you access Google Maps in your favorite web browser (the browser requests permission), or if you pop open the Apple Maps dedicated application in OS X. In the environment I help manage, though, we need a more hands-on method of interacting with this usually hidden system. If we wait for our users to try to access any of these services, we'll waste time running to their office just to enter an administrative password to grant them access - access that will just be removed the next time they update their computer through our system. Instead, we wanted a more proactive approach. This Python script provides an easy method of directly interfacing with the Location Services preferences. Applications can easily be added, removed, enabled, or disabled, and the Location Services daemon can also be enabled or disabled globally in a single line!" #scripts #cli #useful #open_source #python #automation #mac #pub
TripMode is a small Mac app that helps you save mobile data when on the go. It stops online backups, updates, etc. from using your data in the background. #useful #mac #mobile_world #tethering #internet #utilities #!TO_TAG #apps #pub