Tag Archives: boolean

Mac OS X Mac OS X Server Mac Security Mass Deployment

Disable the Go To Folder Menu Item

For many environments, securing OS X is basically trying to make the computer act more like an iOS device. Some of the easier tasks involve disabling access to certain apps, sandboxing and controlling access to certain features. One of the steps en route to building an iOS-esque environment in OS X is to disable that Go to Folder… option. To do so, set the ProhibitGoToFolder key as true in com.apple.finder:

defaults write com.apple.finder ProhibitGoToFolder -bool true

Then reboot, or kill the Finder:

killall Finder

To undo, set the ProhibitGoToFolder as false:

defaults write com.apple.finder ProhibitGoToFolder -bool false

Mac OS X Mass Deployment

Enable the Debug Menu in the Mac App Store

The Mac App Store has a debug menu. To enable the debug menu, enable the ShowDebugMenu key in com.apple.appstore. To do so:
defaults write com.apple.appstore ShowDebugMenu -boolean YES
Once enabled, there are a number of options to show the folder where apps download, enable logging, clear cookies and reset the Mac App Store.
To turn the Mac App Store debug menu back off:
defaults write com.apple.appstore ShowDebugMenu -boolean NO
Mac OS X Mac OS X Server Mac Security Mass Deployment

Controlling Saved Application States

When Lion was new, I put up a post about clearing out information on saved applications states. Saved application states are a new feature in Lion that remembers the screens that were open and where each was when you quit applications. The reason for that post was that those states were causing a few minor issues with applications.

There are a few applications that the saving of application states is really awesome for. I think it will mostly be different for each persons workflow. Personally I like saving the state of Terminal, Safari and a few others. However, the state of some others can be a bit annoying for me. For example, Word.

Luckily, you can control which applications have saved states and which do not. To do so, first find the application in ~/Library/Saved Application State. These usually are the bundleid of the application followed by .savedState. Using the bundleid (or whatever is listed if not the bundleid), you’ll then send a NSQuitAlwaysKeepWindows key to the defaults domain for that id with a boolean setting of true or false. For example, to disable the saved state for Microsoft Word:

defaults write com.microsoft.word NSQuitAlwaysKeepsWindows -bool false

To re-enable it, just send a true value into the same key:

defaults write com.microsoft.word NSQuitAlwaysKeepsWindows -bool true