Imagine that you run a script automatically on your Mac, and that you want to check the result of that script. There are many ways you could do this, such as remotely connecting to the Mac, or sending the results by e-mail. But with iCloud, you can also save the output to a file and put it on iCloud, where you can access it with your favorite iCloud-compatible text editor on another Mac, or on an iOS device.
To do so, simply send the output of the script to a file like this:
So, to save a list of a directory's contents, you'd use this:
ls -al > ~/Library/Mobile\ Documents/com\~apple\~TextEdit/Documents/list.txt
That saves a file called list.txt in TextEdit's Documents folder. Look inside the ~/Library/Mobile\ Documents folder for the paths to other apps you have that can use iCloud. Each folder in the Mobile Documents folder has a Documents sub-folder. Depending on the app, you may be able to access the files on another Mac or on iOS.
If you paste the link into an application that can recognize it as a link, it will be clickable, and will open the e-mail. For example, TextEdit will display this as a link, if you're using an RTF document. I use BusyCal as my calendar application, and pasting an e-mail link in the Notes field results in a clickable link; however, Apple's Calendar doesn't recognize it as such. The Scrivener word processor recognizes it as a link, but Microsoft Word doesn't.
In previous versions of OS X, you could access a secret Debug menu in iCal - now Calendar - offering many interesting options. Apple removed any way to activate this menu in Mountain Lion, but you can still access some options. I like to have two weeks displayed in week view in Calendar. To do so, quit Calendar and open Terminal, then type:
defaults write com.apple.iCal CalUIDebugDefaultDaysInWeekView XX
replacing XX with the number of days in the week. You can even use very large values, such as 90, to display 3 months in a week view, though each day will be very small.
To go back with the 7-days-a-week view, simply type:
The default save location for TextEdit (and other apps that can store documents on iCloud) is iCloud. It takes a few clicks if you want to expand the save dialog and save a file locally. There is no way to change this in the GUI, but if you run the following command in Terminal, this will set the default save location to On My Mac for all iCloud-compatible apps:
In Mountain Lion, movies are now locked into Quicktime so the folder structure containing your .mts movie files on SD cards and devices is now all hidden under a file called PRIVATE. To get to the files, hold down the Control key and click on the PRIVATE file. In the popup menu, select Show Contents and repeat through the files until you reach your original .mts files, which can then be dragged to the desktop.
[kirkmc adds: I have to plead ignorance here. I don't have anything that puts movies on SD cards, so if others could confirm this I'd be grateful.]
In the Mountain Lion Reminders app you don't have to click the Inspector button (i) to edit a reminder; just double-click anywhere except on the title of the reminder.
[kirkmc adds: To be precise, you can edit the name of a reminder by double-clicking on it, just like any text in a word processor or text editor. But to display the Inspector window, you have to double-click somewhere in the same line, but not on the text. So you can double-click to the right of its name, if it's short, or if it's too long, you can double-click in the margins above or below it, or to the left of it. You can also click on a reminder and press Command-I to get the Info window. The help says to double-click a reminder, which is not quite true.]
You can create a folder from a selection of files, instead of creating a folder first, then moving files in. In the Finder, select any files you want to put into the same folder. You can do this in any Finder window, including the Desktop or from the results of a Spotlight search (not the Spotlight menu itself). Right-click on any one of the selected files, and the top menu item is New Folder with Selection (number of Items). When you choose that command, a new folder will be created, and the files literally leap into the folder (cute animation!). The new folder is called New Folder With Items, and you can change its name.
[kirkmc adds: This isn't new, it was added in Lion. But it's a nifty thing to be aware of; I use it often. My guess is that a lot of people don't know about it.]
Mountain Lion has added the ability to view multi-page previews of Word documents when you hover your cursor over the icon, as has been possible with PDFs since Lion.
To see a preview, hover your cursor over a Word document. You'll see two arrow icons on the document icon; you can click to the right or left to view different pages.
However, in Icon View, these previews only display if the icons are 64 pixels or larger. They display in Column View, and in Cover Flow View, no matter what size the icons are in the top of the Cover Flow View window.
If you go to the Time Machine System Preference and click on Select Disk, if you already have a disk set as your backup and you select a second disk, you are presented with a dialog asking if you want to delete the current disk or use both disks for Time Machine. You are told that if you us both disks, Time Machine will take turns backing up to both disks. Nice touch to allow backups at work and home to happen at the same time!
[kirkmc adds: This is one of the features that Apple mentioned about Time Machine in Mountain Lion. The backups rotate, and you can either use disks at home and at work, or even two disks in the same place if you are paranoid about backups (as I am).]
With the Share button in Safari on Mountain Lion, you can share web pages using Twitter or Messages. There are no default keyboard shortcuts, but you can create your own.
Open System Preferences, click on the Keyboard icon, then the Keyboard Shortcuts tab. Click on Application Shortcuts, then click on the + icon. Choose Safari as application, then enter either "Twitter" or "Messages" as the Menu Title. Enter the keyboard shortcut you want; I use Command-Control-T for Twitter and Command-Control-M for Messages. Click on Add to apply the shortcut.
Quit Safari and relaunch it. If you click on the Share button in the toolbar, you won't see your new shortcuts, but they work. You can see them by choosing File > Share.
Whenever you want to share a web page via Twitter or Messages, you can now do so with a single keystroke.