OS X Accessibility Command Line Tool Available On Homebrew

I’m happy to announce that tccutil.py is now available on Homebrew.  A tool for modifying access to assistive devices from the command line.  You can install it like this:

brew install tccutil

The real tccutil (designed by Apple’s engineers), found in /usr/bin, only has one feature: to reset the services (tccutil: Usage: tccutil reset SERVICE).  From a system administrator’s perspective, this is very restricting. Continue reading “OS X Accessibility Command Line Tool Available On Homebrew”

Bash Script: Fix Paused Printers In OS X

You need an administrator password to un-pause a printer in OS X.  It is possible to add a user to the lpadmin group.

sudo dseditgroup -n /Local/Default -o edit -a username lpadmin

This will give them rights to the printer, but if your users aren’t admins of their machines, this might not be something you want to open up.  This is the case for the school I work at.  My solution was to create a LaunchDaemon that would automatically detect and un-pause paused printers. Continue reading “Bash Script: Fix Paused Printers In OS X”

Twin Cities Mac Admins Presentation: Under Cover Of Shell (Scripting)

On April 23 at JAMF headquarters in downtown Minneapolis, I will be presenting at the April MSP Mac Admins Meetup.  My presentation will cover real-life examples of how scripting can be used.  You don’t need to know a single line of code to enjoy this presentation, but it might pique your interest to learn some! Continue reading “Twin Cities Mac Admins Presentation: Under Cover Of Shell (Scripting)”

Python Script: pmset–Set Energy Saver Settings For Multiple Computers At Once

If you have 1,000 computers and don’t want them all to power on at the same time, but rather come on at different times, you can use a simple Python script to do so.  I use this in an educational setting where each lab needs a different power setting so that they don’t all power on at once and crash the server when they all try to contact it at once.  It is also a little easier on the power grid. Continue reading “Python Script: pmset–Set Energy Saver Settings For Multiple Computers At Once”

Bash Script: Set Favorite Servers In “Connect To…” Menu

The Connect To… menu (Command+K) lets you quickly connect to a server using different protocols.  If you are deploying these settings to a bunch of computers, it can be done quickly using a simple bash script.  Just replace or add whatever servers you want into the servers variable (one per line in single quotes). Continue reading “Bash Script: Set Favorite Servers In “Connect To…” Menu”

OS X Yosemite Notification Center Command Line Utility For Scripting And More

Download

NCutil.py – Mavericks and Yosemite

Use Case

OS X administrators can appreciate a good command line utility.  In enterprise environments, it is useful to be able to send out settings to multiple computers at once.  This is part of the reason I started NCutil.py.  I wanted to be able to change the Notification Center alert duration via a script.  I also wanted to be able to remove items from Notification Center that I didn’t want. Continue reading “OS X Yosemite Notification Center Command Line Utility For Scripting And More”