Terminal Commands for Hidden Settings in Leopard

Back in March I did a tip listing 15 Terminal Commands for Hidden Mac OS X Settings. Since Leopard has been released, there are a whole load of new ones so I thought I'd do another list.

In general, these will only work with Leopard. I have slipped in a few that will work with Tiger, but you should check out the old list for commands that will definitely work.

If you don't already know, here are some quick instructions of how to use them: You'll find 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. Most of the commands change settings that can't be done through the application or system preferences.

For the most part, applications will need restarting before changes take place. For the Dock and the Finder, it isn't obvious how to do this. The easiest way is to type a second command into the Terminal afterwards. Type "killall Dock" followed by return for all the Spaces, Stacks and Dock commands. "killall Finder" followed by return for all the Finder related ones.

Spaces

defaults write com.apple.dock workspaces-edge-delay -float 0.5

Changes the delay when dragging windows off the edge of the screen to other spaces. Default value is 0.75.

defaults write com.apple.dock workspaces-wrap-arrows -boolean NO

Disables the wrap-around when using Control-Arrow keys to changes Spaces. To enable again, repeat with YES at the end.

Spaces



Stacks
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }’

Creates a Recent Applications stack in your Dock, that you can change to display other recent items. To remove it, use the command defaults delete com.apple.dock persistent-others but be warned, this will remove all your stacks.

Recent Items Stack



defaults write com.apple.dock mouse-over-hilte-stack -boolean YES

Adds a Mouse Over gradient to items in your stacks. To disable, repeat with NO at the end.

Dock
defaults write com.apple.dock no-glass -boolean YES

Change to 2D Dock. To change back to 3D, prepeat with NO at the end.

defaults write com.apple.dock tilesize -int 256

Allows you to increase the size of the Dock past the maximum allowed by the slider in System Preferences. Don't go larger than 256. Use the slider in System Preferences to shrink the Dock down again.

defaults write com.apple.dock largesize -int 512

Allows you to increase the Dock magnification past the maximum allowed by the slider in System Preferences. Don't go larger than 512. Use the slider in System Preferences to shrink the Dock down again.


defaults write com.apple.dock enable-spring-load-actions-on-all-items -boolean YES

Makes all items in the Dock spring loaded. For example, hold a file over an application and it will open or come to the front so you can drop the file onto a specific window. Repeat with NO to reverse.

Finder
defaults write com.apple.finder FXListViewStripes -bool FALSE

Removes the stripes in list view. Repeat the command with TRUE to reverse.

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user

Resets the "Open With" menu, clearing duplicates. The command is different from the one in Tiger.

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Changes the title of a window to its full path. Repeat with NO to reverse.

Window title path



Spotlight
sudo chmod 0 /System/Library/CoreServices/Spotlight.app

Disables the Spotlight icon. Type "killall Spotlight" for changes to take effect. To re-enable it, type 755 instead of 0.

Time Machine
sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 7200

Changes Time Machine's backup interval. Requires an administrator password. Default value is 3600 (seconds).

iCal
defaults write com.apple.iCal IncludeDebugMenu YES

Enables the Debug menu in iCal, just like the Safari one. Repeat with NO at the end to disable.

Safari
defaults write com.apple.Safari DebugConfirmTossingUnsubmittedFormText NO

Disables the warning given when closing a window with text entered into a form that you haven't submitted. To bring back the warning, repeat the command with YES.

Check out this article for more Safari 3 tips.

Menubar
Changing the menubar will require an administrator password and you will need to restart the Mac for changes to take effect.

sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CI_NO_BACKGROUND_IMAGE' 1

Remove translucency in menubar, turns it white.

sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CI_NO_BACKGROUND_IMAGE' 0

Removes translucency in menubar, turns it grey.

sudo defaults delete /System/Library/LaunchDaemons/com.apple.WindowServer ‘EnvironmentVariables’

Reverts back to default translucent menubar.

All Applications
defaults write -g PMPrintingExpandedStateForPrint -bool TRUE

Applications use the expanded Print dialog by default. Similar to the expanded Save dialog in earlier OS versions. Repeat with FALSE to reverse.

Comments

Get to grips with the "Open With" menu

When you double-click a file it will open in the default application, which is fine for most situations. Often, each file format corresponds to a single application. Word documents open in Microsoft Word, MP3s open in iTunes and movies open in Quicktime Player. But there are times when you might want a file to open in a different application. For example, you might want a image to open in Photoshop rather than Preview, or a Word document in TextEdit instead of Microsoft Word. In this situation, you have a few options.

Firstly, if the application is in the Dock, you can simply drag the file onto its icon in the Dock. Alternatively you can open up the application first, and choose "Open" form the File Menu. A third method is to use the "Open With" menu. You will find this by right-clicking (Control-clicking) on the file and looking near the top of the contextual menu. Within the Open With submenu you will find every application that can open the file, as well as an "Other" option.

Open With Menu



When you use the Open With menu, it is a "this time only" thing. Next time you double-click on the file, it will open with the default application again. To change the default application, bring up the menu as before, but hold down the Option key before choosing the application. The menu should change to "Always Open With".

When you use the Always Open With menu, it is a "this file only" thing. To apply a new default application to all files of that format, you can use the Get Info window located in the File Menu. In the Open With section, set the new application and click the "Change All" button.

To reset all of your files to open with the original default application, you need to delete a certain file. Go to your user folder, and navigate into the Library folder then into the Preferences folder. Find the com.apple.LaunchServices.plist file, and drag it to the Trash. Alternatively, drag it to the Desktop if you think you might change your mind and want to put it back later.

Over time, you may find that the Open With menu gets cluttered with duplicates, older versions or applications you thought you deleted long ago. To get rid of these, you need to use Terminal. Open up Terminal (from Applications/Utilities) and paste the following line:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Press return and your Open With menu should have been cleaned up to only include the most current applications.
Comments

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

Tips for Safari 3

Safari
The Safari 3 public beta has been out for a while now, and will be included with Leopardwhen it comes out. If you haven't tried it out yet, you can download it for free from the Apple site. The following tips include things that will be useful to the average user as well as some more interesting tricks for more experienced users.

Merge Windows
Safari 3 now allows you to drag and drop tabs. You can drag a tab off the bar to create a new window or drag it onto an existing window to add it. You can also use this to rearrange the order of your tabs. If you have lots of open windows each with different numbers of tabs, there is an easier way to get them all into one instead of dragging and dropping. In the Window menu you will find the "Merge All Windows" command. This will instantly combine all your open windows into one tabbed window.

Enable Web Inspector
The Web Inspector allows you to easily see how the source code creates the web page. You can inspect various elements of the web page and view their style, metrics and properties. If you select an element in the inspector window, it will briefly be outlined in red on the web page.

Web Inspector


To enable the Web Inspector, open up Terminal (located in Applications/Utilities), type the following line and press return:

defaults write com.apple.Safari WebKitDeveloperExtras -bool true


Now quit and re-open Safari. Open a web page and right-click (Control-click) anywhere. You should see a new "Inspect Element" item in the list.

Pie Chart Loader
Normally Safari indicates how far a page has loaded using the address bar as a progress bar. The box gradually fills with colour from left to right. If you want, you can easily change this to the pie chart type indicator that is used in Mail. Again, open up Terminal (in Applications/Utilities), type the following command and press return:

defaults write com.apple.Safari DebugUsePieProgressIndicator -bool true


To switch back to the old progress bar, simply repeat the above command with false instead of true.

Bookmark all tabs
This new feature obsoletes the tip I wrote last month about bookmarking all tabs in Safari 2. Doing this is now much simpler - you just need togo to the Bookmarks menu. Here you should find an item that says something like "Add bookmark for these 4 tabs...". The default settings creates a bookmark called "Saved Tabs" in the bookmarks bar. This is actually a folder of your tabs, but it has been set to automatically open all the pages in tabs when clicked.

Bookmark All Tabs


Others
There are loads of other new features in Safari 3 that are well known or don't really require any explanation. For example, the find command now dims the page and highlights the words you searched for, web history now indexes the text content of the page for easier searching, you can reopen the last closed window or the windows from your last session and all text fields are resizable.
Comments

5 Login Window Tips

For all of these tips you will need know the password to an administrator account. You can check whether an account is an administrator in the Accounts section of System Preferences.

1. Add a message to the login window
You can add a string of text above the list of users in the login window. To do this, start by opening up Terminal. This is located in the Utilities folder, inside the Applications folder. Once it has loaded, paste in the following line and press return:

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Hello There”


Replace "Hello There" with your text. To remove the text, type the following line:

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText “”


2. Hide accounts
If you find yourself with an overly long list of users in the login window or you just want to get rid of that annoying scroll bar down the side, you can stop accounts appearing in the login window.

Start by go to the Accounts pane in System Preferences, and find the "short name" of each user you want to hide. Once you have these, open up Terminal and enter the following:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add shortname1 shortname2 shortname3


Replace shortname1 2 and 3 with the short names of the user accounts you wish to hide. You can hide as many as you like, just separate each with a space.

To make a hidden name appear again, type the command with no names in it, therefore resetting the list of hidden users.

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add


Notice that doing this adds an extra option to your login window - "Other..." When you select this, you will be presented with text boxes to enter a username and password.

If you aren't running OS X 10.4, this doesn't work. Another option is to replace the list of users with username and password text boxes. Go to the Accounts pane in System Preferences and click on Login Options. There you will find an option to display the login window as name and password fields. This isn't as pretty, but saves time if you have lots of users, and is also more secure.

3. Change the Apple logo
You can replace the large Apple logo that appears at the top of the login window with any tiff image that is 90x90 pixels. In the Finder, choose Go to Folder from the Go menu or press Command-Shift-G. In the dialog box that appears, type the following line:

/System/Library/CoreServices/SecurityAgent.app/Contents/Resources/


Apple Logo
A folder called Resources should appear. Here you will find an image called applelogo.tif. You will need to create a copy of this file, just in case you ever want to revert back to it. The easiest way to do this is to hold the Option key and drag it to a safe place (like your Documents folder). Now, rename you new image "applelogo.tif" and drag it to the Resources folder to replace the old file. You will be asked to type in an administrator password.

To change back to the Apple Logo, just drag the copy that you made back to the Resources folder.

4. Get useful system stats
The name of you Mac is displayed in the login window below the words "Mac OS X". Since Mac OS X 10.4.3, you can click on the name of your Mac to show different statistics about your machine. Each time you click, it will cycle through different bits of information that are particularly useful when troubleshooting problems.

The order of the statistics are as follows:

One click: Your OS X version number (e.g. Version 10.4.9)
Two clicks: Your OS X build number (e.g. Build 7M271)
Three clicks: Your mac's serial number (e.g. WN1511LHKNW)
Four clicks: Your mac's IP address (e.g. 196.254.0.1)
Five clicks: The status of any networked account
Six clicks: The date and time (e.g. Saturday, January 20 2007 4:02:31 AM GMT)
Seven clicks: Back to where you started, the name of your computer.

So you click a few times and set the information line to your favourite thing, but next time you log in, it has changed back to the name of your mac. To change the bit of information that appears first, you need to do a bit of tinkering in the Terminal (Applications/Utilities). Open Terminal and type the following command:

sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName 


Depending on which piece of information you want displayed, replace HostName with one of the following:
SystemVersion 
SystemBuild
SerialNumber
IPAddress
DSStatus
Time


After doing this, hit return, and the next time you view your login window the information you chose will be displayed. To change it back to normal, simply repeat the command with HostName at the end.

5. Change the background image
There are ways to change the background image by replacing the Aqua Blue image, but that is slightly crude. A better way to do it is using the Terminal. Type the following command and press return:

sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture /Users/Shared/mynewbackground.jpg


Aqua Blue
The last part, /Users/Shared/mynewbackground.jpg is the location of the image you want to use. You don't have to type it out. Just paste the command as far as DesktopPicture and put a space after it. Then find your image in the Finder, and drag it onto the Terminal window. The address to your image should just appear. As far as I can tell, you have to place the image in a place that all users have access to (the shared folder is a good place).

To change back to the normal Aqua Blue image, type the following command and press return:

sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture /Library/Desktop\ Pictures/Aqua\ Blue.jpg 


Comments

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 a picture of a snow leopard (or a leopard or a tiger, depending on your version of Mac OS X). If you play the Tile Game often, you might find the 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, or whatever key you have assigned 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.

To change this image, first we need to find the Tile Game widget. It is located in the Library folder inside Macintosh HD. Make sure you don't accidentally go to the Library inside your user folder. Inside the Library, look for the folder called Widgets. In here you'll find the Tile Game. To get inside the package, right-click (or Control-click) on the file, and choose “Show Package Contents” from the menu that appears.

Tile Game Widget

The file we want to change is called game.png, and is located inside the Images folder. Just replace this image with your new one, making sure you give it exactly the same file name.

Comments

5 Tricks for the Activity and Downloads Windows in Safari

Both the Downloads and Activity windows are accessible from the Window menu in Safari. Most people are familiar with the Downloads window as it pops up whenever you click a link to download a file. On the other hand, the Activity window is not as well known even though it is just as useful. Both can be easily accessed using keyboard shortcuts: Command-Option-L for downloads and Command-Option-A for activity.

When you first open the Activity window, it will show a list containing the titles of every Safari window you have open. Clicking the disclosure triangle next to one of the names will expand it to list every item on the page. As well as the HTML files and scripts, this includes media such as images and movies that are on the page.

1. Investigate problems
One of the best uses of the Activity window is to check the cause of a problem. If you are browsing a page and it fails to load, or it is taking ages to open, try taking a look in the Activity window. Down the right hand side you will see the size of each item. If an item is still loading this will show you how much has loaded, and if there is a problem you will see "not found" or "timed out".

Activity Window Problem



2. View movies in their own window
Some services (such as YouTube) provide a full screen button, but often you may find yourself having to watch a tiny video embedded in a web page. To get the movie in its own window, use the Activity window. Click the disclosure triangle on the left of the page with your embedded movie in to expand the list of every element in the page.

If you are watching a Quicktime movie, the item you want is probably the biggest one in the list. It may also continue loading after the rest of the page has finished. Look for a file extension of .mov or .mpg. Once you find it, simply double-click on it to open it up in its own window.

If you are watching a flash video that doesn't have a full screen button, you will need to find the .swf file. This is not necessarily the largest file.

3. Download embedded media
When a movie or music file is embedded in a page, it is not always easy to download it. If there was a link to the file, you could just hold the Option key and click it, but what do you do if there isn't?

For Quicktime movies and MP3 files, this is easy. Open up the Activity Window and locate the file. it should be a relatively large file with something like a .mov, .mpg or .mp3 file extension. Once you have found it, simply hold Option and double-click on it. Alternatively, pressing Option-Return will download whatever item is selected in the list.

For flash videos, you will want the .flv file. It's not always obvious which file this is. It should be the largest file on the page, and may still be loading. For YouTube videos, it is called get_video and doesn't have the .flv extension. Double-clicking this file will start it downloading. If the file doesn't have the .flv extension, you will have to add it on after the download has finished. To watch these movies you will need either the Perian Quicktime plugin or a player such as VLC.

Youtibe Video File



4. Paste and drag into Downloads Window
A little known feature of the downloads window is that you can copy and paste an address into it. Say you want to download a movie that you have listed in the Activity window. Simply select it, choose copy (Command-C) and then click on the Downloads window. Now just choose paste (Command-V) and the movie will start downloading. This works with any kind of link or address. One of the best uses for this is if you have a long list of addresses. Simply select them all together and then copy and paste them into the Downloads window. All of the downloads will begin at the same time.

If copying and pasting isn't for you, you can either use the Option-click method, or you can simply drag things into the Downloads window. Drag links, selections, and even pictures onto the Downloads window to download them.

5. Bookmark all tabs
This is a nice trick to bookmark every page you have open at the same time. This is useful if you want to preserve all your open windows when you quit Safari so you can easily open them all up again next time you open Safari.

