Let Stacks keep your Dock tidy
Just as desktops get cluttered because they're handy, and an easy place to put and find things, the Mac OS X Dock gets easily cluttered with every application that you might want to launch at the click of a button. A cluttered dock means it may take so long to find the (tiny) icon you're looking for that you may as well have opened your application folder and searched through. But come to mention it, the Applications folder gets rather cluttered too. You can move things around, but so many programs assume that Safari and other standard applications will be sitting right there in the Applications folder. Is there a better way to group applications sensibly, without using any special software?
With Leopard's new Stacks feature, I believe there is.

2. Then create theme-based folders for every other application you want close at hand. A stack is just a folder dragged onto the Dock, so we'll create the folders first. Create folders somewhere, like your Applications folder or Documents folder. I have folders for 'Utilities', 'Internet', 'Media', and document creation.
3. Fill these folders with aliases of the appropriate applications. Do this by holding the Command and Option keys as you drag a file from the Applications folder to put an alias/shortcut of that file in the destination folder, instead of moving or copying it.
4. When you have filled your theme-based folders, drag them onto the end of the Dock near the Downloads Stack and Trash (but not IN the Trash!) In the past you would have had a bunch of identical folder icons there, but now the Stack takes on a conglomeration of icons from the contents of each folder.
5. Click once on a stack and it opens out quickly. Click once and you launch the application. Click the wrong stack by mistake? Just click the one you want without having to click the first one closed. It's one more click than having everything in the Dock separately, but since icons are grouped more logically and icons can be bigger, it's actually miles more efficient.
6. But what to do with the special Apple icons? Time Machine, Spaces, Dashboard and Expose all have Dock icons which are not normal applications. The good news is that you can get hold of them from the Applications folder and drop them in a Stack, then remove them from the Dock. After all, Time Machine is almost automatic, Spaces, Dashboard and Exposé can be triggered from the keyboard more conveniently anyway (with the F8-12 keys) so they're just extra clutter. But it might be nice to keep the icons around.
NB: You do lose a little functionality that the Dock icons provide in their contextual menus if you follow this method, but nothing really significant in my eyes. Control-click on the dock icons before you delete them and see if you'd really miss any of the functions there. Since 10.5.2 there's a Time Machine menu item now, which gives you back any functionality lost with the demise of the Dock icon. That seems to make more sense anyway.
Finally, you can control-click on the stacks to change the order the icons are sorted, which may be helpful, and affects the order of the conglomerate icon visible on the Dock.
David got paid $20 for this tip. If you know a good Mac tip, why not submit it to the site.
Temporarily change Dock magnification settings
If you normally have Dock magnification turned off, holding Control and Shift while moving the mouse along it will temporarily turn on magnification. As soon as you let go of the keys, the magnification will turn back off again.

The Dock will magnify based on the settings in the Dock section of System Preferences, which you can only change when magnification is turned on. As a result you'll have to turn it on, choose your preferred magnification level and turn it back off again.
The keyboard shortcut works the other way round too. If you normally have magnification on, holding Control and Shift will temporarily turn it off.
I'm not sure how useful this feature is, but it's interesting none the less.
Disable the Dock icon for any Application
Luckily, if it is a cocoa application, you can hide the Dock icon yourself. To see if it is possible, right-click (Control-click) on the application icon. If "Show Package Contents" is in the menu that appears, you can hide the icon in the Dock.
If this is the case, select "Show Package Contents" and look for the "Info.plist" file inside the Contents folder. Open this file using TextEdit by right-clicking on it and choosing "Open With - Other" from the menu.
In the file, paste the following two lines just after <dict> on the 6th line:
<key>LSUIElement</key><string>1</string>Save the file and close it. For the changes to take effect, you need to move the application to the desktop and them back to its original location (OS X keeps a cache of the file, so you need to trick it into checking it again).
Now when you open the application, no icon will appear in the Dock. I wouldn't recommend doing this with your regular applications like iTunes and Safari as this also has the side-effect of disabling the menu bar. This means that you will have to quit the application using the keyboard shortcut Command-Q. If the application doesn't have any windows, you will have to quit it from Activity Monitor (in Applications/Utilities).
To bring back the Dock icon, simply open up the Info.plist file and remove the lines you added.
If you are too lazy to do this yourself, FoggyNoggin Software has created an application called Dock Dodger that automates the process.
Change the Image in the Tile Game Widget
Luckily, changing the image is easy. Start by finding an image in iPhoto or the Finder to replace it. To avoid stretching, go for an image that is roughly square. Now click on the image and hold. While holding down the mouse button, press F12 to load up Dashboard. Now simply drag and drop your image onto the Tile Game.

