Finding shutdown causes in macOS Sierra's mind-boggling new logging

Say that 10x fast… (and try googling it…)

I won't delve into too many details here as there are a lot of great resources out there for using the new logging in Sierra, but there doesn't seem to be a place where one of my most helpful system log searches is found online.

^^^ That in will get you the last 24 hours worth of "Previous shutdown cause" messages from the system logs. Useful for troubleshooting.

If you need a handy list of shutdown code meanings and don't have an Apple Training Guide doc handy, this list is very helpful.

Fave Friday

Fave Friday

Nintendo Switch NES Themed Dock Sock by TinckoyMakesitSew on Etsy

Cute hexagonal wall shelves, no source

20 Stitch Table Runner crochet pattern from Sewrella

Domino phone case by Valfré

Karpe Diem: Useless Goldfish Monster Hat by Akabeko Botan on Ravelry

Have a great weekend!

Fave Friday

Pegboard yarn storage idea from Knits for Life

Maneki Neko tote bag

DIY vanilla latte coffee scrub from A Beautiful Mess

"I met Li'l Sebastian at the Pawnee Harvest Festival" shirt from Look Human

Airstream Silver Bullet cat house

Have a great weekend!

Fave Friday

I'm a day late. We're living in a topsy-turvy world and I've been spending too much time poking at my new Apple Watch. Here are some of my favorite things from this week, a week that's been keeping me up at night and making it hard to breath from the anxiety. As a doctor I feel I must prescribe some fun and cute things to make us all feel just a tiny bit better as the world changes for the worst. On to the cute!

This ultra adorable Bulbasaur planter by 3DprintJess on Etsy

And this super cute 3d-printed Oddish planter, by 3DprintJess on Etsy

Super cute crochet basket pattern by AllAboutAmi on Etsy

This absolutely genius Mac Plus style Apple Watch stand, on Amazon*

These super cute baby balaclavas, by Jenny Nicole on Ravelry

Stay strong, everyone. 💖

* I use affiliates links on this site. If you shop using this link I get a small percentage of the sale from Amazon. This helps me maintain this site. Thank you for your support!

Deleting and recreating the login keychain via Self Service

In Andrina Kelly's great JNUC 2013 talk, she included a handful of examples of how to use Self Service to give customers the ability to self-solve recurring issues. One of the examples is recreating the login keychain. Her script is on Github here. It gets the currently logged-in user, detects their login keychain, then deletes it and creates a new one. This requires the user's password, which the script prompts for using cocoaDialog.

I've wanted to get something similar going at my workplace, but I've been trying to avoid deploying cocoaDialog to machines as all of our machines already have jamfHelper and AppleScript available. It seems like overkill to install yet another dialog tool if I can get the ones already there to do what I want.

Based on my previous work (which is in turn based on Elliot Jordan's) I decided to utilize jamfHelper and AppleScript to do the heavy-lifting of prompting for the password and passing it along.

From the user's point of view, it will work like this:

They'll open Self Service, and find the Fix Keychain policy (or whatever you want to call it).

Happy Holiday Time

Hey y'all, you may have heard that some holiday of some kind is coming up soon. Whether or not you celebrate I hope you have a wonderful end of the year and enjoy some kind of festivities that bring you joy. If there aren't festivities this time of year that bring you joy, maybe these pictures of my cat Charlie in festive kitty things will bring a smile to your face.