Start by opening up the Activity window. Collapse all the disclosure triangles so all you see is the titles of each page. Select all (Command-A) and copy the selection to the clipboard (Command-C). Now open up the Bookmarks window (Command-Option-B). Find where you want to keep these bookmarks and then paste (Command-V).

A good place to put them is in a folder on the Bookmarks Bar. Now, next time you open up Safari you can click on the folder in the bar and select "Open in Tabs" from the bottom of the menu. Alternatively, you can use the Auto-Tab method.

This trick is also great for reordering your tabs. Paste them into your bookmarks and them open them up again in the order that you want them.
Comments

Remove Quotes in Email Messages

When an email message is forwarded and replied to, email clients add quotes to make it easier to see exactly who wrote what. While this is normally quite useful, multiple quote levels can often make a message quite cluttered.

In many email clients (such as Gmail), quotes are shown as a symbol at the start of each line. If the text has been quoted twice, the symbol is repeated.

Gmail Quotes



Now obviously you could click on each line and press delete, but this would take ages if there are multiple quote levels in a long message. The trick to getting rid of this type of quotes is to use the box selection method. To do this, hold Option (Alt) and drag a selection around the quote marks. This makes it so only the quote marks are selected, not the entire line. Annoyingly, this method doesn't work in some applications (such as Firefox). If you find it isn't working, try pasting your message into TextEdit before removing the quotes and then pasting it back into the email.

In the Mac OS X Mail program things are slightly different. Quotes are shown by vertical lines instead. While this may look nicer, it's not quite as obvious how to get rid of them. The answer lies in the Format menu, under Quote Level. From here you can increase or decrease the quote level of the selected text.

Mail Quotes



If you have multiple quote levels you want to remove it would be quicker to use the keyboard shortcut instead. To decrease the quote level simply select the text and press Command-Option-' (the apostrophe key). Every time you press this, one quote level will disappear, much faster than navigating the Format menu multiple times.

Mail Format Menu

Comments

Access hidden Preview features through Automator

Most people see Preview as a fairly limited application, and only use it for quickly viewing images. However, it is capable of much more than that, and a couple of months ago I outlined some of Preview's lesser known features on this site.

One topic that came up in the comments of that tip was Preview's inability to scale and resize images. I explained a trick involving zooming and using the Mac OS X Screen shot tools, but this is far from ideal.

Preview Actions
Interestingly, it turns out Preview can resize images, but you can only access this through Automator. In fact, there is a whole load of features that are only accessible this way.

If you have Mac OS X 10.4 Tiger, you will find Automator in your Applications folder. It is an application designed to do repetitive and time consuming tasks for you. You simply create a workflow by dragging and dropping "action" blocks, and then you can set it going whenever you want to perform that action. It's great for doing batch tasks like renaming a long list of files or resizing a large group of images.

If you look in the left hand column, you will find a section titled Preview. Clicking this will bring up a list of Automator actions that you can use. Some are familiar and accessible from the menus in Preview, but some are new.

Let's start with the simplest possible workflow. Say you want to resize an image (or lots of images) to half its size. To do this, drag the Scale Images action over to the right hand side. A dialog box will appear asking if you want the workflow to keep a copy of the original image or not. If you click Add, the workflow will make a copy of your image on the Desktop and resize that instead of the original. Otherwise, it will simply replace the image with its resized version.

Automator Workflow



The next step is to choose how you want to scale your image. You can set it to a certain width or a percentage of its original size. Once you have chosen, choose Save As from the File menu and give it a name like Resize Images. From the File Format pop-up menu choose Application. The Desktop is a good place to save it.

File Format



Now we can try it out. Find an image file and drag it onto the Resize Images icon. A copy of the image at half the size should appear on the Desktop - Preview doesn't even need to open. You can even drag a large selection of photos. If you find yourself using

Resize Image
This is only the beginning though. The other features that aren't accessible through Preview are "Create Thumbnail Images" and "Pad Images" which both work in much the same way as Scale Images. Although you can change the image type in Preview, the "Change Type of Images" is really useful as it is so much faster.

You can even extend your workflows to make them more like applications. For example, try adding "Ask for Finder Items" (from the Finder section) to the start of the work flow. Now, once you have saved the workflow as an application, when you double-click it to open, it will bring up a dialog, asking you to choose the images that you want to resize.

Also, take a look at the PDF actions that Automator has. Some of these are really useful if you often use PDF documents in Preview.
Comments

Reset a Lost OS X Account Password

Lots of people contact Mac OS X Tips asking how to reset a forgotten Mac OS X user account password. Depending on the circumstances, this task could take 5 minutes or could even be completely impossible. Here is a run through of the different ways you can reset an account password depending on the type of account, whether FileVault is enabled and whether you have the Mac OS X Install Disc.

If you still know the Administrator Password
If you still know the password to an administrator account, it is very simple to reset any standard or managed user's password. While logged in as the administrator, open up System Preferences and click on the Accounts section. All the accounts on the computer should be listed down the left hand side. Under each account name it should say Admin, Standard or Managed. If the lock at the bottom of the window appears locked, click on it to allow changes to the preferences.

Accounts
The next step is to select the user whose password you want to change and click on the Reset Password button. Enter the new password and click Reset Password. If you have created multiple Administrator accounts, you can use this method to reset their passwords too, as long as you know the password for the original administrator account.


Resetting an Administrator Password
Obviously, if you don't have access to an administrator account, you can't carry out any of the above steps. If you have forgotten the Administrator password or you can't log into your Mac at all, you will need to use the Mac OS X Install Disc.

Enter the Mac OS X Install Disc that is the closest version to that running on the Mac. For example, if you are running Mac OS X 10.6 Snow Leopard, you should enter the Snow Leopard install disk, not any earlier ones. Restart the computer, and hold the C key as it starts up. This might take longer than usual, and you can release the C key as soon as the Apple logo appears on the screen. When the window appears, choose your language and click the right arrow.
Reset Password

The next step depends on what version of Mac OS X you are using. Generally you need to choose Reset Password from the Utilities menu. For earlier versions of Mac OS X, choose Reset Password from the Installer menu.

Choose your Hard Drive from the top and then choose the Account from the drop down menu. Be careful not to select System Administrator, as this is actually the root user, not the administrator account on your Mac. Now enter the new password, click Save, quit the Installer and restart the computer.

Note that there are a few issues with this method. Firstly, it does not reset your keychain password. You will have to do this separately. Secondly, do not attempt this if you have FileVault enabled. To reset an FileVault protected account, you need the master password.

Resetting a FIleVault Protected User's Password
If you have enabled FileVault to encrypt your Account, you need to know the master password that you set when you enabled it. This is the password that the administrator should know that allows you to reset any password on the computer. If you have forgotten the master password, unfortunately your data is lost forever.

If you know the master password, start by attempting to log into your account. When you get the password wrong three times, you will be able to click “Forgot Password”. Now you will have to enter the master password and then a new login password for your account.

If you have lost the Mac OS X install Disc
If you have lost the install disc, don't try and use one from an earlier version as this might permanently block you out of your account. You really have two options: Firstly, you could buy a new copy of Mac OS X (try Amazon). Secondly, there is a way of resetting an administrator password without the disc if you are running Mac OS X 10.4 Tiger. Note: Do NOT do this with a FileVault protected account, or your data will be lost forever.

First, note the short name of the account. This is the same as the name of its home folder, but not necessarily the name that appears in the login window. Restart your computer, and while it is starting up, hold Command-S. This will start up your Mac in Single User Mode. Once it has started up, you will need to enter three lines of code. Enter sh /etc/rc and press return. Then enter passwd yourusername and hit return. Now you will have to enter a new password twice. What you type won't appear on screen, but it is working. Once you have done this, type reboot and hit return.

Similarly to the Install Disc method,this will not reset your Keychain password. You will have to do this separately.
Comments

More Hidden Settings for Google Notifier

Apologies for the break being slightly longer than expected. Everything is back to normal now, so you can expect a few tips per week from now on.

Google Notifier is a menu bar item that alerts you when new mail arrives in your Gmail inbox. Back in February I wrote a tip on Google Notifier's hidden features that showed you how to access two hidden settings. Recently, someone at Mac OS X Hints found a third hidden setting in addition to the ones I mentioned in my tip.

Google Notifier Menu Bar



All of these settings can be accessed through Google Notifier. Bring down the notifier menu and hold Command and Option while clicking on Preferences. This brings up a hidden settings editor where you can easily edit the notifier preferences file. The three settings are as follows:

1. Change the number of unread messages displayed.
By default, the menu shows the last four unread messages received (or the last three received and an additional "View More" submenu). To change this, enter "MaxMessagesOnMainMenu" in the key field and enter the number of messages you want on the main menu in the value field.

2. Filter messages by label.
If you only want the notifier to fetch mail with a certain label, you can create a filter. To do this, enter "Label" in the key field and enter the name of the label you want to receive in the value field. To receive all mail, leave this field blank.

3. Use a secure connection.
This is the new tip, submitted by an anonymous poster to Mac OS X Hints. It seems that Google Notifier normally transfers your account details and email in the clear so that other people can potentially read it. If you want to use a secure connection instead, enter "SecureAlways" in the key field and "1" in the value field. To reverse this, repeat the process but enter "0" instead of "1" in the value field.

For all of these settings you will need to quit and reload Google Notifier for the changes to take effect.

Comments

Quickly Jump to Address Bar in Safari

Zachary writes:

Hey... Is there anyway to keep the URL address highlighted when I start Safari? It would be so much easier rather than having to always keep clicking the address bar when I want to switch sites as soon as I run Safari... Thank you so much!


When you start Safari or open a new Safari window, normally the address bar is highlighted. This means that you can start typing an address straight away. However, if you have Safari set to automatically display your home page when opening a new window, the address bar is not highlighted.

For example, if you have Google as your home page, when you load up Safari or open a new window the Google home page will load and the search box will be highlighted instead of the address bar. If you type an address and press enter, it will Google search the address rather than just going to it.

So how do you solve this? Well the obvious answer is to stop Safari loading up your home page in new windows. You can do this from the Preferences located in the Safari menu. Under the General tab, set the "New windows open with:" menu to Empty Page.

UnhighlightedHighlighted



But what do you do if you want to keep the automatic loading of your home page, or if you want to quickly jump to the address bar when you are already viewing a web page? The answer lies with keyboard shortcuts. As you only use the keyboard when typing in a web address, you don't want to have to move your hands to the mouse and click on the address bar before typing. Instead of doing this, simply hit Command-L before typing the address. You will notice that the address bar automatically highlights, ready for you to type away. The command is actually located in the File menu, as "Open Location..." and conveniently the same keyboard shortcut works in Firefox.

If you don't have any Safari windows open, Command-L will open up an empty window and highlight the address bar. This is similar to the function of Command-N for a new window, but Command-L has the added benefit of opening an empty window, even if you have Safari set to automatically open your home page.

As a bonus tip, hit Command-Option-F to quickly jump to the Google search box in the top right.
Comments

5 Ways to Speed up GarageBand

GarageBand is everything you would expect of an iLife application. It's intuitive and easy to use for even the newest users, and produces great results. While it definitely isn't one of Apple's Pro Apps, it does use professional quality instrument loops and effects and these can take quite a toll on your Mac. If you are using an older Mac you may find GarageBand is very slow and might even crash when performing certain tasks. Here are a few tips for speeding up things up.

1. Turn Software Instrument Loops into Real Instrument Loops. If you didn't know, Software Instrument Loops are green and have dots on the track while Real Instrument Loops are blue and have audio waves on the track. The Software Instrument Loops are more customisable as you can change the instrument that plays them and the notes that they play. The Real Instrument Loops are harder to change as they are just recordings of an instrument playing.

GarageBand Instruments


Software Instrument Loops take a much higher toll on your CPU. If you are using a G3 or G4 you might find that GarageBand crashes when you try to play a song with lots of software instruments. Using Real Instruments instead of Software Instruments will help you avoid crashes and make you Mac run faster, especially during playback. To convert, hold the Option key when dragging Software Instrument Loops to the timeline. This will turn the loops into Real Instruments.

2. Optimise for Faster Response. In the Preferences (in the GarageBand menu) click on the MIDI/Audio tab and set the Optimisation to what you find more important. A large buffer size will allow you to have a large number of simultaneous tracks, while a small buffer will give a shorter loading time for playback. This doesn't always give great improvements, as results depend on individual system specifications.

Lock Tracks
3. Lock Tracks. You can lock tracks by clicking the padlock button. This means that you can't change effects, instruments and notes, but it does free up your CPU and RAM by transferring the burden to your Hard Drive. After you have locked a track, click the play button to render it to your Hard Drive. The locked tracks will sound exactly the same during playback as when they were unlocked. This tip doesn't work as well if you have a slower Hard Drive and has the greatest effect when there is too great a burden on your CPU and RAM.


Mixer
4. Hide the Track Mixer during Playback. Your Mac will be more responsive and run faster with the Track mixer hidden. This is especially noticeable during playback. Do this from the Track menu or press Command-Y.

5. Reduce the number of Tracks. While you might not want to delete tracks from your song, you can combine them. Once you have a number of tracks the way you want them in the final song, choose Export to iTunes from the File menu. Delete the tracks in your GarageBand project (you might want to save before you do this). Locate the file you just exported and drag it onto the timeline. This will create a single new track to replace the ones you just deleted. This process also has the benefit of converting the Software Instrument Loops to a recording.

Comments

Borderless Quicktime Movies

Recently I read on Murphy Mac about how to create your own Quicktime skin. This is basically a border to go around your movie to replace the normal Quicktime window.

The thing I found more interesting than the skins though is that you can use the same idea to create a borderless Quicktime movie. What's even better is that you can make borderless movies with the regular Quicktime that comes with your Mac, unlike skins that require the extra features Quicktime Pro ($30 from the Apple Store).

Murphy Mac has a great screencast about creating Quicktime skins, but luckily it is a lot easier to create a borderless movie. It involves creating an image file and a text file to go with your movie, and then combining all three files into one borderless movie.

The first step is to find the dimensions of your movie. Double-click it to open it in Quicktime and press Command-I or choose "Show Movie Info" from the Window menu. The Movie Info window will show you the "Normal Size" of the movie in pixels. Make a note of this size.

Normal Size

Next, you will need to create a solid back image that is the same size as your movie. There are lots of ways of doing this, but here's a method that should be available to everyone. Download this image to your hard drive by clicking one the link and then choosing Save As from the File menu. Basically its a really big black rectangle.

Crop
Now you will need to crop it down to the size of your movie. Double-click on it to open it up in Preview. Here you can make a selection by holding the Option key and dragging a rectangle. Notice that a small box appears, telling you the size of the selection. You can keep adjusting the selection until you get it the same size as your movie. When you are done, Press Command-K or choose Crop from the Tools menu. Choose Save As from the File menu and save it in the same folder as your movie. Give it a name like "black.png".

The next step is to load up TextEdit and type the following lines:

<?xml version="1.0"?>
<?quicktime type="application/x-qtskin"?>
<skin>
<movie src="movie-name.mov"/>
<contentregion src="black.png"/>
<dragregion src="black.png"/>
</skin>

Make Plain Text
Replace "movie-name.mov" with the actual name of your movie. Press Command-Shift-T or choose "Make Plain Text" from the Format menu and then choose Save As from the File menu. Here's the strange part - put the file name as "borderless.mov". Yes, that's a .mov file extension on a text file instead of .txt. Save it in the same folder as the black image file and the movie file. Now when you double-click on borderless.mov, it will load up as a borderless movie! Simply hit the space bar to play and pause.

Obviously it is a bit annoying to have three separate files to achieve this. The good news is that you can combine them into one file, but the bad news is that it requires Quicktime Pro ($30).

If you have Quicktime Pro, you can do this by choosing Save As from the File menu with the borderless movie open. Choose a file name and make sure you save it as a "self-contained movie", not a reference movie. The resulting file will still work fine if you delete the other files or move them about, meaning you can send it in emails or over the internet.

