I had many applications show up as "Installed" in the update pane of the Mac App Store even after I had updated them. Apparently, if you have copies of an application on your system, even on a secondary drive, they are discovered by the Mac App Store. This causes a problem if you have a copy an application in the /Applications directory as well as somewhere else on your drive. If you update the application in the /Applications directory but not the other instance then the Mac App store will display the application on the Update Pane, but list it as "installed". Simply deleting the other instance of the application will cause the Mac App Store to refresh it's data and remove the application from the update list.
[kirkmc adds: I was seeing that in the early days of Mountain Lion. After running the updates again, they disappeared; I didn't think to check my backup drive, were I clone my startup volume, to see if those copies of my apps got updated.
I just checked the Mac App Store and found two updates waiting for me. (I thought it was supposed to alert me when there were updates?) I updated one app, quit the Mac App Store, then re-launched it; that app was no longer listed. So this may be a transient problem that Apple has resolved, but I'm publishing it anyway, in case others still see this issue.]
PDF files with horizontal lines and rectangles, but not created as PDF form files, can be filled in as if they were actual PDF form files. Clicking on a line starts a text field the same width as the line. Clicking on a small rectangle toggles a check mark. Rectangles large enough for text entry are not treated as check boxes, but as text fields the same width as the box. After entering text on a line or in a text box, the text may be moved anywhere on the document and retain the formatting. And unlike PDF form files, text attributes as well as text field widths can be changed at will.
[kirkmc adds: I made a test document with Pages, and it works as described. This is pretty neat. I don't know if this is new in Mountain Lion, or if it existed before.]
So, as a reminder, to flush the DNS cache in Mac OS X 10.5 and 10.6, run this command in Terminal:
sudo dscacheutil -flushcache
To do the same in 10.7 and 10.8, run this command:
sudo killall -HUP mDNSResponder
As Apple points out, you might need to do this in the following situation:
"OS X keeps a local cache of resolved DNS queries for a time defined by the DNS server, but sometimes it may be necessary to reset the cache immediately and re-query a DNS server. For example, you might do this after an entry on the server is changed or a new entry is added."
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?]