The great thing about AppleScript is that this can be achieved with a few lines of fairly legible code.

Alternatively, the more adventurous can download the AppleScript to see how it works. Paste the script into Script Editor (in Applications/AppleScript) and click Run. If you can think of any improvements or you notice any mistakes, let me know.
Drag Chunks of Text onto Dock Icons
Doing this with different applications will produce different results. If the application will accept the text, it will darken when you hold the selection over it. Note that some applications will only accept the text if it is in a certain format (a web address for example). Here are the results with a few common applications. If you know of any more, add them in the comments.
1. Safari - If you drop a web address (i.e. something that starts with http://) on Safari, it will load up that address. If you drag any other bit of text, it will perform a Google Search on it. This is mainly useful if the text is from a non-cocoa app that doesn't have the "Search in Google" item in the right-click context menu.
2. Firefox - If dropped text is a web address, Firefox will load it. This is helpful if you want to view a site in a browser other than your default browser.
3. Mail - A new message will load up with the dropped text as the main message body. Annoyingly the text is placed in the body even if it is an email address.
4. TextEdit - As expected, this loads a new document containing the dropped text.
5. Skype - If the dropped text is a phone number, Skype will call it. This will also work with nicknames in your contact list.
6. Script Editor - A new script window will open up containing the dropped text. Script Editor will then attempt to compile it.
7. iTunes - If you drop a podcast address onto iTunes, it will subscribe to it. If the address isn't a podcast, iTunes will attempt to do it anyway (and fail).
8. Acquisition - Starts a new search with the dropped text.
9. Newsfire - Adds a new feed with the text as the address. (Why not try it out with http://feeds.feedburner.com/macosxtipsfeed )
10. Stickies - This will make a new Stickies note containing the text open up.
11. Dictionary - This will show you the definition of the dropped word. If you drop a selection of words, Dictionary will display the definition of the first. (In cocoa apps, it's probably quicker to use this keyboard shortcut).
Most of these also work if you drag the text to the desktop to create a text clipping first, and then drag it to the Dock icon.
Create a Drives Menu in the Dock

The work around for this involves creating a folder action using AppleScript to make a self-updating Dock pop-up menu. Start by opening up Script Editor (located in Application/AppleScript). Paste the following script into the window that appears:
property script_folder : ((path to documents folder) as string) & "Drives"
on run
tell application "Finder"
if not (exists alias script_folder) then
make folder at folder ((path to documents folder) as string) with properties {name:"Drives"}
end if
end tell
Update()
end run
on adding folder items to this_folder after receiving added_items
Update()
end adding folder items to
on removing folder items from this_folder after losing these_items
Update()
end removing folder items from
on Update()
tell application "Finder"
set theFolder to folder script_folder
delete every item of theFolder
set theDisks to disks
repeat with i in theDisks
make new alias at theFolder to i
end repeat
end tell
end Update
Click Compile (the Hammer icon) and then click Run. The first time you run this script it will create a folder named "Drives" in your Documents folder and put an alias to every drive in it. You can drag this to your Dock and you will have a Drive pop-up menu that allows you to navigate through all of your mounted media. However, the list in the menu only updates when the script is run. This is where Folder Actions come in to make the script run every time a new drive is mounted or a drive is removed.
Save the script to your desktop and then go to your user folder and navigate to Library/Scripts/Folder Action Scripts/. You may need to create these folders if they don't already exist. Drag your script from your desktop over to here. Now we have to attach it to the Volumes folder.

As described earlier, to get to the Volumes folder choose "Go To Folder" from the Go menu and enter /Volumes. Right click (Control Click) on the icon and choose "Enable Folder Actions" (If folder actions are already enabled this will say disable - don't click it!). Then right click again and choose "Attach a Folder Action". Choose the script you saved earlier.

If you haven't already dragged the "Drives" folder from your Documents folder to the Dock, do so, and then you're done. Note that every time the list updates it moves the old list to the Trash, so if you insert and remove CDs, external Hard Drives, iPods etc. often, the Trash will get quite full. You might also want to change the icon of the Drives folder to something a bit nicer than the standard folder icon.
Hidden Exposé Features
To enable the blob, enter the following command into the Terminal (Applications/Utilities) and hit return.
defaults write com.apple.dock wvous-floater -bool trueNow you need to relaunch the Dock, which contains the Exposé program. This can be done from Activity Monitor (also in Applications/Utilities) but it is much easier to just type the following into the Terminal and press return.
killall DockNow a blue blob should appear on your screen. Notice that it hovers above all other windows, and you can drag it about. It is semi-transparent until you put your mouse over it, when it becomes fully opaque. Now there are a few things you can do with this blob. Just clicking it will do the equivalent of hitting F10 - it will activate Exposé for all windows in the current application. Option-clicking is the same as F9, Exposé for all open windows. You can add in shift (Shift-Click or Shift-Option-Click) to make everything happen in slow motion, just the same as if you were using the F9 and F10 keys.


To remove the blob, repeat the above command but with false at the end.defaults write com.apple.dock wvous-floater -bool false
As before you will need to relaunch the Dock for the changes to take effect.killall Dock
methodshop.com has a great tutorial on how to customise the blob to be a different image. This isn't too tricky, and basically involves looking inside the Dock application and replacing two images. Mac OS X Hints has a great idea of a prank to play using the blob. By changing it to look like the Hard Drive icon you can really confuse someone.

defaults write com.apple.dock wvous-showcorners -bool trueYou will need to type
killall Dock for changes to take effect and repeat the command with false at the end to reverse it.This final undocumented feature is part of the show desktop function that you start by pressing F11. Instead of moving all the windows off the sides of the screen, Exposé will now put all of your open windows into a small box that can be moved around the screen.
defaults write com.apple.dock wvous-olddesktop -bool falseThis is arguably the most interesting hidden feature for Exposé, however, be warned that it has some bugs. After using the show desktop function, the front window can freeze. Mostly this can be fixed by pressing F9 (the show all function). Of course you have to do the usual
killall Dock command to make the changes happen and type the command again with true at the end to reverse it.Top 15 Terminal Commands for Hidden Mac OS X Settings
You'll find the Terminal in the Utilities folder within the Applications folder. To carry out any of the following commands you will need to copy/paste or type in the line of text then hit enter. For the most part, applications will need restarting before changes take place. For most applications you can just quit and open them again, and for the Finder you can use the Force Quit dialog, just log out and log in again or type "killall Finder" into the terminal after the command.
Feel free to add any of your favourites in the comments.
1.
defaults write com.apple.Dock showhidden -bool YESMakes hidden applications' dock icons translucent. NO to reverse.
![]()
2. defaults write com.apple.iTunes invertStoreLinks -bool YES
Normally the arrows next to artists and albums in your iTunes library search the iTunes store when you click them. This command changes them so that clicking will search your iTunes library instead. Put NO at the end to reverse.
3.
defaults write com.apple.dashboard devmode YESThis allows you to drag widgets out of Dashboard onto the desktop. Requires the dock to be relaunched to take effect, so type "killall Dock" and press enter. Now, if you click and hold onto a widget in the dashboard and press F12 to return to the desktop, the widget won't disappear with the rest. Put NO at the end to reverse.

4. defaults write com.apple.mail PreferPlainText -bool TRUE
Forces all mail to be displayed as plain text. Replace TRUE with FALSE to reverse.
5. defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE
Sets expanded save dialogs as default (showing column/list view of folders rather than a drop down menu). Replace TRUE with FALSE to reverse.
6. /System/Library/Frameworks/ScreenSaver.framework/Resources/ ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
Displays the currently chosen screen saver to be shown as the desktop background. Press Control-C or Command-. to stop. More details here.
7. defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo SystemVersion
Displays useful system stats in the login window. More details here. Replace "SystemVersion" with one of the following for different stats:SystemBuild SerialNumber IPAddress DSStatus TimeHostName
8. sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add shortname1 shortname2 shortname3
To remove accounts from the login window type this command with the short name of each account you wish to remove. More details here.
9. com.apple.frameworks.diskimages skip-verify TRUE
Skip disk image verification. Potentially risky, use with disk images from trusted sources. Replace TRUE with FALSE to reverse.
10. defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBothPuts double scroll arrows at both ends of scroll bar. Use Appearance pane in system preferences to reset.
![]()
11. defaults write com.apple.CrashReporter DialogType none
Disables the unexpectedly quit dialog that normally appears when an application crashes. Replace "none" with "prompt" to enable again.
12.
defaults write com.apple.Safari WebKitHistoryItemLimit 2000 and/ordefaults write com.apple.Safari WebKitHistoryAgeInDaysLimit 30Sets the history limit in Safari to a certain number of items and and/or a certain age.
13.
defaults write com.apple.finder AppleShowAllFiles TRUEShows hidden files in the finder. Replace TRUE with FALSE to hide hidden files again
14.
defaults write com.apple.safari IncludeDebugMenu 1Enables the debug menu in Safari. Type again but with 0 instead of 1 at the end to disable.
15.
defaults write com.apple.dashboard mcx-disabled -boolean YESDeactivates Dashboard. Requires the dock to be relaunched to take effect, so type "killall Dock" and press enter. Replace YES with NO to enable again.
Open at Login Shortcut
Translucent Icons for Hidden Programs
However, when you do that, there is no way to tell that an application is hidden by looking at the dock. The icon remains fully visible, unchanged from when the application was in view. With lots of applications open, it gets quite hard to tell which applications are hidden and which aren't.
By modifying a small setting, you can make the Dock show which applications are hidden by displaying them as a semi-transparent icon. To do this, open up the Terminal (Applications/Utilities) and type the following:
defaults write com.apple.Dock showhidden -bool yesand press enter.
For this change to take place, you have to relaunch the Dock, using Activity Monitor. Do this by loading up Activity Monitor (Applications/Utilities) and typing dock into the search field. Quit the process named dock.
To cancel this change, and return the icons to normal, repeat the above command in the terminal, but replace yes with no.
A simpler and friendlier way to do this is to use Tinkertool, a free utility for changing hidden settings in Mac OS X. This page of screenshots offers a quick way of viewing all the features it has to offer.
From the Tinkertool Site:
TinkerTool is an application that gives you access to additional preference settings Apple has built into Mac OS X. This allows to activate hidden features in the operating system and in some of the applications delivered with the system.
Reveal in Finder
Less obviously, Command-Clicking on an icon in the Dock will do just the same. But it doesn't end there. Command clicking has a similar effect when clicking icons in other places.
For instance, in the title bar of any cocoa app, you will see the name and icon of the open file. Command-Clicking on the icon brings up a list of all the enclosing folders.
Another example that could save you hours of wasted time, is command clicking spotlight results. This one is especially useful, as the other option (clicking on show all, finding the result, right-clicking and selecting show in finder) takes a long while in comparison.
(via TUAW)
App Switching in Exposé
Once you have started exposé (by pressing either F9 or F10) you can cycle through your open applications by pressing the tab key. Each time you press it, the current application is hidden and the windows for the next one pop up.
As with most things in Mac OS X, the way to do things always turns out to be beautifully simple and what you would expect. As a result, pressing Shift-Tab cycles through the open applications in the opposite direction, just the same as if you were "tabbing" through anything on your mac.
Run a widget without installing it
However, in some situations you don't want to move the widget. For instance if you are trying out a widget and don't know if you want to keep it, or you are developing a widget and are just testing it out. To stop the widget being installed, hold down Command and Option while double-clicking it. Instead of an install button, you are presented with Run, which, funnily enough, allows you to run the widget without installing it.
Clicking this opens the widget up in dashboard, but it isn't moved to the widgets folder, instead running it from wherever you downloaded it to.
As a result the widget won't be in your dashboard bar, so it is a nifty trick if you want to save scrolling through loads of widgets (especially if you are a dashboard addict). This also means that once you have closed the widget, its gone for good, and you can't open it up from within the dashboard. Of course its still sitting in your downloads folder, so a quick Command-Option-Double-Click will have it open and running again.
Remove the Dock
A much better solution is to move the dock to the top of the screen and then hide it - making it invisible, but still around.
The easy way to do this is to download a copy of Tinkertool (free) that allows you to modify lots of hidden preferences.
The more hardcore solution is to use the terminal. Before you start, make sure Dock hiding is off by going to the apple menu, choosing Dock then "Turn Hiding off" . Alternatively open up the dock section of system preferences and turn hiding off there, or control-click on the gap in the middle of the dock (or even press Command-Option-D).
Then launch the terminal (Applications -> Utilities) and type
and press enter. Nothing will happen at first, until you log out then in again or restart the dock process in Activity Monitor (Applications -> Utilities).defaults write com.apple.Dock orientation -string top
Once you do this you should see your Dock appear at the top of your screen, and all you need to do is turn hiding off again, and your Dock will be invisible, only activating if you hover over a very thin line below the menu bar.




