Dock/Exposé/Dashboard

Add Spacers to the Dock

If you want to divide the applications in your Dock into groups, the best way is to add spacers. A common method is to create "fake" applications with an invisible icon to fill the space, but that is a bit inelegant. A much better way, available in Leopard, is to use a Terminal Command. Each time you run the command it inserts a blank "space" into your Dock, which you can then drag around to where you like.

Start by opening up Terminal, located in Applications/Utilities. Type the following line and then hit enter:

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

For the changes to take effect you will have to restart the Dock, either by logging out and in again or by running the killall Dock command in the Terminal. The spacer appears at the end of the icons that are permanently in the Dock. You can then drag it along to where you want it.

Dock Spacers

The above command inserts the spacer on the applications side of the Dock. To insert a spacer on the right hand side, use the following command:

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

As always, you will have to run killall Dock for changes to take effect. To add multiple spacers just run the command again and again. Note that you can use the "up" arrow in terminal to automatically enter the last run command.

If you want to remove a spacer, treat it like any other icon in the Dock. Either drag it off and let go to get a nice puff of smoke, or right-click on it and choose "Remove from Dock".
|

Make the Dock appear when it refuses to show

Eject Disk Image Dock
If you have you Dock set to automatically show and hide, you make have noticed that occasionally it refuses to appear when you are dragging an icon onto it. This drives me crazy when I am trying to eject disk images. I drag the icon down to the bottom of the screen, but the Dock simply doesn't appear. Normally my solution is to give up, right-click on the icon and choose eject, which takes far too long. While looking for a better way, I found a brilliant tip on the MacTipper blog.

Simply use the keyboard shortcut Command-Option-D, which turns on/off Dock hiding. You don't even have to stop dragging your icon to do this, and it works whatever application you are in.

Next time the Dock fails to appear, while still dragging your icon, simply hit Command-Option-D and the Dock should spring up. Drop your icon onto the trash (or eject icon, or whatever you want), and then just hit Command-Option-D again to make the Dock disappear again.
|

Let Stacks keep your Dock tidy

This tip was submitted by David.

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.

Media Stack
1. Keep only 2 or 3 icons in the dock for applications like iCal, Safari and Mail that you access most frequently.

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

Here's a quick tip about a keyboard shortcut new to Leopard (OS X 10.5) that I didn't know about.

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.

Dock Magnification

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

There are many applications on your Mac that don't need a Dock icon. Having a Dock icon for applications that are accessed through a menu bar item or constantly run in the background would just waste space and clutter up your Dock. Many applications like this automatically hide their Dock icon (Google Notifier, Quicksilver) however some don't (Launchbar, HardwareGrowler).

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

Amongst the widgets that come with Mac OS X is the Tile Game. You shift around the tiles to reveal an picture of a tiger. If you play the Tile Game often, you might find the tiger image a bit boring.

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.

Tile Game Widget
Annoyingly, the image will change back to the tiger if you close the widget. Permanently changing the image is a bit more complicated. It essentially involves replacing an image file hidden within the widget file. If you are familiar with delving into package files, this is quite straightforward. The image you want to replace is called game.png. However, if you aren't used to doing things like this, the easiest way is using an AppleScript.

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

Tile Game Widget
For the lazy people, you can just download a clickable application I made. When you open this, you will get a dialog asking you to choose a new image.

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

You probably know that you can drag and drop chunks of text around Mac OS X. For example you could select and drag a paragraph from Safari to TextEdit. It's also fairly well know that you can drag files onto application icons in the Dock to open them in that application. Less well known is what happens when you drag bits 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

In the Dock you can use the section to the right of the divider to store folders. Many people choose to put their user folder or Hard Drive here for easy access. One of the greatest benefits is that you can right click (Control click) on the icon to get a handy pop-up menu containing the contents of the folder. From here you can navigate through to any file contained within.

Volumes Pop-up
This works great, apart from with the Volumes folder. If you don't already know, the Volumes folder contains your Hard Drive, CDs, DVDs, Disk Images, iPods, iDisks and any other mounted media devices. To get to this folder, choose "Go To Folder" from the Go menu and enter /Volumes. You'll find that if you put this folder in the Dock you can still right-click to view the pop-up menu, however you can't navigate into any of the drives apart from your startup disk (Probably Macintosh HD).

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.

Picture 3

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.

Drives Pop-up in Dock

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

The Exposé blob is a hidden feature within exposé that sits on your desktop and allows you to invoke Exposé by clicking it.

To enable the blob, enter the following command into the Terminal (Applications/Utilities) and hit return.
defaults write com.apple.dock wvous-floater -bool true

Now 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 Dock

Now 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.

Transparent Exposé BlobExposé Blob

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.



Show Hot Corners
The blob is probably the most stable and most useful of the hidden features, but there are others. The following command makes small semi-circles appear where you have hot corners set.
defaults write com.apple.dock wvous-showcorners -bool true

You 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 false

This 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

There is a huge amount of hidden settings for Mac OS X and its applications that aren't accessible from preferences dialog boxes or the System Preferences. Applications such as Tinkertool and Mac Pilot allow you to access some of these, but the real flexibility is from the Terminal. From here it is possible to edit any preferences file for any application on your Mac.

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 YES
Makes hidden applications' dock icons translucent. NO to reverse.

Translucent dock icons hidden applications


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 YES
This 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.

Dashboard Widget on Desktop


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
Time
HostName

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.

Horizontal Scroll-bar


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/or
defaults write com.apple.Safari WebKitHistoryAgeInDaysLimit 30
Sets the history limit in Safari to a certain number of items and and/or a certain age.

13. defaults write com.apple.finder AppleShowAllFiles TRUE
Shows hidden files in the finder. Replace TRUE with FALSE to hide hidden files again

14. defaults write com.apple.safari IncludeDebugMenu 1
Enables 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 YES
Deactivates Dashboard. Requires the dock to be relaunched to take effect, so type "killall Dock" and press enter. Replace YES with NO to enable again.


Picture 2A business software can be easily run on a mac operating system. You can avail a proper distance learning through the use of ip phones. Getting yourself enrolled in certifications like 220-601, will help you gain extra knowledge. You will be aware of the usefulness of a backup of your system. It's time you started thinking on the numbers 646-002.

|

Open at Login Shortcut

Here's a quick tip. Normally to make an application load at login, you have to open up System Preferences, go to Accounts and add a new login item. To quickly skip this stage out, right click on an application in your dock and choose "Open at Login". To undo this, just repeat the process.

Picture 2

|

Translucent Icons for Hidden Programs

Pressing Command-H will hide your active application. That is, all the windows of the program will become invisible and allow you to see the application underneath, or the desktop. This can also be achieved by choosing hide from the menu with the name of the application.

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 yes

and 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

Its not hard to notice that Right-Clicking (Control-Clicking) on an item in the Dock brings up a menu with the option to "show in Finder", which essentially opens up the enclosing folder of that Application or File.

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é

This is one of those amazingly simple tips that can become so useful that you can't imagine how you survived without it. By now most people know hitting F9 will activate exposé for all applications, and F10 will activate it only for the application you are currently using.

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

Normally when you download a widget (see some of mine here) and double-click it, you are presented with a dialog to install the widget. You can either cancel, and exit the installer, or click install, and the widget is moved to you widgets folder (Library/widgets).

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

If you are are one of those people who hates the dock, you probably already know it is fairly easy to remove it for good. However when you do this you also lose other features such as Exposé, Command-Tab switcher and Dashboard.
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

defaults write com.apple.Dock orientation -string top

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).

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.
|