Archive for the ‘os x’ Category

Clean out Launchpad completely and start from scratch with only the apps you want

Tuesday, January 3rd, 2012

Clean out Launchpad completely

Launchpad takes the iOS home screen springboard and recreates it on your Mac. Some users love this new Lion feature; others aren’t sold. If you’re among the latter, you can ignore Launchpad pretty easily: Remove its icon from your Dock, turn off the Launchpad gesture, and you can live fairly Launchpad-free from then on. But what if you want to get a fresh-start with Launchpad, configuring it to give you quick access only to those apps you choose?

You could manually remove entries from Launchpad while it’s onscreen by holding down the Option key and clicking on the jiggling apps. But that won’t work on stock Apple apps, which seem permanently affixed to Launchpad’s surface. And it’s a laborious process if you have a lot of apps.

But there is a way to empty Launchpad completely—removing even Apple’s own apps. The crux of this trick is wiping out the contents of the database Lion uses to know what goes where in Launchpad. To do so, launch Terminal (which, as always, is in /Applications/Utilities) and paste in this sequence of commands at the command line:

sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps; DELETE from groups WHERE title<>''; DELETE from items WHERE rowid>2;"; Killall Dock

Now, open Launchpad again. It’ll be as blank as the faces on those guys in Apple’s 1984 commercial. Of course, if you purchase an app from the Mac App Store, its icon will show up in your newly naked Launchpad.

Getting the apps you want back into Launchpad is simple: You can just drag the apps you’d like to add directly onto Launchpad’s Dock icon. (Merely dragging icons onto the Launchpad icon in the Finder won’t work; you must drag onto the Dock icon.)

Miss the old, overstuffed Launchpad? You can get it back by forcing Lion to rebuild your Launchpad database with this Terminal command:

rm ~/Library/Application\ Support/Dock/*.db; killall Dock

Change screen resolution on the command line

Thursday, December 8th, 2011

http://hints.macworld.com/article.php?story=20110830215724984#lsrc.nl_mwhints_h

Create To Do items for iCal’s Reminders list by creating a Service that can be invoked from the contextual menu or a keyboard shortcut

Thursday, December 8th, 2011

Make it easier to create To Do items for iCal’s Reminders list by creating a Service that can be invoked from the contextual menu or a keyboard shortcut.

Here’s the procedure:

  • Launch Automator and create a new Service.
  • At the top of the workflow, set the following options, which are the default: Service receives selected text in any application.
  • Add New Action » Set Value of Variable. (To find this action, enter Set Value of Variable in the Automator search field.)
  • Click the Variable: pop up menu and select New variable…
  • Name the variable To Do Title (or whatever you like) and click Done.
  • Add New Action » New To Do Item. (To find this action, enter New To Do Item in the Automator search field.)
  • From the Variable section in the bottom right of the Automator window, drag the new variable To Do Title into the Title: field of the action.
  • In the New To Do Item action, click the Options button and select Ignore this action’s input and Show this action when the workflow runs.
  • Save the new Service as New To Do and quit Automator.
  • Go to any application with some text content, select some of the text, right click, and select New To Do from the contextual menu. (You may have to go inside the Services sub-menu if you have a lot of Services that act on this data type.)
  • A New To Do Item dialog window will appear with the selected text in the title field. You can edit the title if you like. Select the desired options and click Continue.
  • Switch to iCal and you’ll see your new To Do item in the Reminders list.

If you want to be able to invoke the command with a keyboard shortcut, go to System Preferences » Keyboard » Services » Text » New To Do and double-click in the invisible column to the right of the text. (Look for other keyboard shortcut listings if you can’t figure out where to click. The list is divided into two invisible columns and if you don’t double-click far enough to the right, nothing will happen.)

Advanced Notes: There are a few things that aren’t immediately obvious about creating this Automator workflow that might be useful if you create others. It took me quite a bit of trial and error to figure these things out, so let me share them with you.

Most of you probably understand that creating this workflow as a Service allows it to show up in the contextual menu, the Services menu, and to be assigned a keyboard shortcut in the Keyboard System Preferences. Simply adding the New To Do Item action will create a new To Do item in iCal’s Reminders list using the selected text as the title, but you won’t be able to set any other options and you won’t receive feedback that anything has happened. Selecting the option Show this action when the workflow runs presents the dialog box that allows you to set options for your new To Do item. When you create the Service, you can set what the default options should be and these defaults can always be changed by re-editing the workflow document in Automator.

The tricky part is figuring out how to make the title editable. With only the New To Do Item action, the title field in the resulting dialog is blank, but editing the field has no effect on the reminder that is created. This was very perplexing. By adding the Set Value of Variable action and placing that variable in the title field of the New To Do Item action, the selected text appears in the title field of the To Do item. However, editing the text in this field in the dialog box still has no affect.

The New To Do Item action is designed to always use the selected text as the title of the To Do item, no matter what you do in the dialog box. By selecting the Ignore this action’s input option and using a variable to fill in the title filed using the selected text, you can then edit the title field as you are creating the new To Do item. This was the key to achieving the desired behavior.

How to Make Your Own Apple OS X Lion Bootable USB Key

Wednesday, July 27th, 2011

http://www.pcmag.com/article2/0,2817,2389178,00.asp

Boot into 64-bit mode on a MacBook Pro

Sunday, May 8th, 2011

To switch between 64 and 32-bit modes on your 64-bit supported Mac, you can use either of these methods:

Method 1: Startup key combination (for current startup only)

  • If your Mac uses the 32-bit kernel by default, but supports the 64-bit kernel, you can start up using the 64-bit kernel by holding the 6 and 4 keys during startup.
  • If your Mac uses the 64-bit kernel by default, you can start up with the 32-bit kernel by holding the 3 and 2 keys during startup.

Your Mac will revert to the default kernel the next time you reboot it.

Method 2: On-disk setting (persistent)

To select the 64-bit kernel for the current startup disk, use the following command in Terminal:

sudo systemsetup -setkernelbootarchitecture x86_64

To select the 32-bit kernel for the current startup disk, use the following command in Terminal:

sudo systemsetup -setkernelbootarchitecture i386

Note: This setting is stored in the /Library/Preferences/SystemConfiguration/com.apple.Boot.plist file and will take effect every time you start up from this disk. If you start up from a different disk, the setting on that disk, or the hardware default, will take effect.