Quicktime Save As

Now why would you want to do this I hear you ask? Honestly, there's no big reason apart from your movie will take up a bit less space and look a whole load cooler!

Comments

Export an iPhoto book to movie

iPhoto 6 now allows you to create a slideshow of a Photo Book. Before you could only watch a slideshow of single, full screen photos but now you can do this will the pages of your photo book. iPhoto has always allowed you to export a normal slideshow to a Quicktime movie, but this option doesn't appear to be available for photo book slideshows. However there's a secret way of doing this.

Book
Start by creating your photo book. Do this by clicking on the new book button at the bottom of the window and giving your book a name. Notice that it now appears in the sidebar. To add photos to the book, browse your library and drag the photos you want to the photo book entry in the sidebar. When you have
added all you want, click on the photo book. You can now enter the title and description and any other information about your photos. Place them in the book by dragging them from the toolbar at the top into the photo frames in the book. If necessary, add extra pages by clicking the corresponding button at the bottom of the window.

Once your book is completed, you can view the slideshow by clicking the play button at the bottom. This will bring up the slideshow options. Make sure the random order check box is unchecked (you don't want your pages appearing in a random order) and choose the amount of time you want each page to appear for. To make the movie more book-like you will probably want to use the "page peel" transition, going left. You might also want to add some background music from your iTunes library.

Play
Now if you click play, the slideshow will begin full screen. Check it appears exactly how you want it. Now how do we get this into a movie you can save? Exit the slideshow to return to your photo book. Now hold the Option key and click the play button again. You will get the same slideshow settings as before. Check they are all right and click play.

Exporting Slideshow



Instead of going to the slideshow, you will now be prompted to choose a location to save your movie. Give it a name and click export. Now your photo book is saved as a Quicktime movie that you can watch and share.

iPhoto Movie


Comments

One year of Mac OS X Tips

Mac OS X Tips has been around for about a year now, so I thought I'd do a post on the how the past 12 months has gone.

The very first tip, on how to Auto-Tab Bookmarks was posted on the 22 June, 2006. Since then I have added 128 articles, giving an average of 2 or 3 tips posted each week.

Here are the top 10 posts in terms of the number of page views they receive. These are the best tips to check out if you are a new reader.

1. Top 15 Terminal Commands for Hidden Mac OS X Settings
2. Hidden File
3. Address Book Tips
4. Peek inside Mac OS X Packages
5. Another Way to Force Quit
6. Multiple Music Libraries in iTunes 7
7. Set a Screen Saver as the Desktop Background
8. Tips for Deleting Stubborn Files
9. The Ultimate Customize Toolbar Shortcut
10. Get useful system stats in the Mac OS X login window

There is a considerable gap in page views between the top 4 and the rest of the tips, due to those tips being picked up on digg.

My favourite tips are not always the ones that end up being the most popular, however. Some other tips that were more enjoyable to write include Seven Simple Safari Shortcuts, Google Notifier's Hidden Features, Secret advanced editing mode in iPhoto and Make the Most of iPod Notes.

As always, for all 128 tips, check out the Tips Archive.

RSS subscription to the blog has been steadily growing, with some huge jumps recently. The daily subscriber count is now over 1000. Here's a graph showing the number of subscribers each day since September 2006.



For Mac OS X Tips updates in your News Reader, subscribe to the RSS feed.

The Ask a Question page is currently ensuring my inbox is always nice and full. Recently I have been considering adding a forum to the site. This is because many of the questions/answers aren't suitable for the main blog but would be very useful if they were publicly available. It would also mean I wouldn't get asked the same questions over and over again and other people would be able to submit tips more easily. Leave a comment below if you think this is a good or bad idea, or have any other suggestions for the site.
Comments

13 things you didn't know about Preview

1. Exposé your Photos
If a number of images are open in Preview at the same time, you can view a full screen slideshow by choosing Slideshow from the View menu or by pressing Command-Shift-F. Once the Slideshow has started, press I or click the "Index page" button in the toolbar. This make a contact sheet of all the images, with exposé style animation. Shift-click for slow motion as usual.


2. Sort Order in Sidebar
Normally images appear in alphabetical order in the sidebar (although PDFs appear in page order) but you can choose a different sort order by right-clicking on one of the thumbnails. This brings up a contextual menu with path, kind, size, date and keyword sort options. For your own custom order, just drag the images up and down.


Sidebar Sort

3. Quickly Trash Images
While viewing an image in Preview, pressing Command-Delete will move it to the Trash, just as if you had selected its icon in the Finder. This is useful if you want to cycle through a collection of photos using the Up and Down arrows, and press Command-Delete to Trash the unwanted ones. You can also drag the thumbnail from the sidebar to the Trash.

Rotate Tools
4. Rotate Options
By default, the rotate buttons don't appear in the toolbar when viewing PDFs. To add them, Command-Option-click the Show/Hide toolbar button to bring up the Customise toolbar options. When you click rotate, it will rotate every page in the PDF document. If you Option-Click rotate, only the page you are currently viewing will be rotated.

5. Open a Folder of Images
Dragging a folder onto Preview's icon will cause it to open up every image in the folder. You will have to hold Command-Option while dragging onto the icon to force Preview to accept it. Be careful when doing this with a folder with lots of images in. If you do this with your Pictures folder for example, it will open your entire iPhoto Library. If you are adventurous, have a go at doing this with an application (they are just disguised folders anyway). Strangely, Preview can "open" itself.

6. Use the Scroll Tool with Images
When viewing PDF files, you can access the scroll tool through the View menu. This allows you to drag the images about with a hand rather than using the scroll bars. Unfortunately, this tool is greyed out when viewing anything but PDFs. To use the scroll tool with other formats, hold the Space bar before dragging an image. Additionally, if you Space-Command-click you will zoom in, and if you Space-Command-Option-click you will zoom out.

7. Slideshows Without the Toolbar
When viewing PDFs fullscreen using the slideshow option in the View menu (Command-Shift-F), the toolbar appears at the bottom whenever you move the mouse. To prevent this, double-click anywhere (but not on the toolbar). Now the toolbar will stay hidden until you next click. You can still get its functionality using keyboard shortcuts: Space will Play/Pause and the Left and Right arrows scroll through pages. Pressing A and F will toggle between actual size and fit to screen.

8. Change Annotation Font Size
The annotate tool is available when viewing PDFs. You can have a red oval or a yellow text box. The text is fixed to the System Font, which is Lucida Grande, size 13. To change the size, type defaults write com.apple.Preview NSSystemFontSize -int 9 into the Terminal (in Applications/Utilities) and press return. The number at the end is the font size (replace with 13 to return to normal). You will need to quit and reopen Preview for changes to take effect.

9. Change Zoom Level after Spotlight Search
When you click on the PDF in the Spotlight results, it opens up in Preview with the search term highlighted throughout the document. This is pretty useful, however the PDF is actually zoomed in 280 percent. This means you can read the word you searched for pretty easily, but you can't see anything else. To reduce this, start by quitting Preview if it is running and open up Terminal from the Utilities folder in the Applications folder. Type defaults write com.apple.Preview Preview -dict-add PVPDFSpotlightSelectionSize 10 and press return. The 10 at the end corresponds to a 100% zoom level. To return to normal, replace this with 28 (280% zoom). More information here.

10. Image Correction Tools
Preview offers a lightweight alternative to iPhoto's image correction tools. This is accessible from the Tools menu, and offers almost everything iPhoto does. Be warned through, there is no undo option for these changes, so the only way to go back is to revert to the last saved copy.

Bookmark Images

11. Bookmark Images and PDF pages
This feature was originally designed for long PDF files. If you want to save a certain page for reference or are half way through a long ebook and want a break, you can bookmark the page by pressing Command-D or by choosing Add Bookmark from the Bookmarks menu. Interestingly you can also bookmark images that you use often so you don't need to locate them first.

Preview Selection Size
12. Get Selection Size
If you hold the Option key before dragging a selection, a small grey box will appear, telling the size of the selection in pixels. More information here.

13. Tag Images
In Preview you can tag images with keywords that are recognised by Photoshop and Spotlight. To do this, press Command-I and click on the Keywords tab. This "Document Info" window acts like an inspector palette, so you can easily scroll through your images without having to open it again.

Comments

Automate Trash Emptying

Recently I came across a couple of scripts on Mac OS X Hints that automate emptying the Trash so you don't have to remember to do it regularly. One of them deletes items that were trashed over seven days ago and the other empties the oldest items once the trash reaches a certain size.

The one that empties items that have been in the trash for too long is a bit complicated and involves using the Terminal. The second one, however, is fairly simple and accessible to anyone who wants their trash to empty automatically.

It involves an AppleScript that you attach to the trash as a Folder Action. This script checks the size of the trash every time you add a file to it. If the size goes over a limit, it will deleted the item that has been in the trash the longest.

There are various versions of the script on the Mac OS X Hints page as many users added suggestions in the comments. If you are interested, take some time to read through the page to see how the script works. Adding all the suggestions and improvements, here is the final version of the script:
on adding folder items to this_folder after receiving added_items
	try
		-- Size limit of the Trash folder in MB
		set trash_limit to 2048
		
		--  Check size & Touch all incoming items to update the modified date to now
		repeat with i from 1 to the count of added_items
			set a_file to item i of added_items
			
			-- Get incoming item size and check if it exceeds the max trash size
			set a_file_size to ((do shell script "du -sk " & quoted form of (POSIX path of a_file) & "| awk '{print $1}' ") / 1024)
			if a_file_size is greater than trash_limit then
				display dialog quote & (name of (info for a_file)) & quote & " is too big for the Trash. Would you like to delete it permanently?" buttons {"Yes", "No"} default button "No"
				set response to the button returned of the result
				if the response is "Yes" then
					-- Permanently delete
					set sh_script to "rm -Rf " & quoted form of (POSIX path of a_file)
					do shell script sh_script
				end if
				if the response is "No" then
					-- Rename and move to Desktop
					set sh_script to "cd ~/Desktop;mv " & quoted form of (POSIX path of a_file) & " " & quoted form of (POSIX path of a_file)
					do shell script sh_script
					display dialog quote & (name of (info for a_file)) & quote & " has been moved to the Desktop."
				end if
			end if
			if a_file_size is not greater than trash_limit then
				set sh_script to "touch " & quoted form of (POSIX path of a_file)
				do shell script sh_script
			end if
		end repeat
		
		-- Get the current Trash size in 1k clusters, then divide by 1024 to get megabytes
		set trash_size to do shell script "du -sk ~/.Trash/ | awk '{print $1}'"
		set trash_size to trash_size / 1024
		
		-- Delete old items until we're under the limit
		repeat while trash_size is greater than trash_limit
			set trash_files to (list folder this_folder without invisibles)
			set oldest_file to {}
			
			-- Get the least recently deleted file in the Trash folder
			repeat with i from 1 to the count of trash_files
				set a_file to alias ((this_folder as text) & (item i of trash_files))
				if i is equal to 1 then set oldest_file to a_file
				if the (modification date of (info for a_file)) comes before (modification date of (info for oldest_file)) then set oldest_file to a_file
			end repeat
			
			-- Delete the file and update the Trash icon
			set sh_script to "rm -Rf " & quoted form of (POSIX path of oldest_file)
			try
				do shell script sh_script
			on error
				display dialog "Permission denied on file " & quoted form of (POSIX path of oldest_file) & " would you like to try with administrator priviledges?"
				do shell script sh_script with administrator privileges
			end try
			
			-- And rinse!
			set trash_size to do shell script "du -sk ~/.Trash/ | awk '{print $1}'"
			set trash_size to trash_size / 1024
		end repeat
		tell application "Finder" to update trash
	end try
end adding folder items to

Script Editor

Select all the text and paste it into AppleScript Editor (in Applications/Utilities). Now you need to decide what size limit your trash will have. This is specified in megabytes on the 4th line of the script. It is currently set to 2048 (2GB). If you would like a different size, change this number. 512 for example, would mean that older items would be deleted to keep the total size under 512 MB.

Trash Limit

Once you are done choose Save As from the File menu and go to the Library in your User folder. In here go to Scripts, then Folder Action Scripts. You will probably have to create these folders unless you have added folder actions in the past. Save the script here.

Now open up Folder Actions Setup (in Applications/AppleScript). If you click the plus button, you will be presented with a normal "Open" dialog. However there is the problem that the Trash is a hidden folder. It's actually located in your user folder with Documents, Music, Movies etc. To get to it, press Command-Shift-G. In the box that appears, type "~/.Trash" (without the quotes) and click Go then Open.

Go To Folder

In the list that appears, choose the script that you just saved. Now you can start trashing things without ever having to worry about emptying the Trash again!

Be warned that this script permanently deletes files from your computer, without you specifically telling it to do so. If you change your mind and want to retrieve a file you put in the trash, you may find that it is already gone.

Comments

Customize Sound Sets in Microsoft Entourage

K writes:

Is there a way to customize your own sounds for incoming emails in Entourage? In OS9, all you had to do was drop .snd files into the system folder and they were accesible from within Entourage. In OSX, it seems like all you can do is assign the standard sound sets. (like the 'new mail' sound etc..)


Microsoft Entourage's Sound Sets are stored in the Microsoft User Data folder located inside your Documents folder. To get there, navigate to: ~/Documents/Microsoft User Data/Entourage Sounds sets. In here should be one file, the default sound set that comes with Microsoft Office.

It's not quite as simple as just dropping audio files here though. You need to have special "Microsoft Entourage Sounds" files. Luckily there's a load of them you can download at Sound Off. My personal favourite is HAL alerts sound set.

Once you have downloaded a sound set you will need to double-click it to decompress it. You may need Stuffit Expander for this. You then need to drag the sounds file to the Entourage Sounds sets folder.

Now open up entourage and go to the Preferences (in the Entourage menu). In the Notification section you can choose your new sound set from the pop-up menu. To test each sound, click the little speaker icon next to each check box.

Entourage Sound Sets

It is also possible to use own audio files or the Mac OS X alert sounds as Entourage alerts. It's just not quite as easy and you can only make it play when you receive new mail. Essentially you have to create a mail rule that will run an Applescript that will tell another application to play the sound file.

Play Sound Icon

The first step is to download Play Sound, a really simple sound player for Mac OS X. After downloading this, install it by double-clicking on the disk image and dragging Play Sound to your Applications folder.

Next, open up Script Editor (in Applications/AppleScript) and paste the following script:

set soundAlias to "Macintosh HD:Applications:Microsoft Office 2004:Office:Sounds:Take Off" as alias
tell application "Play Sound"
play (soundAlias as alias)
end tell

Running this script will play a sound file. To choose your own sound file, you will need to change the first line of the script. Macintosh HD:Applications:Microsoft Office 2004:Office:Sounds:Take Off tells it to play the "Take Off" file in the "Sounds" folder in the "Office" folder etc. If you wanted it to play a file in your Music folder you would put something like Macintosh HD:Users:matt:Music:sound.mp3. If you wanted it to play one of the Mac OS X alert sounds, you would put something like Macintosh HD:System:Library:Sounds:Sosumi.aiff.

Once you have chosen your sound file, select Save As from the File menu, and save the script in the "Entourage Script Menu Items" folder in the "Microsoft User Data" folder in your Documents.

Entourage Rules
The final stage is to get Entourage to run this script when certain things happen. In the Tools menu choose Rules and click the plus to create a new one. Select your criteria for when the sound will play. If you want it to play for all new messages, leave the pop-up menu as "All messages". Now choose "Run AppleScript" from the Action pop-up menu. Choose your script and click OK to save the rule. Now you are all done.

Even though you can't use mail rules to play a nice "Welcome" sound like the sound sets do, you can make one play manually. Any sound script you add to the "Entourage Script Menu Items" folder can be accessed from the script menu next to the help menu at the top of the screen. Just click up there or assign a keyboard shortcut to play it whenever you open up Entourage!

Comments

Recovering Lost Users

One of the problems that seems to cause the most distress amongst Mac users who contact me is when user folders go missing.

In general, there seems to be two reasons why a user account and their home folder can disappear. The first is simply that you have (accidentally) deleted the user. Any administrator account has the ability to do this from the System Preferences.

The second way occurs when upgrading or installing Mac OS X from the install disks. If you inadvertently chose an "Archive and Install" installation, all users are deleted unless you choose to preserve them.

Luckily, in both of the above cases, Mac OS X keeps a copy of the user folder in case you want to get it back.

Recovering Deleted User Folders
In the Accounts section of System Preferences you can delete a user by selecting them and clicking the minus button. You are presented with two options - to keep a copy of the user folder (the normal way) or to delete immediately. Unfortunately, if you chose to delete an account immediately, it is almost impossible to retrieve it.

Delete User Account

However, it is more likely that you kept a copy (the option with the big blue "OK" button). This copy is kept in the Users folder under "Deleted Users". You must be logged into an administrator account to have access to this folder. Look in here for the name of the deleted user you want to recover, and double click it. This will mount a disk image on the desktop that essentially the deleted user folder. Hold option and drag this disk image from the desktop to the Users folder in your Hard Drive. Now you have restored the user folder, but you still need to create an account for it. Skip down to "Recreating the Account" to do this.

Users lost during an Archive and Install
When you perform an archive and install without preserving users, your user folders are archived away along with the rest of the existing system files for your Mac. A new folder called "Previous Systems" is created in Macintosh HD that contains all the users from before the archive and install. If you have done an archive and install multiple times, you will have a number of previous systems. Choose the one that contains all the users you wish to restore. In here is a users folder containing each of the deleted user folders. Drag the ones you wish to restore to the users folder in Macintosh HD. Now you have restored the user folders, but you still need to create accounts to be associated with them.

Recreating the Account

Create New Account
Go the Accounts section of System Preferences and click on the plus button to create a new account. You may need to enter an administrator password to do this. The "short name" of the new user must be the same as the name of the folder you just dragged to the users folder. When you click OK, a dialog will appear asking if you want to associate this account with the folder that is already in the users folder. Click OK to do this.

If you just want to retrieve certain files from the deleted user, you don't need to go through the hassle of creating a new user. From any administrator account you can open up the deleted user's disk image or Previous Systems folder and copy specific files from it.

Comments

Boost Quicktime Volume

One of the most useful features of the Finder Column View is its ability to preview movies and music that you would otherwise have to open up using Quicktime. If you haven't seen this before, open up a folder containing music or movies and press Command-3 to make sure you are in Column View. Now click on a movie or music file and it will appear in the preview column with the usual Quicktime playback controls.

However, with some files, you might find that the audio is too quiet to hear. If you have turned up the volume to full and your Mac's speakers still aren't playing it loud enough, there is a simple way to get an extra volume boost.

Normal Volume

If you hold the Shift key before clicking one the Quicktime volume control the slider has more range than normal. This also works when viewing Quicktime movies embedded in a web page.

Volume Boost

If you have opened up the file in Quicktime, you can get the same results by choosing "Show A/V Controls" from the Window menu (Command-K). In the A/V controls there is a slider that goes higher than the maximum volume on the slider in the Quicktime window.

Comments

Print the Clipboard without Pasting into an Application

Pete writes:

After selecting all text with Command-A, is there away to print it from memory to the printer without pasting it to an application? If I'm on a website I don't want to have to paste it into TextEdit to print it.


The best way to achieve this is using an AppleScript written by Chris from Macs in Chemistry.

You can download the script by clicking here. Double-click the downloaded file to un-zip it. You will now have a file called "Print Clipboard.scpt". Now go to the Library folder inside your user folder. Look in here for a folder called "Scripts". If it isn't there, create it by choosing New Folder from the file menu. Copy the "Print Clipboard.scpt" file to this folder by dragging it across.

Now Navigate to Macintosh HD/Applications/AppleScript and open up AppleScript Utility. Near the bottom of the window that appears, check the box that says "Show Script Menu in Menu Bar" (if it isn't already checked). A menu will appear near the right hand side of the menu at the top with an icon that looks like a script. If you open this menu you will notice the Print Clipboard Option at the bottom.

Scripts Menu

To see if it works, go to Safari (or your normal web browser) and select some text. Press Command-C to copy it. Now instead of pasting it into TextEdit, just go to the Script menu and choose the Print Clipboard script. If all is well, a dialog will appear confirming you want to print.

You must have a default printer set for the script to work. If you are having trouble, go to the Print and Fax section of System Preferences. If the "Selected Printer in Print Dialog" is set to "Last Printer Used", change it to the specific name of the printer you want to print with.

If you are feeling really adventurous you can even try editing the script. If you go to the Scripts menu and Option-click on "Print Clipboard" it will open up the script in Script Editor. Now you can make changes.

For example, if you want to remove the dialog that confirms what you are printing, put "--" (without the quotes) before the start of the 4th line. It would look like this:

--display dialog the_clip buttons {"Cancel", "Print"} def...

Comments

Disable Volume Change Feedback

Here's a quick tip. When you change the volume using the keyboard, your Mac plays the usual clicking sound associated with a volume change.

You can turn this sound off from the Sound section of System Preferences, but this is a bit time consuming to do every time you want to quietly change the volume.

Volume Change Feedback

Luckily there is a keyboard shortcut to silence the volume changing beep on a case by case basis. If you hold the Shift key while changing the volume, you will get no audio feedback, meaning you won't bother anyone with the clicking sound.

You can also get this to work the other way round. If you turn off the feedback in the Sound section of System Preferences, the clicking sound will only play if you hold down shift before changing the volume.

(This is vaguely related to a previous tip - holding option before pressing the volume change keys will open up the Sound System Preferences.)

Comments

Address Book Tips

The Mac OS X Address Book is a neat little application that is often under-appreciated. As a seemingly boring application it has loads of features that are overlooked by most users. While useful on its own for organising your contacts, Address Book's real power is that it works with so many other applications. Here are a few tips to save you time and let you make the most of Address Book.



Add Contacts to your Safari Bookmarks
If lots of your contacts have their own web sites, you might be interested to know that you can automatically add these to your Safari bookmarks bar. Open up Safari go to the Preferences (in the Safari Menu). In here click the Bookmarks tab and check the box that says “Include Address Book” in the Bookmarks Bar. Now a new folder will appear at the far left of your Bookmarks bar. In here will be the web sites of all you contacts who have a home page set in their Address Book entry.

Address Book

Chat to your Contacts
Address Book integrates quite well into iChat, the Mac OS X instant messenger. If a person in your Address Book is online and using iChat, a little green dot will appear next to their picture. Clicking on the dot will open up iChat, where you can start a new conversation with the person.

Put your Contacts in the Spotlight
In Address Book, select which contact you want to search, right-click on their name and choose “Spotlight [name]”. The spotlight window will pop up, and show documents, photos, iCal events, mail messages and iChats related to this person. This is one of my favourite features of Spotlight — it allows you to use it as a personal organiser and links together Address Book, iCal, Mail and iChat.

Spotlight from Address Book

If you don't have Address Book open, you don't need to bother opening it up to Spotlight search someone. Simply type their name into Spotlight for the same results.

Moreover, Spotlight remembers files that people have sent you. When searching for one of your contacts, Spotlight will list any files they sent as attachments to you, providing you received them in Mail.

Highlight Groups
If you hold down the Option key while you are viewing a contact, all the groups that they are in are highlighted in a lovely yellow.

Merge two contacts
If somehow you end up with two entries in your address book for the same person, you can easily merge the two. Select the two entries by clicking on one in the list and then Command-clicking on the other. Now click on the Card menu and choose “Merge Selected Cards”. If you have a huge contact list and you suspect some duplicate entries, you can also choose “Look for Duplicate entries” from the Card menu.

Merge Selected Cards

Large Type
If you want to read a person's phone number off the screen while dialing it across the room, you can make it display in large numbers across the screen. To do this, click on the number and choose “Large Type” from the pop-up menu.

Address Book Sharing
If you want to share your address book (for example with your family or secretary) you can do so via MobileMe, Yahoo!, Google or an exchange account. In Address Book just go to the Preferences and click on the Accounts tab. Be careful with the Google and Yahoo synchronisation though, you might end up accidentally adding everyone you ever sent an email to into your address book.


Using vCards
In reality, most people don't have .Mac, so the standard way to share contacts is using vCards. A vCard is a file containing a contact's information that you can attach to an email and send to whoever you want. Luckily, vCards work really well with Address Book.

To create a vCard for a specific contact, select them from the list and right-click (Control-click) on their name. From the pop-up menu choose "Export vCard...".
To create a vCard that contains the information for all the people in a certain group, select the group you want from the list, right-click on it and choose "Export Group vCard...".

If you receive a vCard from someone else as an email attachment, you can add it to your address book in a couple of ways. If you received it in Mac OS X's Mail application, simply drag it from the email message across to Address Book. If not, save it to your Hard Drive and then choose Import vCards (Command-O) from the File Menu in Address Book.

Make Your Own Card
My Card
It can be quite useful to create an entry for yourself in Address Book as it is used for things like Autofilling forms in Safari. To do this, create a card as usual and fill it with all your information. Once you are done, choose "Make This My Card" from the Card menu. You will notice that your icon in the list changes and your photo now has "me" written in the corner. Now you can export your vCard using the method above to send your contact details to everyone in your address book.

Restrict Private Information
If you don't want to share all of your contact information with everyone you send your vCard to, you can choose to keep certain parts private. Go to the Address Book Preferences and check "Enable Private Me Card". Now when you edit your own card, you can use the check boxes to choose which information is exported as your vCard.

Printing Envelopes
You can print an envelope addressed to a contact by choosing Print from the File menu with the chosen person selected. In the print dialog you might have to click the blue disclosure triangle to show all the settings, and choose Envelopes from the Style drop-down menu.

Comments

A Few Questions

Removing stubborn Items from the Sidebar
Iain writes:

I cannot delete a couple of folder shortcuts from my sidebar - Finder just says "the volume for XXX can not be found" - any ideas ?


You will need to delete the Finder's Sidebar preferences file. Go to your user folder and navigate to Library/Preferences and drag com.apple.sidebarlist.plist to the desktop. Control-Option-Click on the Finder icon in the Dock and choose relaunch. If the problem is fixed, you can trash the file on the desktop. If not, you might want to put it back. Be warned though, deleting this file will remove all your other shortcuts from the sidebar as well so you will have to add them all again.

Stopping Filemaker Pro
Brian writes:

I am having trouble with my mac. Every file I try to open defauts to filemaker pro. Is there a way to stop this? It happens with Excel files, Cad files, Etc....


Start by loading up NetInfo Manager, which is in the Utilities folder inside the Applications folder. Select Users from the middle column and then your user name from the right hand column. Look in the bottom pane for the uid, which is probably something like 501.

Now quit NetInfo Manager and any other running applications. Navigate to Macintosh HD/Library/Caches and trash the following two files:
com.apple.LaunchServices-0140.csstore
com.apple.LaunchServices-01XXX.csstore
where XXX is the uid. You will need to enter your administrator password to do this. Now restart your Mac and check if the problem is fixed.

If not, go to your user folder, navigate to Library/Preferences and delete the com.apple.LaunchServices.plist file. Repeat the above steps by deleting the two files from the Caches folder and restarting again.

iPod Disk Use
Valentine writes:

How do I use my iPod for both storage and music?


Plug in your iPod and open up iTunes. In the iPod section there is a check box near the bottom that says "Enable disk use". Check this box. A warning will appear that says you have to eject your iPod before removing it from now on.

Your iPod should appear on the desktop as an icon. Double click it and it opens up like a normal folder. You can drag files over to it just any other drive.
Comments

Reduce Preview's PDF zoom after Spotlight

If you have ever used Spotlight to search for a phrase within a PDF document, you may have encountered the annoyingly high level zoom in Preview.

When you click on the PDF in the Spotlight results, it opens up in Preview with the search term highlighted throughout the document. This is pretty useful, however the PDF is actually zoomed in 280 percent. This means you can read the word you searched for pretty easily, but you can't see anything else.

Spotlight Preferences

Luckily, by changing one line in the Preview preferences, you can change the zoom level to something less extreme. The easiest way to do this is using the Terminal.

First, quit Preview if it is running and open up Terminal from the Utilities folder in the Applications folder. Type the following line and press return:

defaults write com.apple.Preview Preview -dict-add PVPDFSpotlightSelectionSize 10


The 10 at the end corresponds to a 100% zoom level. By default, this number is set to 28, or 280% zoom. If you want some zoom, but not quite as much, try a number like 15 for 150% zoom.

If you don't want to use the Terminal, or you are curious to see what the command actually does, you can open up the preference file in Property List Editor (which you will only have if you have installed the Developer Tools from the Mac OS X install Disk). Go to your user folder and navigate to Library/Preferences and open up com.apple.Preview.plist using Property List Editor.

Preview Preferences

Use the expansion Triangles to navigate to Root/Preview/PVPDFSpotlightSelectionSize. Here you can see the number is 28 (or 10 if you have already changed it in the Terminal).

Comments

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

Read new email on your iPod

Macworld has an AppleScript that is related to yesterday's Notes Tip. This script takes your unread Apple Mail messages and allows you to read them on your iPod as notes. It's a long script so I won't write it here, but head over to the Macworld article to check it out.

Alternatively, click this link to automatically open up Script Editor with the script ready typed. Wherever it says <> put your user name. Now when you run it, it will create a folder on your desktop with all your Mail messages as iPod Notes files. Each will be titled with the Subject of the message, and there will be an index file containing links to each of the messages.

If you are confident editing the script, you can set it to create the folder on your iPod instead of on the Desktop (This wasn't done in the original because everyone's iPod has a different name and you have to have the iPod connected to run the script). If you want to leave it as it is, all you have to do is plug in your iPod and copy across the folder from the desktop.

To make things even more automatic, you could set up an iCal alarm that runs the script every morning before you leave the house.

Comments

Make the Most of iPod Notes

Most people don't even know that the iPod notes feature exists. It is available on all but the oldest iPods, and creating notes is a piece of cake. There's more to note than individual text files. You can use them for ebooks, museum tours or even for reading your email.

Creating Your Notes
Matt's iPod
To get notes on your iPod you just need to save plain text files in Notes folder on the iPod. To do this, first you need to mount your iPod on the Desktop. Plug in your iPod and load up iTunes. Go to the iPod section and make sure "Enable Disk Use" is checked. Now you can copy files to and from your iPod.

Enable Disk Use

The easiest tool to use to create plain text files is TextEdit. Open it up and press Command-Shift-T or choose Make Plain Text from the Format menu. Once you are done writing your note, choose Save As from the File menu. You'll want to save it in the Notes folder inside your iPod.

Warning: Now you have enabled disk use for your iPod, you will need to eject it before you unplug it. Drag it to the trash or right-click and choose eject.

Each notes file is limited to 4KB by the iPod and if yours is too long, the end will be cut off. To avoid this, Daniel Duris has created an online tool to divide up long eBooks into 4KB sections. At the end of each section is a link to the next one, making it as simple as turning the pages of a book.

Format Notes with HTML
These links are interesting because they show that iPod notes have basic HTML support. You can use this to create links between your notes, just like the links you see on web pages. There are a few HTML tags that are supported by the iPod.
will create a link break, and to choose the title at the top of the iPod screen, put it between and . To link to another note file, type <a href="chapter2.txt”>Next Chapter</a> where the link text "Next Chapter" links to the file "chapter2.txt" located inside you iPod's notes folder.

Here's an example:
<title>Chapter 1</title>
Once upon a time there was a man named John.
<br>
He lived in a bright yellow house.
<br><br>
<a href="chapter2.txt">Next Chapter</a>

When viewing these notes on your iPod, you can select links using the scroll wheel. If there is more than one link, the active one will have a blue underline. Using the scroll wheel will allow you to activate different ones.

Link to Songs and Videos
These links aren't just limited to notes. You can link to any song, video, album, artist or playlist on the iPod. For example, to link to the song "Song 2" using the text "Play Music" you would type <a href="song=Song 2">Play Music</a>.

iPod Screenshot

Linking to a video works in much the same way as with a song.
<a href="video=Song 2">Link to Song 2 Music Video</A>

To link to groups of songs, you have to use a slightly different tag. Here are a couple of self-explanatory examples:
<a href="ipod:music?genre=rock">Link to rock music</A>
<a href="ipod:music?artist=Radiohead">Link to Radiohead</A>

You can even combine these to create the equivalent of Smart Playlists:
<a href="ipod:music?genre=rock&artist=U2">Combo</A>

Set Notes Preferences
There are a few settings you can change involving the notes on your iPod. The first is a "Notes Only" mode, which was mainly designed for iPods being used as tour guides or in museums. This means that when your iPod loads up you are shown the Notes folder, and can't navigate out of it. You can only get to songs (or a audio tour) via links in your notes.

To enable this mode, create notes file called Preferences (without the .txt extension) and put the following line in it:
<meta name="NotesOnly" content="true">

The second setting you can change is the title of the Notes folder. By default it is just called Notes, but if you are using the Notes Only feature, you might want to call it something like "Museum Tour". To do this, add the following line to the Preferences file:
<title>Museum Tour</title>

The final setting is to do with linking to songs. Normally when you choose a song from a link in a note, the Now Playing screen appears. To set you iPod to continue displaying the note instead, add the following line to the Preferences file:
<meta name=“NowPlaying” content=false>

Comments

Applescript your Calendar Colours

Calendars
If you create multiple calendars in iCal, they are automatically assigned different colours. This allows you to easily figure out which events belong to which calendar. The problem is that iCal only uses seven different calendar colours. If you have eight or more calendars, iCal will use these same colours multiple times making it harder to work out which events are from which calendar.



iCal Colours
Now iCal does allow you to set a calendar to a colour other than the seven automatic ones, but you have to do this to each calendar manually. To do this, select the calendar from the list and choose "other" from the colour menu in the Info drawer/panel. This is pretty time consuming if you have a lot of calendars, and the more you have, the harder it is to make sure you don't use the same colour twice.


A more interesting way to solve this problem is by using randomly generated colours. To do this, we'll need to write a quick, easy AppleScript.

If you are using Mac OS X 10.3 or later, simply click this link to automatically open up Script Editor with a window containing the script you need.

If you are using an older version of Mac OS X, load up Script Editor (from /Applications/Applescript) and paste the following script into the window that appears:

tell application "iCal"
set calnum to (count every calendar)
repeat with currentnum from 1 to calnum
set calcolour to (the color of every calendar)
set red to random number 65535
set green to random number 65535
set blue to random number 65535
repeat until calcolour does not contain {{red, green, blue}}
end repeat
set red to random number 65535
set green to random number 65535
set blue to random number 65535
set the color of calendar currentnum to {red, green, blue}
end repeat
end tell

Now all you need to do is click Compile (the hammer icon) and then click Run. iCal will load up and each of your calendars will be assigned a new colour. It doesn't work perfectly - sometimes two colours will be very similar. However it is much more fun than going through each calendar individually and this is a great example of just how powerful AppleScript can be.
Comments

Set a Background Colour in TextEdit

If you use TextEdit a lot, you may find that the bright white background is a little hard on the eyes. You can change it to something a little more soothing from the Fonts palette.

In TextEdit, go to the Format menu and choose Show Fonts. In the Font palette that appears, you will notice four buttons in the top left - 3 with a T on them and one with a small page icon. If you can't see these icons, your font palette might be too small. Drag the handle in the bottom right to resize it.

The button we want is the fourth one along. It should be a small page icon with a white box next to it. Clicking it brings up the colors palette which you can use to select a new background colour.

Show Fonts and Colors in TextEdit

You are best off using the colour pickers that allow you to drag around to select a nice subtle colour. The preset colours (like in the crayon picker) are far too bright for a background.

Also note that any background colour that you set will be printed, so you will have to change it back to white before printing to avoid wasting ink.

Comments

Speed Up Dialog Boxes

In Mac OS X many dialog boxes slide out of a window's title bar and are attached to that window rather than being on their own. These dialog boxes are know as "sheets" and can be anything from Open/Save dialogs to the Customise Toolbar settings. They are attached to a certain window to show that they are associated with that particular file or application. If you can't remember seeing this before, open up a TextEdit file and choose Save As.

The sliding animation may be pretty, but it can waste a fair amount of time if you are opening and closing sheets all day. You can speed this up and make your Mac feel much snappier by using a simple Terminal command to reduce the amount of time taken to display the animation.

Sheet Animation

Launch the Terminal (located in Application/Utilities) and type the following command:

defaults write NSGlobalDomain NSWindowResizeTime 0.001


The number at the end is the length of the animation in seconds. With it set to 0.001, sheets appear pretty much instantly. The default is 0.2, so type the command with 0.2 at the end to return your sheet animation to normal.

For fun you can try higher values. This allows you to see just how detailed the animation is. Type the command with 2 at the end and load up TextEdit. Resize the window to as small as possible before selecting Save As from the File menu. You'll see the sheet jump up out of the window then gently fall into place.

Comments

Get Custom Audio or Visual Alerts

Create your own alert sound
Whenever Mac OS X wants to get your attention, it plays an alert sound. For example it does this when a dialog box appears, when you receive an email and as an iCal alarm. Your Mac comes with a nice set of alert sounds, but after a while they may get a bit boring.

You can add your own alert sounds by placing audio files in a certain folder. Before you do that however, you will need to convert your sound file to the AIFF format using iTunes. Open up iTunes and choose Preferences from the iTunes menu. In the Advanced section, click on the Importing tab and choose AIFF encoder from the pop-up menu. Click OK.

AIFF encoder

Convert to AIFF

If the audio file you want to use is in iTunes, select it and then click on the Advanced menu. In here choose Convert selection to AIFF. If you audio file is somewhere else, hold Option while clicking on the Advanced menu and choose Convert to AIFF. This will bring up a dialog that will allow you to navigate to your audio file. Once the file is done converting, go back to the preferences and change the "Import Using" pop-up menu back to AAC.

Now we have to get this file to show up in the Alerts list in System Preferences, Mail and iCal. Open up your user folder, look in the Library for a folder called Sounds and drag the sound here from iTunes. Your new alert should now be in the list in the Sounds section of System Preferences.

Make your alerts visual
An alternative to the audio alert is a visual alert, which is basically a screen flash. You can turn this on in the Universal Access section of System Preferences, under the Hearing tab. This will flash the screen as well as playing an alert sound. If you want to get rid of the sound and just have the flash, go to the Sounds section of System Preferences and move the Alert Volume Slider all the way to the left.

Alert Volume

Annoyingly, this will also mute the feedback you get when the volume is changed and the interface sound effects (like when you move something to the trash). If you're fine with this then use the method above. However if you still want these other sound effects, there is a better (but more complicated) solution.

Mac OS X will also flash the screen if for some reason it is unable to play the selected audio alert. To make this happen, open up TextEdit and press Command-Shift-T to convert the document to plain text. Save this empty file as Flash.aiff in the sounds folder inside your Library. If a dialog asks you which extension to use, choose .aiff.

Save Flash.aiff

Now if you look in your alerts list in System Preferences there will be an alert called Flash that does exactly that - flash the screen. This is because Flash.aiff isn't really a sound file. When your Mac tries to play it and can't, it flashes the screen instead to make sure you still see an alert.

Comments

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 scriptfolder : ((path to documents folder) as string) & "Drives"
on run
   tell application "Finder"
       if not (exists alias scriptfolder) 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 thisfolder after receiving addeditems
   Update()
end adding folder items to
on removing folder items from thisfolder after losing theseitems
   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.

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.

Comments

Ask a Question

The Ask a Question page that I recently added to the site has been surprisingly popular. Here's a few of the latest questions. If you have a question or tip about Mac OS X use the corresponding link in the sidebar to send it to me.

Dan writes:

My one year old daughter attacked my wife's iBook, and has somehow changed the settings so that the computer has gone 'negative' — everything looks like a photographic negative — desktop background, icons, the dock, everything. Does anyone know how to get this back to normal?

The "negative" effect is a feature of the Universal Access preferences. To quickly reverse it, press Control-Option-Command-8. You can change all the settings for this in the System Preferences, under the Universal Access pane. For more information on this, check out this previous tip on Universal Access.

Ignacio writes:

Hello, I accidentally erased the Ical application, I would like to know how to install it again.

The iCal application is included on the Mac OS X install disks that came with your Mac. However, technically you would have to reinstall the entire operating system to get it back.

A shareware application called Pacifist ( http://www.charlessoft.com/ ) allows you to open up the installer files and just install a single application. This should work for iCal or any other application included with Mac OS X.

Sean writes:

I have a delightful neighbour who's 90 years old who uses the net daily. She is sight impaired. I need to find a method of increasing the width of the scrollbars and their arrows to a size she can use. She recently switched from a PC to the Mac. She loves the Mac. It was easy to set the scrollbar size on XP. How can this be done on the Mac? Her Mac is a beige desktop G3 with lots of memory and OS X 10.2.8.

The only tools for the sight impaired that come with Mac OS X are the settings in the Universal Access pane of the System Preferences (in the Apple menu). There is an option here for zooming that zooms in on the cursor when you press a keyboard shortcut. However, this isn't exactly what you want and it involves learning a load of keyboard shortcuts.

Another option is to change the screen resolution. Go to the Displays pane in the System Preferences and choose a lower number from the list of resolutions. The drawback of this method is that everything gets bigger, and there is less room for viewing things like large photos.

I understand that neither of these are perfect solutions, but they may be worth a try.

Comments

Peek inside Mac OS X Packages

For those who don't know, Mac OS X packages are simply folders disguised to look like single files. The most common examples are applications. They are just folders containing all the data files for the application that open up as an application rather than folder when you double-click them in the Finder.

Packages are great because they allow the developer to store all the important related files inside the application. They are also great because they make it very easy to tinker with the way applications work.


To view or edit a package's contents, Control-click (or Right-click) on the application and select Show Package Contents from the context menu. This will bring up a finder window containing a folder named Contents. Inside here is the actual package contents.

The following are a few examples of what you can do inside Mac OS X packages.

Warning: It is a good idea to keep a backup of any file you modify. To do this, just Option-drag the file to copy it to a safe place before making any changes to the original.

1. Change Unexpectedly Quit message
With some tinkering it is possible to customize Mac OS X alert messages and dialog box text. For a bit of fun, you can change the message that appears when an application crashes to something more humorous.

Open up your hard drive and navigate to /System/Library/CoreServices. Find the Crash Reporter package and open it by Control-clicking (or right clicking) and choosing Show Package Contents.

In the window that appears, navigate to Contents/Resources/English.lproj and find Localizable.strings. Copy it to your Desktop and open it up in TextEdit. Near the bottom of the file you will see the line -

/* Unexpectedly quit dialog */

In the lines that follow this it is fairly obvious how to change the message. The symbol "%@" will make the message display the crashed Application's name, and "\n" will make a line break. Save the file and then copy it back to the package to replace the old version. You will have to enter your administrator password.

Unexpectedly Quit Message

2. Change an application's default icon
You probably know how to change an application's icon by opening up its Get Info window (Command-I), clicking on the icon and pasting a new one over it. You can use the Cut tool (Command-X) to remove this icon and return to the default. To change this default icon, you have to delve into the package. The icon file is stored in the Resources folder within the package contents, and normally has the same name as the application with the .icns extension. You can replace this file with any other icon file, whether it is downloaded from the Internet or taken from another application.

If you dislike the way the iCal icon always displays the date as July 17 when it isn't open, there is an alternative icon inside the iCal package. If you look inside the Resources folder you will find two icons - App.icns and App-empty.icns. To change which one iCal uses, simply rename App.icns something like AppJul17.icns and make a duplicate of App-empty.icns named App.icns.

Some people also dislike the iTunes 7 icon. This Mac OS X Hints article describes how to change it back to the one used in iTunes 6.

3. Open help files in a Web browser
Anyone who has ever used the Mac OS X help browser will admit that it is a little on the slow side. Annoyingly, it also lacks a Save command, meaning you have to go through the slow process of loading it up and finding what you want every time. Luckily, the help pages are just HTML files stored away inside the application's package. This means you can open them up in Safari, which is much quicker for browsing and allows you to save bookmarks and Save pages.

For example, to open up the iPhoto help, open up the iPhoto package in your Applications folder. Then navigate to the English.lproj folder inside the Resources folder. Here you'll find a folder called iPhoto Help with a file named iPhoto Help.htm inside. Double-click on this file to open it up in Safari.

iPhoto Help

Annoyingly, every now and again a link will open up in Help Viewer, but generally you can browse the help files from within Safari.

Things like Airport, Applescript, Bluetooth, iPod and Mac OS X itself don't have an Application package to store the help files in, so these are located in the Library folder. To find them, go to your Hard drive and look inside Library/Documentation/Help. Each of the .help files in here is a package.

4. Change Text Clipping Behaviour

Text Clipping
This previous tip explains how to make selections within Text Clippings by changing a file within the Finder Package. Normally you can only copy and paste the entire clipping, but by changing one line in a file, you can enable making selections within clippings.

5. Customize System Preferences
All the System Preferences panes are grouped into five categories - Personal, Hardware, Internet and Network, System and Other. It is quite easy to change these category names by going inside the System Preferences package, which is in the Applications folder. Inside it, navigate to the English.lproj folder inside the Resources folder. In here, find a file named NSPrefPaneGroups.strings and drag it to your desktop. Now open this file up in TextEdit and you'll see the following lines:

"personal" = "Personal";
"digitalHub" = "Digital Hub";
"hardware" = "Hardware";
"net" = "Internet & Network";
"system" = "System";
"addons" = "Other";

Don't change the words on the left, these are the ones used by System Preferences. You can change the words on the right. These are the ones displayed in the System Preferences window. Just make sure you don't delete any quotes or semicolons. Also, ignore the "Digital Hub" entry. This isn't used anymore and is probably just left over from a previous version of the operating system.

Now save the file and drag it back to the English.lproj folder from the Desktop. You will have to Authenticate this action with your administrator password.

6. Modify iCal alarm message
iCal Alarm
You can customize the alarm message in iCal to show something else instead of the alarm clock. First, create a Quicktime movie that is roughly 53 pixels wide and 66 pixels high, and save it as alarmclock.mov. Locate iCal in your Applications folder open up its package. Go to the Resources folder and locate the alarmclock.mov file that is already in there. Replace this with your new alarmclock.mov file.

Comments

Merge Two iCal Calendars

iCal Icon
One of the difficulties of creating multiple calendars in iCal is working out how many you actually need. Do you create a "College" calendar and a "Homework" calendar, or should you make just one for all you college activities?

If you start off with two separate calendars it is fairly easy to merge them into one if you later decide to. Luckily you don't need to go through every single event and change the details. You can do them all in one with the export command.

First choose the calendar you want to get rid of. Select it in the calendars list, and go to the File menu and choose Export. Choose any name and location. You aren't going to need this file for very long, so save it somewhere like the desktop so you can easily get to it.

Now you are going to re-import the events into the calendar you are merging them with. Go to the File menu and choose Import. Navigate to the file you saved earlier, and click Import again. In the dialog box that appears, choose the Calendar you want to merge the events into.

If everything went OK and all the events are in one calendar, you can safely delete the other one.
Comments

Ditch DVD menus

In iDVD it is possible to create a DVD that jumps straight into the movie without a menu that displays all the "Play Movie" and "Scene Selection" type options.

This is useful if you just have a single movie without chapters where the only option on the menu would be a rather pointless "Play Movie". It's also great for if you want to play a DVD in a kiosk and just have it loop over and over.

Start by launching iDVD from the Applications folder. Create a new project then click on the DVD map button, located right next to the Play button. In the map that appears, there is a box that says "Drag content here to automatically play when the disc is inserted". This area is normally used for the trailers and copyright messages, but you can just as easily drag your whole movie here.

Now the menu will only appear after the movie has finished. You can set an option here to play the movie again, or alternatively you can cut out the menu completely by setting the movie to loop.

Do this by clicking on your movie in the map view and choosing Loop Movie from the Advanced Menu. Burn your movie as usual. Now when you put the disc into a DVD player or your Mac, your movie will automatically play over and over again.
Comments

Preview Selection Secret

Preview Selection Size
You can select a portion of an image in Preview by simply dragging across the image with your mouse. You can copy and paste this selection, or use the Crop tool (Command-K) to get rid of everything outside the selection.

If you want to make a selection of a specific size, you normally just have to guess. By default Preview doesn't tell you the dimensions of the selection, but there is a way to make it.


If you hold down the Option key before making a selection on an image, a small grey box appears next to your cursor telling you the size of the selection in pixels.

This also works on already made selections. Hold down the Option key before dragging one of the dots around the edge of the selection box and the selection size will appear again.

When working with most image formats the select tool is the only one you have, so using it is simply a case of dragging across an image. If you are using a PDF file, make sure you are using the select tool by pressing Command-3 or by going to the Tools menu.
Comments

Photo Comparison in iPhoto

iPhoto Icon
One handy feature of iPhoto 6 is its ability to easily compare two photos side by side. This allows you to choose the best of two similar shots, or duplicate a photo and try out enhancements on one copy while comparing it to the original.

To use this photo comparison tool, you need to have iPhoto set to edit in the main window. Go to the iPhoto menu and choose Preferences. Set the drop down menu to edit photos in main window. Now go back to your photo library and decide on two photos to compare. Click the first one, and Command-click the second (i.e. select them both). Now double-click on one to enter the edit mode.

iPhoto will show your images side by side, ready for you to crop, enhance and retouch them. There are a few additional tricks to this as well. You can select more than two photos by just selecting more at the start (by Command-clicking). If you want to replace one of the photos you are comparing, click on it and then choose a different one from the thumbnail browser at the top of the window. If you want to add in a new photo to compare, Command-click on one of the thumbnails in the browser. To remove an image from the comparison, Command-click it in the thumbnail browser again.

A slightly different way of doing this is to edit in full screen mode rather than in the main window. You can do this by Right-clicking (Control-clicking) on you selected photos and choosing edit in full screen mode.
Comments

Create your own keyboard shortcuts

Using the mouse is not always the quickest way of getting things done. Keyboard shortcuts are great timesavers, but not every command has one. Luckily you can create your own keyboard shortcuts from the System Preferences to speed things up.

Keyboard Shortcuts

To do this, open up System Preferences and go to the Keyboard and Mouse pane. From the "Keyboard Shortcuts" tab you can view and edit all existing keyboard shortcuts for the system. To change any of them, double click on the current key combination then type your own. If the one you set clashes with any others, a warning icon will appear next to it. To disable a shortcut, uncheck the box next to it on the left.


Note that this list does not contain any application specific shortcuts. At the bottom there is a section for "Application Keyboard Shortcuts" but this is probably empty. The only ones that appear here are the shortcuts that you create. Click the small plus (+) button below the list to bring up a dialog box that allows you to choose an application and menu command and assign a keyboard shortcut to it.

The drop down menu contains all the applications in the applications folder, but if you want another one, choose other from the bottom of the list. Next enter the exact name of the menu item you want to create the shortcut for. This can be anything that appears in an application's menus, but don't forget to include the "..." at the end if the item has it (e.g. Customize Toolbar...").

Customize Toolbar

The keyboard shortcut can use a combination of the Command, Control, Option and Shift keys, as well as any of the function keys (F1, F2 etc.). For some of the nested menu items it isn't obvious what to type. For example, to choose the menu item "Arrange by --> Kind" you have to type "By Kind".

After entering all the details, click add and your shortcut will be added to the bottom of the list under "Application shortcuts". You will have to quit and reopen the application for everything to start working. To do this for the Finder, Control-Option click on its Dock icon and choose Relaunch.

Comments

Using the Scroll Tool in Preview

When viewing PDF files in Preview there are a number of tools available to help you. These are available from the Tools menu, and have keyboard shortcuts Command-1 through to Command-4. These are all very useful, however, all but the select tool are greyed out when viewing images that aren't PDFs.


Preview Tools
The main annoyance of this is the apparent lack of a scrolling tool. This is the one that is shown by a hand and allows you to drag the image about instead of having to use the scroll bars. It is especially useful when you have to scroll diagonally in either very large images or when you are zoomed in a lot. Instead of switching between the vertical and horizontal scroll bars, you can just drag the image in the direction you want it to move.

The trick to getting the scroll tool when viewing any image with Preview is to press and hold the Space bar. You will notice that the cursor changes to the hand and you can drag your image about. Once you have started dragging you can even let go of the space bar and it will still work, even though the cursor changes back to the cross of the select tool. This is similar behaviour to that of other image viewing and manipulation applications, however it is a bit more hidden in Preview.
Comments

5 Quick Podcast Tips

1. In iTunes you will see your podcasts in a list, each one with an expansion triangle to reveal the individual episodes within that podcast. If you Command-click on the triangle, every podcast in the list will expand to show episodes.

Podcast List

2. It's fairly obvious that you can delete single episodes from a podcast by simply selecting it and pressing delete. However, getting them back is a bit less straightforward. Option-Clicking the triangle next to the podcast title will bring up the full episode list, including any that you have removed in the past. Now you can click "Get" to download the episodes again.

Quicktime Playback Speed
3. If you prefer to hear your podcasts at a faster (or slower) rate you can adjust the playback speed. Select your podcast episode in iTunes and Right-click (Control-click) to bring up the context menu. Choose "Show in Finder" then open up the file in Quicktime (Control-click the file and choose "Open With"). In Quicktime, press Command-K to bring up the A/V Controls and move the playback speed slider at the bottom of the window to your preferred speed.

4. Many podcasts have excessively long descriptions (well, too long to fit in the description column of the iTunes window). To bring up a window that contains the episode description and other details, click the small "i" icon on the right side of the description column.

5. If you come across a podcast on the Internet but you can't find it in the iTunes Podcast Directory, you can still subscribe to it in iTunes. Choose "Subscribe to Podcast..." from the Advanced menu and enter the podcast feed URL.

Comments

Stationery Pad option makes a template of any file

The Stationery Pad option has been around for as long as I can remember, in every version of the Mac OS. The Unofficial Apple Weblog does a great job of describing what it does:

If you have any kind of workflow where you need to repeatedly modify some sort of a file template, checking this option in any file's Get Info window will tell its parent application to open a copy of it by default, ensuring that the original file remains unedited.


Stationery Pad

Surprisingly, very few people know about and use this useful option. To enable it, select a file and open up its Get info window by pressing Command-I. From here you can check the stationery pad option to set that file as a dafault template for its application. Now when you open that application, a copy of the file will load up and you can use it as a template. However, when you save the file it won't save over the Stationery Pad file.

For many applications the icon of the file will change slightly if you set it as a stationery pad. For example, some Microsoft Office files will change to look like a pad.

Excel FileExcel Stationery Pad

Comments

Encrypt and Hide your Private Files

Most people store some kind of data on their computer that they don't want other people to see or use. Whether it is financial information, confidential files for work or files you shouldn't have in the first place, it is often hard to guarantee that no one has seen them. If your computer was stolen, for example, you would hope that the thief would just wipe the hard drive, but there is no way to be sure. Leaving your Mac logged on in the office or at home also allows other people to gain access to your private data.

Encryption

If you just want to protect a single iWork or PDF document, you can do this from within the specific iWork application or from within Preview. In Pages, Keynote and Numbers '09 you can choose “Require password to open” from the Document section of the Inspector window. In Preview, when choosing “Save As...” on a PDF there is a checkbox to encrypt.

If you want to password anything else, you have to password protect an entire folder. The way this is done is using encrypted disk images. Once created these appear as a single file on your hard drive with a dmg extension. When you double-click on one, it will ask you for the password. If you enter the password correctly, it will mount a disk image on your desktop. So while unlocked, the disk image is just like a temporary folder on your desktop. You can copy files to it and delete files from it, and as soon as you eject it, the contents will be password protected again.

The files won't show up in Spotlight searches and it is almost impossible to decrypt the data without that password, even with data recovery tools.


To create an encrypted disk image, open up Disk Utility (located in Applications/Utilities), go to the File menu and choose New, Blank Disk Image. In the dialog box that appears choose a name for your disk image and where you want to save it. The size is a maximum that the disk image can hold, so the preset sizes for CDs and DVDs are useful for if you want to burn the contents when it gets full. Choose AES-128 encryption and sparse disk image from the Format drop down menu.

New Disk Image

Now when you click Create, you will be prompted to enter your password. To really protect your data, don't choose a password that you use for everything else or something that is easily guessable. Press the key button next to the password field to open the Password Assistant. This will help you choose a password that is both easy to remember and hard to crack. The best type to choose from the menu is “Memorable” as the others are a bit more complicated. Obviously longer passwords are more secure, but you have to find the right balance. If you don't like the password that the assistant suggests, press the down arrow next to the password to see a list of other suggestions. Alternatively, type in your own password and it will tell you how good it is and give tips on how to improve it.

Password Assistant

Remember to deselect the “Remember Password” option before pressing OK, as that would really defeat the point of creating the disk image in the first place. Now your encrypted disk image will be located in where you chose to save it. When you double-click it you will be prompted for the password, then it will mount on your desktop and also appear in the Sidebar of every window.

Hiding

For some people there is no need to encrypt data. For a quick, temporary solution you can just hide away your files on your Mac. This is much less secure and far from foolproof, but quite often it is as much as you need.

Probably the best place to put your files is in the Library folder. The main benefits of this are that it isn't searched by Spotlight, and that there are hundreds of other files in there already. The Application Support folder in you Library is a good place, as there are all sorts of random files in there. You might also want to rename your file if it has a name that stands out ( super-secret-file.doc for example).
Comments

5 Quick iCal Tips

1. You can create line breaks in an iCal event by pressing Option-Return. Handy if you want to create a small list in an event.

iCal Event

2. If you are really worried about missing an event, set more than one alarm for it. In the info panel for your event click on the word "alarm" and a menu will appear allowing you to add or remove alarms. You can even set alarms to go off after the event, for example if you need to drop someone off and then be reminded go pick them up an hour later.

Set iCal Alarm
3. Use iCal to schedule things on your Mac. When setting an alarm for an event, you can choose the option for it to "Open a file". You could create an Applescript or Automator workflow that loads up iTunes and plays a random song or create a shortcut to a web site by dragging the address from Safari to the Finder. Create an event that occurs every morning at 7.00 and set this file as the alarm.

4. While iPhoto is great for printing pretty calendars, iCal offers a special customized print dialog that gives you much more flexibility in printing your calendars, albeit without the lovely photos. Check out this previous tip for printing To Do lists in iCal.

iCal Alarm
5. You can customize the alarm message in iCal to show something else instead of the alarm clock. First, create a Quicktime movie that is roughly 53 pixels wide and 66 pixels high, and save it as alarmclock.mov. Locate iCal in your Applications folder and Control-Click (or Right-Click) on its icon. From the context menu, choose Show Package Contents. Go to the resources folder and locate the alarmclock.mov file that is already in there. Replace this with your new alarmclock.mov file. You will probably want to keep a backup of the old file if you even want to go back to the ringing alarm clock.

Comments

Multiple Music Libraries in iTunes 7

In iTunes 7 it is now possible to have multiple music libraries. This works in the same way that iPhoto has for quite a while. When opening iTunes, press and hold the Option key immediately after clicking the Dock icon or double-clicking the application in the Finder.

A dialog box will appear instead of the normal iTunes window, and from here you can choose an existing library or create a new one. Your existing library is in your user folder, under Music / iTunes / iTunes Library.
iTunes Library Dialog
When you create a new iTunes library it doesn't just create this single library database file, it creates the entire folder, complete with a music folder and Album artwork folder.

This is quite useful for separating off a section of music. For example, you may want a separate library for your live music, your children's music or the music you don't want to copy to your iPod.

In an ideal world it would be possible to access all your music libraries from the sidebar in iTunes, but currently this isn't possible. Hopefully at some point it will be possible to change between your libraries without having to quit and load up iTunes again.
Comments

Make Selections to Copy Portions of Text Clippings

One of the things that has always been an annoying problem in Mac OS X is that the text in text clippings doesn't behave like normal text.

Text Clipping
You can create a text clipping by selecting a portion of text in any application and dragging it to the desktop (or anywhere in the Finder for that matter). Once you have done this, a text clipping file will appear, which you can open using the Finder.

The text in the clipping looks normal. For example, the text highlight cursor will appear when you put your mouse over it. However, if you try and make a selection you will find it doesn't work. This means that text clippings are only really useful for drag and drop. Instead of dragging text from one application to the other, you can store it on your desktop for a while before dragging it to somewhere else.


The functionality has been improved somewhat in the past few major updates of Mac OS X. Since Mac OS X 10.3 it has been possible to copy a text clipping by choosing copy from the Edit menu (or by pressing Command-C) instead of only being able to drag them.

Since Mac OS X 10.4 it has been possible to select a portion of a text clipping, but it's a little trickier than it should be. Remember I said you couldn't make selections in text clippings? Well you can... sort of.

If you drag over a part of your text clipping obviously it doesn't look like a selection was made - nothing is highlighted. But when you copy and paste into another application (TextEdit for example) you will find that only the text you dragged over was copied, not the entire text clipping as you would expect.

Now there are a few problems with this. Normally the text clipping will retain the style of the original text, however now it won't. Also it is still pretty annoying having to guess if you have selected the right text.

Luckily, Mac OS X Hints has an article on how to make selected text in clippings highlight.

Basically you have to edit one word in a file within the Finder application. To do this, open your Hard Drive and navigate to System / Library / CoreServices / Finder.

Right-click (or Control-Click) on the Finder and choose "Show Package Contents". Now you have to navigate to Contents / Resources / English.lproj. If you are using a different language, you will need to choose that one instead. Inside your language folder, right-click ClipWindow.nib and choose "Show Package Contents".

Here there are three files. Keep this window open because you will need it later. Copy objects.xin to your desktop and open it up in TextEdit. In this file you need to change one word. Look for this line:
<boolean name="noSelection">TRUE</boolean>
You can do this using Command-F to search for it or just look about 23 lines down. Change the TRUE to FALSE so it looks like this:
<boolean name="noSelection">FALSE</boolean>

Save and close the file, and drag it back to the ClipWindow.nib folder to replace the original file. You may be prompted to enter your administrator password to do this if you are not an admin. It is probably a good idea to make a backup of this file before you replace it, just in case everything goes pear shaped.

Finally, you will need to relaunch the Finder for changes to take effect. The easiest way to do this is to hold down Control and Option and then click on the Finder icon in the Dock. Choose Relaunch from the list.

Now you have wonderfully improved text clippings!
Comments

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.

Comments

Spotlight Tips

I've never written much about Spotlight on this site, as I never anticipated that many tips and tricks would be available for it. However, Spotlight currently offers loads of tweaks and shortcuts for improving and speeding up your searching. Here are my favourites.

By default, you can access Spotlight by using the keyboard shortcut Command-Space. You can also bring up the Spotlight window by pressing Command-Option-Space. Both of these shortcuts are customisable from the Spotlight pane in the System Preferences. If the chosen combination clashes with another one on your computer a warning symbol will appear next to it. To fix this, click on the warning triangle to go to the Keyboard and Mouse pane that allows you to view all keyboard shortcuts and see which ones are the same.

Spotlight Keyboard Shortcut

In all Cocoa apps (Safari, Mail, TextEdit etc.) you can quickly search for selected text in Spotlight. The first way of doing this is to Right-click (Control-click) on a word to bring up the context menu. The first option in the list is "Search in Spotlight". If you want to search multiple words, you will need to select them before bringing up the menu. You can also achieve the same effect by selecting the text and pressing Command-Shift-F (or by going to the Services menu and choosing Spotlight).


There are two ways of putting your contacts in the spotlight. The simplest method is to just type the person's name into Spotlight. The alternative option is to do it via Address Book. Select which contact you want to search, and from the Action Menu (looks like a cog, located in the top left) choose "Spotlight [name]". The spotlight window will pop up, and show documents, photos, iCal events, mail messages and iChats related to this person. This is one of my favourite features of Spotlight - it allows you to use it as a personal organiser and links together Address Book, iCal, Mail and iChat.

Spotlight from Address Book

Moreover, Spotlight remembers files that people have sent you. When searching for one of your contacts, Spotlight will list any files they sent as attachments to you, providing you received them in Mail.

To immediately choose the "Top Hit" press Command-Return. This shortcut makes Spotlight a bit better as an application launcher. If you press Command-Return on any other item it will bring up the enclosing folder in the Finder (i.e. Show in Finder). The same thing happens if you Command-click any item.

Spotlight indexes far more than you might expect. In iPhoto, keywords and photo titles are indexed, and in iChat your chat transcripts are as well. In terms of third party applications, Delicious Library indexes your movies and books, Microsoft Office indexes the author, title and description of your documents and Newsfire indexes the titles and contents of feed items.

On the Apple Spotlight downloads page there are loads of plugins to enhance your Spotlight searches. Some add Spotlight functionality to unsupported applications, while others allow access to internet search engines from Spotlight.

You can perform Spotlight searches from the Terminal. the mdfind command will perform a spotlight search with many flexible options. However you don't have to use the Terminal to access these advanced options. Mac Geekery has an article describing how to execute raw Spotlight queries from the Finder http://www.macgeekery.com/tips/how_to_execute_raw_spotlight_queries_in_the_finder

In the Spotlight window there is an info icon next to each search result. Clicking this will give you loads of useful information about that result. It's like choosing "Get info..." on a file in the Finder, only you can do it on iCal events, fonts, music, emails and contacts.

Spotlight Info


There are loads of keyboard shortcuts for manipulating the Spotlight menu. Most of these correspond to the normal behaviour in other Mac OS X menus. Use the Up and Down keys scroll up and down the menu. Command-Down will move to the first item in the next category, Command-Up Arrow will move to the first item in the previous category. Control-Up or the Page up key will move you to the first item in the menu, and Control-Down or Page down will take you to the last item in the menu. Command-Left and Command-Right will skip to the start or end of the search field, while Tab will select all text in the search field and Escape will clear it. If you press Escape with the search field empty, the Spotlight menu will close.

You can narrow you searches by specifying a kind. For example, to search for "Hello" but only in your music files, you would type "Hello kind:music". This can be done for almost any type of file - applications, movies, images, contacts and mail.

Using the same method as above, you can choose for Spotlight to only display files opened in a certain date range. For example, you would use "date:yesterday" to specify only files opened yesterday. Choosing a future date will display upcoming iCal events and to do items.

From the Spotlight pane in System Preferences you can enable, disable and rearrange categories. In the Privacy tab you can disable searching of specific locations.

Get Info Comments

To improve your Spotlight searches you can assign Spotlight Comments to files in the Get Info window. Access this by selecting your file in the Finder and pressing Command-I. Now you can set comments such as "urgent" or "temp" to make that file appear when those keywords are searched in Spotlight.

Comments

Playing with Half Minimized Windows

One of the comments on the Terminal Commands tip pointed out something I have never heard of before. Although it is entirely useless, (a lot of the stuff on this site is) I thought it was a nice trick:

They mentioned the killall Dock thing... if you hold shift and collapse a window it goes slowly into the dock. if you do a killall Dock command in the terminal while it's collapsing, the window freezes in it's squished state, while still allowing you to scroll in it and click links (although the links will be in their original location).
SleepingInsomniac | Homepage | 03.21.07 - 4:42 am | #


This is great fun, and also a little weird. As mentioned, you will need to press Shift while clicking minimize to slow things down and give you enough time to run the command. Have Terminal open with "killall Dock" ready typed so you just have to press enter. When the Dock relaunches, your currently minimizing window gets stuck half way, but is still treated like a normal window. Drag it around, scroll up and down, browse web pages. It's not perfect however - as SleepingInsomniac notes, the links on web pages are still where they were before you minimized, making things a bit confusing.

Check out the image below to get an idea of what it looks like.
Half Minimize

To get your windows back to normal you just need to close (Command-W) and reopen them.

Thanks to SleepingInsomniac for this!
Comments

Top 15 Terminal Commands for Hidden Mac OS X Settings

Update: This article is very old. Most of the Terminal Commands still work, but consider checking out our top Terminal commands for Leopard and Snow Leopard. Our Terminal Tips category also has loads of other ways help you get the most out of your Mac.

There are 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, but for the Finder and the Dock it is easiest to just type “killall Finder” or “killall Dock” into Terminal after the command.

To reverse any of them, just repeat the command with NO at the end instead of YES, or vice versa.

Feel free to add any of your favourites in the comments.

1. Make hidden applications' dock icons translucent.
defaults write com.apple.Dock showhidden -bool YES

Translucent dock icons hidden applications

2. 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.
defaults write com.apple.iTunes invertStoreLinks -bool YES


3. 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.
defaults write com.apple.dashboard devmode YES

Dashboard Widget on Desktop

4. Force all mail to be displayed as plain text.
defaults write com.apple.mail PreferPlainText -bool YES


5. Set expanded save dialogs as default (showing column/list view of folders rather than a drop down menu). Replace TRUE with FALSE to reverse.
defaults write -g NSNavPanelExpandedStateForSaveMode -bool YES


6. Display the currently chosen screen saver to be shown as the desktop background. Press Control-C or Command-. to stop. More details here.
/System/Library/Frameworks/ScreenSaver.framework/Resources/ ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background


7. Display useful system stats in the login window. More details here.
defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo SystemVersion 

Replace "SystemVersion" with one of the following for different stats:
SystemBuild 
SerialNumber
IPAddress
DSStatus
Time
HostName


8. To remove accounts from the login window type this command with the short name of each account you wish to remove. More details here.
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add shortname1 shortname2 shortname3


9. Skip disk image verification. Potentially risky, use with disk images from trusted sources.
defaults write com.apple.frameworks.diskimages skip-verify -bool YES


10. Put double scroll arrows at both ends of scroll bar. Use Appearance pane in system preferences to reset.
defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth

Horizontal Scroll-bar

11. Disable the unexpectedly quit dialog that normally appears when an application crashes. Replace "none" with "prompt" to enable again.
defaults write com.apple.CrashReporter DialogType none


12. Set the history limit in Safari to a certain number of items and and/or a certain age.
defaults write com.apple.Safari WebKitHistoryItemLimit 2000
and/or
defaults write com.apple.Safari WebKitHistoryAgeInDaysLimit 30


13. Show hidden files in the Finder.
defaults write com.apple.finder AppleShowAllFiles -bool YES


14. Enable the debug menu in Safari.
defaults write com.apple.safari IncludeDebugMenu -bool YES


15. Deactivate Dashboard. Requires the dock to be relaunched to take effect, so type "killall Dock" and press enter.
defaults write com.apple.dashboard mcx-disabled -bool YES

Comments

The Ultimate Customize Toolbar Shortcut

Here's a tip that (vaguely) follows on from 10 Tips for Mastering Finder Windows that I posted a few days ago. You know that little button in the top right of finder windows? Yes, the one that Windows users always click accidentally when trying to close the window. It normally just shows and hides the toolbar, but there is some great extra functionality.

If you want to customize the items in your toolbar (and there’s nothing wrong with that), just Command-Option-click the little white pill-shaped button at the top right of your window’s title bar, and the Customize Toolbar dialog will appear, right there in your window. Now you can just drag-and-drop icons onto the toolbar.



As well as dragging the customize items to your toolbar, you can also now drag files or folders as well. However, if you are only adding files to the toolbar you can just hold Command-Option while dragging them there - you don't need to bring up the customize dialog box.

From the customize dialog that appears you can choose from a number of items (shown below) and change the view options - icon, text or both.

Customize Toolbar in the Finder

The added benefit of Command-Control clicking this button is that it works in every application that allows you to customize the Toolbar. Note that these other applications don't allow you to drag your own files, folders, applications etc. to the toolbar. You can only choose items from the dialog box.

Comments

Another Way to Force Quit

A hint over at Mac OS X Hints describes a new way to bypass the Force Quit dialog box. If you click the Apple Menu, then press shift, you notice that "Force Quit..." has changed to "Force Quit [frontmost app]". This allows you to force quit an application without going through the process of loading up the dialog box, selecting the application and pressing Force Quit.

Force Quit Menu

However robg, the man in charge over at Mac OS X Hints notes that this tip is pretty useless - if an application is stuck so much that you want to force quit it, it is unlikely to respond to menu clicks. To access force quit through the Apple menu you often have to switch to a working application before clicking it. The keyboard combination (Command-Option-Escape) still works no matter what the frontmost application is, but at first appearances adding in the shift seems to do nothing.

This is where the Mac OS X Hints community step in through a discussion in the comments. Turns out you can use the shift in the keyboard combination, but you have to hold it for a few seconds. Hold Command-Option-Shift-Escape for about 2 seconds and the current application will force quit without the hassle of the dialog box. Neat!

You can also force quit using the dock as noted before here on Mac OS X Tips. Right-Click (Control-Click) an application's icon in the dock and if it is not responding there will be a Force Quit option in the contextual menu. If the application appears to be fine, you will need to hold Option to change 'Quit" to "Force Quit". Note that with the Finder you need to hold Option before you Right Click to make "Relaunch" appear.

Comments

10 Tips for Mastering Finder Windows

As one of the most commonly used Mac applications, it is worth taking some time to get to grips with the Finder. There is a wealth of little known features and ways to carry out tasks more quickly and efficiently using the Finder's settings, menus and keyboard shortcuts. These ten tips mainly address the basics of working with Finder windows, but hopefully there will be something new to everyone.

1. Normally you just double click to open an item, but if you hold option while doing it the current window will close as the new one opens.

2. Spring loaded folders allow you to easily drag a file wherever you want. If you drag the file onto a folder icon and hold it there for a while, the folder will spring open, allowing you to drag the file onto a folder within a folder. You can do this as many times in a row you want, and when you let go of the file all the windows that have sprung open will close again. Hold the Space bar while doing this to get rid of the delay before a folder springs open.

3. Look in the Finder Preferences (located in the Finder Menu) for more window options. For example you can change the delay for spring loaded folders, set the default location for a new finder window (Command-N) and set folders to always open in a new window.


4. You can change the view of your Finder windows by pressing Command-Option-T. This shows and hides the toolbar and sidebar. The contents of both of these are customisable by dragging files and folders to them (Hold Command and Option if dragging to the toolbar) or by choosing Customise toolbar from the View Menu. You can also resize the sidebar and turn it into icons without names.

5. To close every single Finder window, hold option while clicking the red X in the corner. Alternatively press Command-Option-W.

6. In list view (choose from the View menu or icons in the window toolbar) you can peek into folders using the expansion triangles. Option clicking one of these triangles will expand the folder along with any folders it contains. Option clicking again will collapse all these folders again.

7. In column view it is sometimes easier to navigate through the file structure using the arrow keys. In the other views this is still possible, but to go inside the selected folder press Command-Down. In list view Command-Right will expand the currently selected folder. This can be used with multiple folders selected to look inside them all at the same time.

8. You can do many tricks to resize column widths to the right size in column view.
9. Command-1, 2 or 3 will change you to icon, list or column view. Command-[ and Command-] will take you back and forward.

10. Another tip gives details on browsing a website by command clicking on the title bar in Safari. This works even better in the Finder. Command Clicking on the title bar gives you the path to the current location, allowing you to jump to any of the enclosing folders.

11. You can use the Go menu to quickly navigate to common places such as Home, Applications and your 10 most recent folders. Most of these places have keyboard shortcuts associated with them.
Comments

Slim Down iPhoto

If you have a large photo album, you can quickly see iPhoto start to take up large amounts of hard drive space. One reason for this is that every time you modify a photo (rotate, enhance, etc.) it creates a backup original. This is to allow it to have that magical "Revert to original" option.

If you have decided that you don't want your originals any more, getting rid of them can reduce the amount of hard drive space that your photo library takes up. There are two ways of doing this - using a few terminal commands, or using a free application called iPhoto Diet.


The terminal commands are from this MacRumors forum and come with a brief explanation of what they do. To run them, paste the following into the terminal:

mkdir ~/.Trash/iPhoto-Originals
cd ~/"Pictures/iPhoto Library/Modified/"
find . -type f -exec mv "../Originals/{}" ~/.Trash/iPhoto-Originals/ \;

This gives you a folder in the trash so you can check all the right photos are there before emptying it permanently. A summary of everything in the MacRumors forum has been made by Adriaan Tijsseling on his blog.

iPhoto Diet is a free application by Martin Fuhrer that does the same thing, but with more options and a nice user interface. This may take a little more time than the terminal commands, but it is much more user friendly and gives greater flexibility. It allows you to reduce you photo library size in the following ways:

• eliminate duplicate photos created internally by iPhoto or imported by yourself
• remove iPhoto's backups of rotated or modified photos
• strip the thumbnail icons of your photos
• remove thumbnail photos that have become mixed up with your high resolution photos
• identify photos which have not been added to albums
• weed out unnecessary folders and files from the library
• and more!

Download Links, installation instructions and an FAQ are available from Martin Fuhrer's site.
Comments

AddressBookToCSV: Your Address Book in Gmail

A lot of people use gmail. A small part of those people are mac users with the macintosh address book application. And probabaly 95% of those users use Address Book with Apple Mail. The problem is that if you send an email through the internet based gmail but normally send them through Apple Mail, then, unless you have the address memorized, you'll need to get the address.

Why not just upload your email addresses from Address Book to gmail. Using AddressBookToCSV you can do just that. It will export your Address Book to a format read by the gmail internet application so that no matter where you are, you can have you addresses!

This tip was written by MacTipper, a great blog with loads of tips for Mac OS X. Check it out.
Comments

Get more iPod storage details in iTunes graph

When iTunes 7 came out, Apple competely redesigned the iPod section in iTunes. You can now look at all the different kind of files on your iPod using the bar graph at the bottom of the page. This shows the total capacity of the iPod, and how much of that is being used up by Audio, Photos, Videos and Other files. To see this, plug in your iPod and open up iTunes. Click on your iPod in the Devices section in the left hand column.

iPod Storage Graph in iTunes

It gives you the details in terms of the iPods storage capacity, that is, in bytes. However, you can also use the graph to display a count of how many songs, photos and videos your iPod contains or how long it would take to listen to all the songs and watch all the videos.


Change to this mode by clicking on the graph itself. Clicking once will cycle to the number count, clicking again will change it to the time count, and clicking one final time will change it back to the storage capacity.

iPod Storage Graph in iTunes

iPod Storage Graph in iTunes

Comments

Set half star ratings in iTunes

One feature that I missed back when iTunes 6 came out is the ability to set a song rating to a half star. This can be used if you often find yourself thinking a song is not quite a four star, but definitely more than a three star, then you can carry out this simple tip to make it 3½ stars.


The way it works is that ratings are stored as a number between 1 and 100 as increments of 20. For example, 1 star is 20, 2 stars is 40 and so on. Using a little bit of trickery you can set the rating at 10, 30, 50, 70 or 90 giving a half star rating between two of the normal ones. Note that setting the rating to something like 31 just breaks the whole thing and your rating will just show up as one star.

4 and a Half Star Rating in iTunes

To set a half star rating, just open up script editor (search spotlight or go to Applications/Applescript) and paste the following line:

tell application "itunes" to set rating of current track to 30

The number at the end can be changed to one of the following:

10 gives ½
30 gives *½
50 gives **½
70 gives ***½
90 gives ****½

To make the change, click "Run" at the top of the window. To get rid of the half star rating just click on a normal rating in iTunes, or run the script again with 20, 40, 60 or 80 instead.

Script Editor

This method is slightly inconvenient if you have to load up script editor every time you want to rate a song, so luckily iTunes has built-in script support. Doug Adams has even made a whole site dedicated to providing scripts for it - Doug's AppleScripts for iTunes. From there you can download Add-Substract A Half Star which is a script like the one above, but compiled into an application. Save this file in

Users-->[username]-->Library-->iTunes-->Scripts

iTunes Library Folder

If the scripts folder doesn't exist, you will need to create it.

Quit and re-open iTunes if it is already open, then in the menubar next to the Window menu there will be a little script icon. From there you can choose to add or subtract a half star from the rating of the current song.



On his site, Doug also explains how you can assign a keyboard shortcut to the script.

Comments

DigitalColor Meter Tips

One application that is extremely useful when doing any kind of design work is the DigitalColor Meter. It allows you to get the exact RGB values for any pixel on the screen, which is great for finding out which colours are used in web pages or photos. This is just about the only thing that it does, but it does it well. You will find the DigitalColor meter in Applications/Utilities.


You can get the color details in many different ways, the most common being RGB values. In web design it is useful to have the RGB as an 8-bit Hex value, and in the Mac OS X color picker you can type in the actual 8-bit RGB values.

Using the DigitalColor meter is pretty straightforward - Move the cursor over the pixel you want to sample, and read off the values. There are some extra tools to help you do this however.

You can change the size of the area sampled by sliding the "Aperture Size" slider. On the far left it looks at each single pixel, but to the right it averages multiple pixels to give the overall effect.

DigitalColor Meter

When you are using the mouse to choose the color from an area of the screen, you obviously can't go up to the menus at the top to choose any options. Therefore everything has to be done with keyboard shortcuts. (The options are still located up in the menubar, so you can check what shortcut does what if you forget). They are as follows:

- Command-X : Lock Horizontal Position
- Command-Y : Lock Vertical Position
- Command-L : Lock Position
- Command-Shift-H ; Hold Color

Once you have chosen the colour you want, you can use the following shortcuts to copy it:

- Command-C : Copies the Image in large box on the left
- Command-Shift-C : Copies the RGB values as text
- Command-Option-C : Copies the solid color as an image

It is also possible to save the image as a TIFF file by pressing Command-S.

Comments

Calculator Modes

Calculator
Here's one for the mathematicians. There are a number of ways to cycle through the 3 calculator modes - Basic, Scientific and Programmer. You can find all three in the View menu, or you can cycle through them by pressing Command-1, Command-2 or Command-3. If the mouse just happens to be closer, you can more easily change mode by clicking the green zoom button next to the close and minimise buttons in the top left.
Comments

Secret advanced editing mode in iPhoto

The built-in red eye and retouch editing tools in iPhoto are amazingly easy to use, but pretty basic in what they can do. Luckily, in iPhoto 6 there is a secret advanced editing mode that allows you to make these tools even more useful. When this mode is activated you can control the size and strength of both the retouch and red eye tools.

iPhoto Edit Preferences

First off, you need to check your settings are right. Load up iPhoto and go to the Preferences located in the iPhoto menu. You can only access the advanced editing mode if you have iPhoto set for image editing. Also, if you have iPhoto set to edit in a separate window, the advanced editing mode will be reset every time you enter edit mode. Choosing "Edit in Main Window" will make the advanced editing mode stay active until you quit iPhoto.


As usual, you need to double-click any image to enter edit mode. Choose the tool that you need (either retouch or red eye) by clicking on the icon at the bottom. Once this is selected, press Control-Caps Lock-9 at the same time, then release them. At first nothing will happen, but you are now in advanced editing mode. Pressing tab will cycle through the different advanced features, which will be shown by the cursor changing shape.

Red Eye and Retouch

If you chose red eye, pressing tab once will switch the small cross hairs cursor to a large oval. Now, pressing the [ and ] keyes will allow you to resize the area of red eye correction. Pressing shift while clicking to apply the red eye correction will result in a lighter fill than with the normal tool.

If you chose retouch, pressing tab once will change the cursor to a circle with a number below it. This shows the size of the retouch tool. To resize it, press the [ and ] keys as with the red eye tool. To change the strength of the retouch, press Shift-[ and Shift-] and the number will change to show this. If you press tab a second time, the retouch tool changes into the lighten tool, which just lightens the area under the circle. As with the other tools, press [ and ] to resize it. Pressing tab again will bring you back to the normal retouch tool.

Quitting and re-launching iPhoto will return you to the normal editing mode, so you need to redo the Control-Caps Lock-9 keyboard shortcut if you want to enter the advanced mode again.

Comments

Printing To Do lists in iCal

iCal offers a special customised print dialog, allowing you to print calendars and to do lists in a number of different ways. While iPhoto offers a nicer way to publish complete calendars, the print options in iCal give a great way to print to do lists.

Start by going to File --> Print or hitting Command-P. A large preview window appears, with many options down the right hand side. The default settings will print a normal calendar in month view. To change this to a simple to do list, change the first popup menu from Month to List. Choose your date range using the settings below, and uncheck all the boxes in the Options sections apart from "To Dos".

Your page will show all to dos dated in the range you specified, as well as any undated to dos. If you don't want any of the undated to dos to show up you can delete them, or move them to another seperate calendar that isn't set to print.
Comments

Tips for Deleting Stubborn Files

At some point, everyone encounters a file that just won't delete. The most common situation is a file that sits in the trash and refuses to be deleted, however many times you restart your mac. Here are 4 different methods for removing stubborn files, at least one of which is guaranteed to work.

Method 1 - Secure Empty Trash
Probably the most simple solution, and almost always works. Go to the Finder Menu in the top left corner of the screen and choose "Secure Empty Trash" located right below the usual Empty Trash. Secure Empty Trash is normally used to make sure deleted items stay deleted by writing over them multiple times with random data. Luckily this option seems to be more effective with stubborn files than the regular Empty Trash.

Method 2 - Third Party Applications
There are many applications available that allow you to force the trash to empty. One that is completely dedicated to it is Super Empty Trash, a free application with the sole purpose of helping you empty your trash. There are a few alternatives that perform many other tasks as well, such as OnyX (free).


Method 3 - Using the Terminal
This method requires a bit of care, as making a mistake in the Terminal can result in things going horribly wrong. To delete a file using this method, first open up the Terminal, located in the Applications/Utilities folder. Type in "rm -f " without the quotation marks, and with the space after the f. Then find the file that wont delete, and drag it to the Terminal window, and the path to that item should appear. Double check that this is the thing you want to delete, then press enter. If the item that won't delete is a folder rather than a file, type "rm -rf " instead.

If this still doesn't work, the next stage is to use "sudo rm -f " instead. This is a little more dangerous as you can accidentally delete lots more vital files. Carry out the steps as above, and this time you will be prompted to enter an administrator password.

Method 4 - Creating a temporary user account
This method is a little time consuming, but it is great if you don't want to use the Terminal. Start by going to the Accounts preference pane in the System Preferences and creating a new user account. It doesn't matter what details you give it, just remember the password. Next, move the troublesome file from your trash to the Shared folder, located in the Users folder. Log out of your account and log into the newly created one. From here, move the file into this users trash. Then log back out, and go back to your normal user account. Return to the Accounts pane in the System Preferences and delete the temporary account by selecting it from the list and hitting the delete key. Select Delete Immediately from the dialog box that appears, and the user account will gone, along with the stubborn file.
Comments

Customising the Terminal

This tip is quite a geeky one, but nothing in it is too tricky at all. It has no real serious purpose, but it will make your Terminal windows look pretty and help you get familiar with Terminal's settings if you aren't already.

Terminal Inspector
Many Terminal users will already know how to change the colour and transparency of Terminal windows. The most basic method is to choose the Terminal menu, select Window Settings (or press Command-I). This brings up the Terminal Inspector. Choose color from the drop down menu, and you will be presented with all the customisation options.

There are some predefined colour schemes, such as the popular green on black, or you can make your own. It is also possible to set an image as the background, and choose the transparency of the window.

It is also possible to create colour schemes using different methods, such as the one outlined in this Macworld Article.

To set a colour scheme as the default, click the button at the bottom of the Terminal Inspector.


But what if you want multiple colour schemes, or you want to send one to someone else? Luckily you can save these settings simply by saving the terminal window.

Choose all your colours and settings as above, then click the File menu and choose Save As. Navigate to Library/Application Support/Terminal. If you don't have a Terminal folder in Application Support, create one. Save the file here with a name like "colour-scheme1.term".

Now, a Terminal window with the saved settings can be opened by choosing File --> Library --> colour-scheme1. To save one of these files as the default, go to the Terminal preferences and select "Open a saved .term file when Terminal starts" then select your chosen file.

Terminal Preferences

Here are a few ready made colour schemes for you to download.

Terminal Colour Schemes


As an extra quirk, you can make Terminal choose a random colour scheme using a handy applescript created by Daniel Jalkut. It can create some pretty horrible combinations, but it does contain and algorithm to make sure the contrast of the text on the background is high enough.

Comments

Mail URLs in Brackets

This tip is really a general Mail tip that isn't specific to the Mac, but I'm sure many mac users have had the experience of their mail client chopping off the end of long URLs. When this happens, the person who received the message containing the URL can't click on it to go to the web page.


An easy way to avoid this is to put your URL in when sending it. When the person you are sending it to receives the email, the URL will still be nice and click-able.


Comments

Automate your Mac

We all have to admit that we are pretty lazy at times, and would love to make our computers do stuff automatically. And because we are lazy, we can't be bothered with stuff like Applescripts that are far too much effort to create. Here are a few tips to automate your Mac and make your life that little bit easier without going over the top with scripting.


The first thing to do is to make your Mac turn on by itself. You can set it to do this in the Energy Saver preference pane in System Preferences. Just load it up and click "schedule" and choose a time to start up (and/or shutdown) and on which days you want this. This will also wake up your Mac if it is asleep, but this might not work if you have a password enabled screensaver.

energy saver schedule system preferences


Instead of loading up the same web browser, email client and iTunes every time you start up your computer, you can set them as login items in the Accounts preference pane. Choose the login items tab, click the plus and select the applications you want to automatically start up. Popular ones are Mail or Entourage, Firefox or Safari and iCal.



As far a scheduling specific applications goes, you have to use applescripts or automator actions for most of them. If you aren't completely super lazy, it is pretty straightforward to create a workflow in automator that opens up a list of websites, or starts an iTunes playlist going. To get this worklow to be carried out at a certain time, create an event in iCal and set an alarm. As the alarm action, set it to open up the automator file.

However, in some applications you can get the same results without making workflows or scripts. For example, in Firefox you can set multiple websites as your homepage, and all of these will open up when you start Firefox. There are two ways to do this. The first is to create a folder of bookmarks with all the sites you want to load on startup. After creating this folder, go to the Firefox preferences and click "use bookmark" to select the folder. The alternative way is to type in each address into the homepage field with a | (pipe) in between. Be sure to set Firefox to load your homepage on startup using the dropdown menu.



Finally, some applications have built in scheduling capabilities. Microsoft Entourage has tools to set Send and receive schedules that check for email at certain times and Apple's Backup has its own scheduling feature to carry out automatic backups however frequently you want.

You can use all of these features to automate your Mac and make sure that you never have to carry out a tedious task again.

Comments

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, go to options, then choose “Open at Login”. To undo this, just repeat the process.
Comments

Google Notifier's Hidden Features

If you are using Gmail and choose not to receive your email in mail.app using POP, chances are you are using the free Google Notifier (formerly Gmail Notifier). This is a menu bar item that alerts you when new mail arrives and in its latest version, adds Google Calendar functionality.

Google Notifier Menu Bar

One of the greatest benefits of this piece of software is its simplicity - just put in your Google ID and password and everything works. At times this makes the notifier look somewhat limited, however this couldn't be further from the truth.

The first hidden feature is to customise the number of messages shown in the notifier menu. By default, the menu shows the last four unread messages received (or the last three received and an additional "View More" submenu). To change this, pull down the notifier menu and hold Command and Option while clicking on preferences. This brings up a hidden settings editor where you can easily edit the notifier preferences file.


In the "Key" field, enter "MaxMessagesOnMainMenu" and in the "Value" field enter the number of messages you want on the main menu. Click Set, and then quit and reload Google Notifier. Now when you click on the notifier menu bar item, you will see the number of messages that you set. To return to the default setting, repeat the prcoess, putting 4 in the value field instead of the number you entered last time.


The second trick can be done in much the same way. If you only want the notifier to fetch mail with a certain label, you can create a filter. As before, click on the notifier menu and Command-Option-Click on preferences. This time, in the key field enter "Label" and in the value field enter the name of the label you want to receive. To receive all mail, leave this field blank. And again as before, quit and reload the notifier for changes to take effect.

When you set these preferences, you are actually editing Google Notifier's preference file (Library/Preferences/com.google.GmailNotifier). If you want, you can load up this file with Property List Editor or TextEdit and changes things yourself (be careful!) or you can achieve the same effect using the Terminal (Applications/Utilities). For example the previous trick could be done by typing the following into the Terminal:

defaults write com.google.GmailNotifier Label -string “YOURLABELHERE”


Finally you can extend Google notifier using plugins. I found the following on the Official Google Blog:

The Gmail Notifier supports plugins written in AppleScript, or full-blown Cocoa Bundles in Objective-C. Details about the Objective-C plugin API can be found inside the Gmail Notifier application bundle in the required header file, GGPluginProtocol.h (control+click Gmail Notifier.app -> Show Package Contents -> Contents -> Headers).

AppleScript plugins are written by simply implementing a handler like:

on NewMessagesReceived(messages, fullCount)
-- Your code goes here...
end NewMessagesReceived

To install, simply copy the script (plugin) to Library/Application Support/Gmail Notifier (create the directory if it doesn't exist), and restart the Gmail Notifier. An example of a great plugin for the Gmail Notifier for MacOS X is the Gmail+Growl plugin, which sends Growl notifications when new mail arrives.

Comments

Get useful system stats in the Mac OS X login window

When you start up your mac and the login window pops up, you have a big shiny apple logo and the words Mac OS X. Below these words you usually see the name of your mac, whatever that may be. For most people that isn't very useful, as you have to have a lot of the same models knocking around to get confused between computers, and luckily since Mac OS X 10.4.3, this line has been made much more informative.

Since this version, you can click on the name of your mac to show different statistics about your machine. Each time you click, it will cycle through different bits of information that are particularly useful when troubleshooting problems.


The order of the statistics are as follows:

One click: Your OS X version number (e.g. Version 10.4.7)
Two clicks: Your OS X build number (e.g. Build 7M271)
Three clicks: Your mac's serial number (e.g. WN1511LHKNW)
Four clicks: Your mac's IP address (e.g. 196.254.0.1)
Five clicks: The status of any networked account
Six clicks: The date and time (e.g. Saturday, January 20 2007 4:02:31 AM GMT)
Seven clicks: Back to where you started, the name of your computer.

So you click a few times and set the information line to your favourite thing, but next time you log in, it has changed back to the name of your mac. To change the bit of information that appears first, you need to do a bit of tinkering in the Terminal (Applications/Utilities). Open Terminal and type the following command:

defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo info_name


Depending on which piece of information you want displayed, replace info_name with one of the following:

SystemVersion
SystemBuild
SerialNumber
IPAddress
DSStatus
Time

After doing this, hit return, and the next time you view your login window the information you chose will be displayed.
Comments