Mail notifications, while useful, can be overwhelming. That's why Mail can restrict the notifications (Dock badge and Notification Center) to a specific mailbox or Smart Mailbox.
Notifications restriction is available from Mail's Preferences; however here is a way to change this setting using a script, without going through the GUI.
This is especially useful when used with location-aware apps, such as Marco Polo or ControlPlane: you can automatically be notified of your professional e-mails only when at work, and of your personal emails only when at home, for instance.
I find it especially useful to keep focused and reduce the amount of distracting notifications.
# Configure Mail.app to enable notifications only in the specified mailbox.
# Notifications include the Dock badge and messages in the Notification Center.
# restrict-mail-notifications smartmailbox://f687826d-f4de-4724-9a12-c5794dcdaa32
# To find the mailbox id you're interested in, look in the com.apple.mail.plist file.
if [ ! -n "$mailboxID" ]; then
echo "Error: "mailboxID" parameter missing."
echo "Usage: $0 "
# Only display the unread messages count in the Dock for the specified mailbox
defaults write com.apple.mail MailDockBadgeMailbox "$mailboxID"
# Only display notifications for incoming messages in the specified mailbox
defaults write com.apple.mail MailUserNotificationScope -int '4' # Smart mailboxes
defaults write com.apple.mail MailUserNotificationMailbox "$mailboxID"
# Now relaunch Mail.app for changes to take effect
In iOS, whenever you view a document attached to an e-mail, you can click the Share button to send the document to a list of compatible applications, not just the preferred one. The same option is available in Mountain Lion whenever you use Quick Look to view a document.
When you display a document using Quick Look, you can now right-click on the "Open in xxxx" button, and see a list of compatible applications. This makes it easy to open, for example, a spreadsheet or graphic in your application of choice instead of the default application.
Safari lets you choose from three search engines: Google, Yahoo! and Bing. You may want to use a different search engine, and Matt Swain's AnySearch Safari plugin lets you do that. It can also turn off Safari's 6's "omnibar" so it doesn't search, and only functions as an address bar.
As a bonus, his KeySearch extension can expand the use of the omnibar to let you search on many sites, such as Wikipedia, Amazon, IMDb, and any site you wish to search, just by using keywords. For example, you can type "wiki Marcel Proust" to search for the Wikipedia page of that author.
If you've tried burning the Mountain Lion installer to a standard DVD, you've probably noticed that it does not quite fit. Fortunately, there is a way around this.
The problem is that the size of the InstallESD image is fixed at 4.75 GB; slightly larger then a 4.7 GB single-layer DVD. However, the actual contents of the image occupy only 4.38 GB on disk, which will fit on a standard DVD.
In order to cram Mountain Lion onto a standard DVD, we need create a slightly smaller image file of the exact same format, copy the contents over, then burn it to a DVD.
I've written a small script to make this process quick and easy. Simply paste the code below into a plain text document and save it with a file extension of ".sh" To run the script, fire up Terminal and enter "bash /path/to/script.sh". When this script finishes, you will have a new, smaller DVD image in your home folder, ready for burning.
NOTE: This script assumes you have the "Install OS X Mountain Lion" application in /Applications. It won't work if it's located elsewhere. You'll also want to make sure you have at least 9 GB of disk space free, as the script temporarily creates two additional copies of the install image.
rm -f /private/tmp/Mountain\ Lion\ DVD\ Image\ read-write.dmg # Remove any old copies of the DVD image before we begin.
echo "Creating DVD Image..."
hdiutil create -size 4.2g -volname "Mac OS X Install ESD" /private/tmp/Mountain\ Lion\ DVD\ Image\ read-write.dmg -fs HFS+ -layout SPUD
# hdiutil attach -nobrowse /Applications/Install\ OS\ X\ Mountain\ Lion.app/Contents/SharedSupport/InstallESD.dmg
hdiutil attach -nobrowse ~/Desktop/InstallESD.dmg
hdiutil attach -nobrowse /private/tmp/Mountain\ Lion\ DVD\ Image\ read-write.dmg
echo "Copying Mountain Lion to new image..."
cp -pRv /Volumes/Mac\ OS\ X\ Install\ ESD/* /Volumes/Mac\ OS\ X\ Install\ ESD\ 1/
hdiutil detach /Volumes/Mac\ OS\ X\ Install\ ESD\ 1
hdiutil detach /Volumes/Mac\ OS\ X\ Install\ ESD
echo "Converting to read-only..."
hdiutil convert /private/tmp/Mountain\ Lion\ DVD\ Image\ read-write.dmg -format UDZO -o ~/Desktop/Mountain\ Lion\ DVD\ Image.dmg
rm -f /private/tmp/Mountain\ Lion\ DVD\ Image\ read-write.dmg
echo "Image Creation Complete. Please burn '~/Desktop/Mountain Lion DVD Image.dmg' to a DVD using Disk Utility."
[kirkmc adds: I haven't tested this. Given the cost of USB sticks, and the fact that, if you do want an installer, it's better to have the most recent one, I've gone that route using Lion DiskMaker. Some people may prefer DVDs, but another factor is whether or not your Mac has an internal DVD drive; my Macs - a Mac mini and a MacBook Pro - do not, so USB is easier than using an external drive.
Note: I've updated the script in the hint to the last revision below in the comments as of 8/18/12.]
Just go to All My Files and the files will show up in their respective categories (or organized another way if you prefer). The path bar for these files lists their location as simply "iCloud." If you don't have All My Files visible in the Finder sidebar, you can add it by going to the Finder's preferences and checking it.
[kirkmc adds: This is interesting, but it's too bad there's no "iCloud" category to find them more easily; they're mixed in with all your other documents. Of course, the whole point of iCloud is that you don't worry about where the documents are…]
I discovered while adding some new Mail rules that existing rules which ran an AppleScript seemed to be missing the scripts I had designated, even though they were still in my Scripts folder (~/Library/Scripts). Upon clicking the "Open in Finder" option in the drop-down menu for choosing an existing AppleScript, it took me to a new file path: ~/Library/Application Scripts/com.apple.mail.
You just need to copy or move the scripts to the new folder. Mail seems smart enough to remember the earlier choice and update the rules by moving the scripts to the new folders.
[kirkmc adds: This probably has something to do with sandboxing. The only other application I use AppleScripts for is iTunes, and their location hasn't changed. Can anyone post in the comments if they see other folders in the Application Scripts folder?]
Google introduced a custom print dialog to Chrome a few versions ago. This adds a step to saving a PDF or using any of the other standard options. Until recently, this could be disabled in chrome://flags/. They have since removed the flag, but they did leave the command line option to disable it.
A workaround is to create an AppleScript applet that launches Chrome with this option. The following script does exactly that, assuming Chrome is located in your applications folder:
Open AppleScript Editor, paste the above into a new window, then save it as an application. If you run this applet to launch Chrome, you'll get a standard Print dialog (though interestingly it's a dialog window, not a sheet).
Well I, and many others, thought that this was missing, since there's no longer an arrow to click on in the search field, make that the "omnibar." But it turns out that there's an easy way to get to your search history. Just click in the omnibar, or press Command-L, and press the spacebar. The Recent Searches menu will display, along with the options to change search engines.
Migrating Mail from Lion to Mountain Lion leaves behind a folder containing previous attachments.
Attachments in Lion were saved to ~/Library/Mail Downloads, but under Mountain Lion, Mail is now sandboxed, and the new path is ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads.
During the upgrade, the folder contents are copied from the old location to the new, so the old location can be deleted to save some space.
[kirkmc adds: While this may not save a lot of space, if you get a lot of e-mail with attachments, you may have plenty of files in that folder. I clean mine out from time to time, so it's good to note the new location.]
I've been wondering when the 'skip to top' functionality that is now a staple in so many iOS apps would appear on OS X. It seems to be here now, albeit in a limited fashion. As such, this hint only seems valid for Firefox.
In order to skip to the top or bottom of a web page, simply swipe up or down on your trackpad using three fingers.
[kirkmc adds: Yes, this works in Firefox, and in Opera, it moves about 4/5 of a screen.]