"Lion Server also includes a process called ServerBackup which works with Time Machine. ServerBackup performs daily backups of Open Directory (if it is enabled) and the Postgres databases used by the Address Book, iCal, Podcast, Profile Manager, and Wiki services. These daily backups are included in the Time Machine backup of Lion Server. ServerBackup also takes part in the restoration of server services, running during the first startup after a server has been restored, and restoring server services and databases into place after the server has started up."
This is good to know if you're running Lion Server and use Time Machine. Personally, I would feel safer having a clone of my drive; if running a server, I'd update the clone every hour, and this is much easier to recover, as you can boot from the clone.
The other day on Twitter, Macworld senior editor Dan Frakes mentioned that he had accidentally discovered an undocumented keyboard shortcut to delete messages in Mail. My guess is that he just leaned on his keyboard, but he figured out, after deleting a number of messages, that this shortcut is Control-H.
This makes sense, as this is the Unix keybinding for the Backspace or Delete key (see this Wikipedia article), and OS X uses these shortcuts, at least in Cocoa applications; you can use the Control-H shortcut to delete text in those applications that use the Cocoa text input framework. But its use to delete messages in Mail is interesting. If anyone discovers other apps where this works, post them in the comments.
The latest update to Google Earth for iOS, version 6.2, can open .kmz or .kml files on websites, but you can also e-mail these to yourself to use on your iPhone or iPad. If you're in the desktop version of Google Earth, right-click on a link and choose Email..., and a new message will be made with the .kmz file as an attachment. When you receive this on your iOS device, tap and hold, then open the file with Google Earth.
[kirkmc adds: This works as described. I have to say, the only time I ever open Google Earth is to follow the route of the Tour de France...]
You can drag items from your iTunes library to your iOS devices and they will automatically start syncing and installing. In addition to copying the item(s) you drag, a full sync is initiated. This occurs when your iOS device is set to automatically sync; you don't need to have it set for manual syncing for this to happen.
[kirkmc adds: Hmm... is this really new? I had never heard of this, but It's certainly useful. The hint submitted was about syncing apps, but when I tried other items, they installed as well. When I dragged an album, it synced, and when I checked the Music tab in iTunes, that album was checked in the list of albums. This is actually a very good way of syncing items to an iOS device. Instead of dealing with checking and unchecking boxes on the different tabs, you can just drag what you want to your device. This is different from a manual sync, where you only drag items; this retains automatic syncing, yet still allows you to add items to the device by dragging.]
Apple released the Lion Recovery Update in October, 2011, and, after they updated the Lion recovery partition to 10.7.2, there was a great hint from Clay Caviness who dug into the update and highlighted the the relevant files and commands that it used to accomplish this update.
Recently, 10.7.3 came out, however, and the RecoveryHD partition is not updated if you use Software Update; it will stay at 10.7.2. This is probably not a big deal, as Apple didn't deem it necessary to update, but for some users, this may not be good enough.
Note: Running the full 10.7.3 installer from the App Store will update the partition; this is fine for your home computer but not practical for large deployments.
Asks for locations of Recovery Update, Install OS X Lion.app, and destination
Expands and collects the dmtest tool from the Lion Recovery Update
Collects the hidden Basesystem chunklist and dmg found in the InstallESD.dmg inside "Install Mac OS X Lion.app"
Puts it all neatly into a self-contained disk image along with the script RecoveryHD Updater.command which can be used to easily create or update the RecoveryHD partition, even on the disk you are currently booted from; don't worry dmtest takes care of all the logic to create or update.
Download the latest version of Install OS X Lion.app. Option-click the Purchases tab in the App Store and you will be able to "Install" (download) the latest version available
I miss the ability to press Command-D key to trigger the Don't Save button when closing documents. So, I wrote the following short Applescript to regain that functionality.
Paste the following script into AppleScript Editor and save it somewhere. Then use QuickSilver, Fastscripts or some other keyboard shortcut utility to trigger this Applescript. I set Control-Option-Command-D to be my shortcut. I can now trigger Don't Save with a keyboard shortcut.
tell application "System Events"
set frontApp to name of the first process whose frontmost is true
set focused of (button 3 of sheet 1 of front window of process frontApp) to 1
tell application "System Events" to keystroke space
[kirkmc adds: A previous hint offered a different AppleScript, and the comments include a Terminal command to turn this functionality back on, if you prefer.]
lpadmin and lpoptions don't interact with OS X as you might think, or at least as they are documented. Here are some helpful notes and a script.
There are some good hints for adding printers via the command line with lpadmin: Managing multiple printers via the command line.
However, there is still confusion surrounding the setting of printer options from the command line, as a poster to Debian bugs pointed out back in 2006: lpoptions documentation doesn't. After doing some testing, here are the two main points to note:
If you use lpadmin and specify options with "-o", the PPD is altered and OS X will recognize the options for the printer.
However, if you setup the printer using lpadmin without any options, and later use lptoptions to set the options, they are not written to the PPD and the GUI is unaware of the printer's options.
More helpful hints about lpadmin and lpoptions:
lpoptions -p printername -l
Prints PPD options, "Default" is filtered from option name (similar to looking at the raw PPD)
It uses a colon when reporting key value pairs; replace that with an equals sign when specifying an option
The option name stops at the first slash
Example: The duplex option for HP printers will output like this "HPOption_Duplexer/Duplex Unit: *True False" When specified as a "-o" option it would be "HPOption_Duplexer=True"
lpadmin ... -o this=that
Alters the ppd that is placed in /etc/cups/ppd/ when the printer is installed
Unhelpful things: lpoptions -p printername
These are NOT the PPD options you want to set
This only writes options to: /private/etc/cups/lpoptions (run with sudo) or ~/.cups/lpoptions (run as current user), GUI apps are unaware of these options
This is less of a hint than a suggestion for a bookmark in your favorite web browser. Apple has a page listing dozens of standard keyboard shortcuts you can use at start-up, with the Finder, and with many applications. If you're a keyboard person, rather than a mouse person, you may find some shortcuts here that you didn't know. At a minimum, it's worth bookmarking this page to have a list of keys to press at startup, if you need to change boot disks, boot in Safe mode or boot from an optical disc (if your Mac still supports that).
In previous versions of OS X, you used to be able to quickly search for messages from a given domain just by typing it in on the search field. On Lion, this is a pain, because Mail tries to guess the actual sender a never lets you look at all the messages.
As a workaround, if you type "from:@domain" you will see messages from all email addresses from that domain. You can also use "to:@domain" to look for the messages that were sent to an email address at a given domain.
Battery life with my iPhone 4S was very poor, and I finally discovered why: I'm using a battery extender case. The problem is that the phone considers that the case is a source of AC power, so if have iTunes Wi-Fi sync on - which only operates when your phone is plugged in - you'll be syncing more than you might expect, since your phone is technically plugged in.
The solution is to either turn off Wi-Fi sync, or use an external battery pack that has an on-off switch so that you can control when it is actually sending current to the phone.
[kirkmc adds: I guess this makes sense. Apple says that Wi-Fi sync occurs when "The iOS device is plugged in to power." But this should only occur if two other conditions are met: "iTunes is open on the computer," and "The iOS device and the computer are on the same Wi-Fi network." So I would think that if you're not on the same network as your Mac, then nothing should happen. Perhaps the phone is constantly searching for that Mac?]