Reading Safari's LastSession.plist

Is it just me, or does everyone see this message when quitting Safari:

"Do you really want to Quit Safari? You have a 400 Windows open that contain a bajillion tabs!"

Yeah, I can keep going down the rabbit-hole of links as good as the next person. But that doesn't mean I don't ever restart my machine (on purpose, or, thanks to unstable code). When Safari gained the ability to "Reopen all Windows from Last Session," I was extremely pleased. Let's face it: Safari can sometimes die unexpectedly.

Safari stores all of these windows and URLs in ~/Library/Safari/LastSession.plist. I rely on it a lot.

Because I want to trim down the number of tabs I have open (honestly: I can't be paying attention to all of them, and, there is one in there that made Safari crash in the first place), I'll try to start fresh, rather than reopen all windows. Also, I don't want a crashy tab popping back into the mix. But I do want to know what URLs I had open. Enter readLastSession, a Python script.

For now, I've just attached it here - it may go up on github or something soon. Just download it and run it. Use the -h flag for help. It can either write each URL to the screen or out to .webloc files. Or both - your choice.

Enjoy, and let me know if you use it, and/or want changes and improvements.


Filename/TitleSize
readLastSession.2.78 KB

10.6 iDisk Local Sync Location

I can't seem to find this documented plainly anywhere, so, now it will be: when you set your MobileMe iDisk to sync locally, it now creates a sparsebundle disk image in:

~/Library/FileSync/(FS_identifier)/(MobileMe_username)_iDisk.sparsebundle

You may want this information so you can exclude this path from backups or know how to mount the image manually.

C4[3] Finished Up

It's a strange mix of being the best kept secret and the most difficult to get into events, but the Chicago-based C4 Apple-centric developer conference just wrapped up today. I was lucky enough to attend, and lucky enough to be around the breed of people that take the time to put together and themselves attend a meet up like this. I'll be writing up an article for MacTech Magazine about the event, but huge thanks need to go to Jonathan 'Wolf' Rentzsch (http://rentzsch.com/) for having the vision and passion to put everything together.

The talks were brilliant, many in line with what I already practice or recommend. Others helped germinate my brain cells and help recharge me.

Twitter is the main method of communication during the show, even to the point of having your twitter icon and id put onto your badge. Many people recognized me simply because of my Dark Castle twitter icon. It was fantastic to put faces to names and meet up with people that had previously only been ones and zeros.

Thanks again to everyone who spoke or otherwise helped put together the event.

Some pictures from the event are here: http://www.flickr.com/groups/1196053@N25/pool/

(The panorama above was taken with my iPhone 3G and stitched together with Hugin (http://hugin.sourceforge.net).

Presentation: Dev Tools for Sys Admins, Wed, 2 Sept 2009

I'll be giving a presentation at the Tri-State meeting of the Apple Consultants Network titled, "Dev Tools for Sys Admins." I'll be recording this talk and have attached some resources here for those attending. Bring a laptop as portions will be hands-on.


Filename/TitleSize
Dev_Tools_Resources.pdf37.24 KB
devtools_talk.tar_.gz1008 bytes