If you use Pages, you may occasionally want to put a border and/or colored background around some text. There are a few ways to do this; you can insert a graphic object and put text in it, but this then requires positioning, and you can't easily edit it with your other text.
You can also use the More tab of the Text inspector to add borders and background colors; for borders only, this method works great (as long as you want a full-width box). But if you add background color (to the paragraph, not characters), you'll find it's not quite right–the color doesn't fill to the edges, and spills out slightly at the top and/or bottom.
So what's the solution, if you don't want a full-width border, or you want a background fill in your box? Select the text to be boxed, and choose Format > Table > Convert Text to Table.
You'll get a one-column-wide table, over which you have complete control of colors, borders, spacing, etc.
Send SMS to Messages and run commands with AppleScript
Oct 16, '12 07:30:00AM • Contributed by: dborup
It is possible to send an SMS command to your Mac using an AppleScript. I've made one which takes a picture when I send the command /photo to iMessages on my Mac.
The script is very simple; it must be set up Messages' Alerts preferences. Choose Event > Message Received, then check Run an Apple Script. This will check each message you get for the command; in this case, /photo.
The script will turn the volume all the way down (and up again) before taking a picture with PhotoBooth so it does not make any noise.
Then you can make a symbolic link from the PhotoBooth folder to your Dropbox so you can check the photos from your mobile device.
Here's the script: [kirkmc adds: Note that this only works with iMessages (I tried for a while to get it to work with regular chats, and it wouldn't). It's worth noting that the ability to send a text message and set off a script is something very useful, and I can imagine plenty of scripters figuring out other types of remote commands they can send to their Macs. Feel free to submit them as hints.]
I was adding a Smart Playlist to iTunes (10.7) and could not find the option to add nested rules... until I held down the Option key and the plus icon became an ellipsis which then provided the ability to add a nested rule.
[kirkmc adds: This isn't new in iTunes 10.7, but rather iTunes 10. However, I see that it's not on the site, so it's worth mentioning. Apple has a technical note about smart playlists, and they call the ellipsis button the "Nest" button.]
When viewing Spotlight search results, there are a number of shortcuts you can use to quickly perform actions or your search or its results. Simply move your cursor over an item, or use the arrow keys to navigate, to select items.
Change default Calendar alert and time
Oct 12, '12 07:30:00AM • Contributed by: Anonymous
You can change the default calendar event sound and all day event time. These settings are stored as part of each individual calendar.
Locate and open in TextEdit:
The default all day event time can be changed to 6 am, for example, instead of 9 am:
You can change the default event time to values not available in the preferences. This can be a positive or negative value, for instance 3 hours before:
The alert sound can be specified (without a file extension) using anything in your user or system sound folder:
Resolve Mac App Store download issues by removing cache folder
Oct 12, '12 07:30:00AM • Contributed by: kirkmc
I've occasionally seen issues where Mac App Store downloads failed, with a message saying "The product distribution file could not be verified. It may be damaged or was not signed." Topher Kessler writing at CNET showed a way you can resolve this issue.
When this download problem occurs, it is generally the result of a corrupted file in a cache folder. If you run this command in Terminal:
open $TMPDIR../C/a folder will open in the Finder showing a number of cache folders for different applications. Delete the com.apple.appstore folder, then quit and relaunch the App Store application and try the download again.
Apple recently published a technical note explaining how to enable the adaptive firewall in OS X Server. This is a type of firewall that automatically creates temporary rules according to certain events. For example, a number of failed login attempts will cause the adaptive firewall to create a temporary rule to block the IP address attempting to log in.
To do this, run the following commands as an administrative user: Then, edit /System/Library/LaunchDaemons/com.apple.pfctl.plist using the following commands: Another technical note explains how to resolve an issue where packet rules do not load.
For more information, see man afctl and this post on the techorganic blog.
Workaround problem saving photos from Mountain Lion Mail to iPhoto
Oct 11, '12 07:30:00AM • Contributed by: kirkmc
Apple recently published a technical note about a problem saving photos from Mail to iPhoto in Mountain Lion. I actually came across this problem recently, and there was no feedback suggesting that the photos were not saved. Fortunately, I had a Time Machine backup of the email containing photos in question.
The fix is simply this: launch iPhoto, then drag the photos - one by one - from the e-mail onto the iPhoto icon in the Dock.
Use an SSD boot drive and keep Users on an encrypted data drive
Oct 10, '12 07:30:00AM • Contributed by: biggles
Recently I became so sick of the slowness of my MacBook Pro (late 2011 model), which has a 2.4 GHz Intel Core i5 with 16 GB RAM running Mountain Lion 10.8.2, that I decided to buy a 120 GB Kingston SVP 200 SSD drive for my boot drive and put my previous 500 GB Hitachi HD in place of the DVD drive.
I left my old system in place on the old drive and did a clean install of Mountain Lion 10.8.2 on the SSD. I then set up my main user account with the same name and password as before. In the Users & Groups preference pane, I right-clicked on my account name and selected Advanced Options, and set the location of my user account to be my old user account on the secondary drive now named Data HD. Obviously, for all permissions to work correctly you need to keep the new user names and passwords the same as the old ones. That all worked fine, and when I rebooted and logged in to my account, all my Users are on the Data HD. I then used Migration Assistant to pull over all my Apps to the SSD boot drive.
Encryption of Data HD
Control-click on a disk in the Finder to encrypt to encrypt it (in a Finder window, the Finder sidebar, or on the Desktop). Choose Encrypt "disk name" and enter a password. You’ll have to enter the password a second time, and you won’t be able to go any further unless you also enter a password hint. I tried this method and it didn’t appear to work properly so I used the Terminal approach.
Prepare a disk by converting
You encrypt disks with the diskutil command, but first, you have to convert them to a format called CoreStorage. Start by running the diskutil list command, which returns a list of all your disks, like this:
The disk I want to encrypt is Data HD and to the right of the name you can see the identifier which is disk1s2. With that information I could convert that disk the CoreStorage format with the following command:
Terminal will request your administrator’s password, then will begin the conversion process. Encrypt the disk
The important information above is the LV UUID, or logical volume universally unique identifier. Using that information, you can then run the command to encrypt the disk, as follows: Replace password with your password. The next step will ensure that the Data HD gets mounted during the boot process so that your accounts are available. For this you need the excellent program Unlock by Justin Ridgewell. Full instructions for installation are on his page.
His script runs as follows: Following conversations with Justin, it is probably worth checking that you have an entry for Unlock: Data HD in the System Keychain. Also the script will be installed at /Library/LaunchDaemons/name.ridgewell.unlock. He also advised setting up another Admin account on the SSD in case one ever needed to do an decrypt the Data HD in case anything goes wrong. The command for that, using the example of my Data HD above, is: Obviously a bit of clean-up is necessary. For instance, all the Application icons in the Dock will be referencing the Applications on the original hard drive, so you need to delete each one and replace them by dragging the Applications to the Dock that were moved to the new SSD. Finally, I used Carbon Copy Cloner to copy the user folder from Data HD to another drive, re-formatted the Data HD to remove all the Applications and System files, and then cloned the User folder back to the Data HD. Then I tested all my Applications to make sure everything was working. So far so good and the performance increase is well worth the effort. Boot time is down to 10 seconds and all Applications open instantly!
[kirkmc adds: I wrote a Macworld article about disk encryption a couple of months ago. This hint uses that process, but goes a bit further.]
From our Sponsor...
Latest Mountain Lion Hints
HintsNo new hints
Comments last 2 days
Links last 2 weeksNo recent new links
What's New in the Forums?
Hints by Topic
News from Macworld
From Our Sponsors
All trademarks and copyrights on this page are owned by their respective owners.
Visit other IDG sites:
Powered by Geeklog Created this page in 1.02 seconds