Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Send Terminal output to iCloud UNIX
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:

~/Library/Mobile\ Documents/com\~apple\~TextEdit/Documents/filename.txt

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.
  Post a comment  •  Comments (4)  
  • Currently 2.80 / 5
  You rated: 1 / 5 (5 votes cast)
[4,479 views]  View Printable Version
Drag e-mails to Notes, and save links to e-mails Apps
You can drag an e-mail from Mail to Notes, and Notes will display a clickable link with the subject of the e-mail. Click that link to open the e-mail in Mail.

What's interesting is that you can then copy the link to the message by right-clicking and choosing Copy Link. When you paste the link into a text editor, it will look something like this:

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.
  Post a comment  •  Comments (2)  
  • Currently 3.00 / 5
  You rated: 4 / 5 (6 votes cast)
[3,921 views]  View Printable Version
Choose number of days displayed in week view in Calendar System 10.8
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 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:
 defaults write CalUIDebugDefaultDaysInWeekView 7 
and relaunch Calendar.
  Post a comment  •  Comments (11)  
  • Currently 4.25 / 5
  You rated: 5 / 5 (8 votes cast)
[10,441 views]  View Printable Version
Change the default save location from iCloud to On My Mac
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:
 defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false 
To change this back to the default, run this command:
 defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool true 
  Post a comment  •  Comments (11)  
  • Currently 4.84 / 5
  You rated: 5 / 5 (19 votes cast)
[28,485 views]  View Printable Version
Access AVCHD .mts files System 10.8
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.]
  Post a comment  •  Comments (11)  
  • Currently 3.60 / 5
  You rated: 1 / 5 (5 votes cast)
[47,127 views]  View Printable Version
Edit reminders without clicking the 'i' button System 10.8
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.]
  Post a comment  •  Comments (1)  
  • Currently 3.50 / 5
  You rated: 4 / 5 (6 votes cast)
[2,562 views]  View Printable Version
Create folder from multiple selected items in Finder System 10.7
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.]
  Post a comment  •  Comments (4)  
  • Currently 3.77 / 5
  You rated: 3 / 5 (35 votes cast)
[11,683 views]  View Printable Version
View multi-page previews of Word files on Finder icons System
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.
  Post a comment  •  Comments (1)  
  • Currently 3.00 / 5
  You rated: 4 / 5 (4 votes cast)
[4,912 views]  View Printable Version
Use multiple drives with Time Machine System 10.8
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).]
  Post a comment  •  Comments (11)  
  • Currently 3.50 / 5
  You rated: 2 / 5 (8 votes cast)
[11,120 views]  View Printable Version
Set keyboard shortcuts to share web Page from Safari via Twitter or Messages Apps
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.
  Post a comment  •  Comments (2)  
  • Currently 3.20 / 5
  You rated: 1 / 5 (5 votes cast)
[4,495 views]  View Printable Version