Subscribe RSS

Archive for the Category "OS X Tips"

Tidying the Mac OS X Dock Sep 24

Add an empty space to your dock to split the icons up a bit. You can add as many as you like:

defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock

Category: OS X Tips, Useful tidbits  | Tags: ,  | Leave a Comment
Safari Develop Menu Sep 24

To activate the Safari Develop menu,used for debugging, simply type this in terminal and relaunch Safari:

defaults write com.apple.Safari IncludeDebugMenu 1

Category: OS X Tips  | Tags:  | Leave a Comment
Mirosoft Word Serial Hell Sep 07

So we have loads of copies of Office x (and 2004). But no one knows what serial is on what mac. And you cant view what serial you have. And you cant change it… and we lost the list of who had what

So, we were going to delete and reinstall everyones copy, but it turns out you can get Office to ask for the serial by deleteing a load of stuff like this:


rm /Applications/Microsoft\ Office\ X/Office/OfficePID
rm ~/Library/Preferences/Microsoft/Carbon\ Registration\ Database
rm ~/Library/Preferences/Microsoft/Office\ Registration\ Cache\ X
rm ~/Library/Preferences/Microsoft/Microsoft\ Office\ Settings\ \(10\)

This also works for 2004 – just change the paths accrodingly.

Category: OS X Tips  | Tags: , ,  | Leave a Comment
Mac Fonts and Resource Forks May 13

Mac OS does something weird with some font files. Basically it stores the data in two separate places which means that copying using scp or rsync tends to fail. This use of resource forks makes it incredibly difficult to copy these files without using the Finder.

RsyncX HFS is one option, its a version of rsync that supports resource forks.

Another option though is to use the command line utility ditto. This comes with OS X and essentially allows you to compress all of the files into a single copyable file. You can use it like this, but you could rtfm.

Create an archive:

ditto -c --rsrc SourceDirContainingFonts AnyOldFileName

You could then zip that (although ditto may support compression… rtfm), scp it to another location. To unarchive simply:

ditto -x --rsrc AnyOldFileName DestinationDir

You can do the archie-copy-unarchive in one go too:

ditto -c --rsrc SourceDirContainingFonts - | ssh user@host 'ditto -x --rsrc - DestinationDir'

Obviously, you can use this for anything, not just fonts. But its fonts that caused me the grief!