Lion and apps like Preview reopening files

Are you sick of Preview reopening previously-closed windows from the previous time you fired up the app?

You can turn this behaviour off – although only for all apps at once.

It’s in the System Preferences –> General pane, near the bottom, second-to-last checkbox. Uncheck.

restoringopenwindowsPreference.png

Posted in geek | Tagged | Comments Off

iCal Dupe Deleter

Wanna delete duplicates from your iCal?

There are apps for that.

One of them is iCal Dupe Deleter

Screen Shot 2012-02-15 at 16.59.46.png

PS: it initially seemed as if this didn’t work. Except that I realized I still had MobileMe activated on my Lion install. Once I removed the account from the Accounts list in the iCal Preferences, there was no remaining duplication.

Posted in geek | Tagged , , , | Comments Off

Safari and .torrent files

Know why Safari won’t activate Transmission the second you click on a .torrent file even if you already told OS X to open .torrent files with Transmission? By default, Safari doesn’t consider .torrent files safe and hence will only download them.

To override this, simply create a plain text file named com.apple.DownloadAssessment.plist with the following code inside and put it in ~/Library/Preferences/

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com-PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSRiskCategorySafe</key>
<dict>
<key>LSRiskCategoryExtensions</key>
<array>
<string>torrent</string>
</array>
</dict>
</dict>
</plist>
Posted in geek | Tagged , , | Comments Off

Torrent automation on Mac

Ever wanted your TV shows to download THEMSELVES to your Mac?

Here is your automation app alive and well in 2012: TVShows 2 (open source, donationware). Download it from http://tvshowsapp.com/

(hat tip to @Dakota_ONeill on twitter)

Posted in geek | Tagged , , , , , | Comments Off

du and Grand Perspective

Sometimes you want a precise handle on what’s using up your disk space. After several go-arounds, I have two recommendations:

  1. Visual approach: Grand Perspective app.
  2. Command line approach:
    du -h -d 2
    gives you human-readable disk usage data at depth 2. Replace 2 by n at will.

grandperspective.png

Posted in geek | Tagged , | Comments Off

Changing the message under the Lion login icons

Via http://www.macosxtips.co.uk/index_files/customize-login-screen-lion.php :-

Before Lion, displaying a message on the login screen was a complicated process that involved entering commands into the Terminal. Luckily, Apple have now added an easy way to set a message using System Preferences. To do this, go to the Security & Privacy preference pane, and under the General tab, tick the checkbox Show a message when the screen is locked then add your message. Only about the first 200 characters you enter will be displayed, so make your message short and sweet.

Posted in geek | Tagged , | Comments Off

Customizing Lion login background

Personally, I think the “linen” background for logging in to Mac OS X Lion looks cheap and Windows-y.

If you want to change the background, here are the instructions, via http://www.macosxtips.co.uk/index_files/customize-login-screen-lion.php

In Lion, the background used for the login screen is located at
/System/Library/Frameworks/AppKit.framework/Versions/C/Resources/

The easiest way to get to this folder is to choose Go to Folder in the Go menu while in the Finder. Then just copy and paste in the above line and click Go. The image that is used for the background is NSTexturedFullScreenBackgroundColor.png. You can replace this with any other image, and as long as you give it exactly the same name, it will be used for the login screen background. Before you make any changes, make sure you make a copy of the original file somewhere safe so you can go back to it if you want.

You’ll notice that the image is only a small 256×256 pixel square — this is because it is automatically tiled across the screen. If you want to use a similar type of texture, any size image is fine. However, if you would like to use a full size image without tiling, you need to make sure the image dimensions exactly match your screen and the resolution is 72 dpi. Either way, it must also be in PNG format like the original. It’s pretty simple to use Preview to adjust any image to the correct size and format.

Posted in geek | Tagged , | Comments Off

git

  1. Read this introduction: http://progit.org/book/ch1-3.html
  2. After you’ve installed Xcode 4 under OS X Lion (free from the Mac App Store), you will find git located inside /Developer/usr/bin, along with gcc, make and some other goodies.
  3. Follow the ample instructions at http://help.github.com/mac-set-up-git/
  4. Pay money to have even one private repository!

gitLion.png

Posted in geek | Tagged , , , , | Comments Off

mdfind

Mmmmmm mmmm useful.

> mdfind -name combattans

mdfind-name.png

Posted in geek | Tagged , , | Comments Off

CCCloner under Lion

CCCloner will now do encryption under FileVault2 – but it is restricted to Lion-only. Developer notes at http://help.bombich.com/kb/advanced-strategies/the-disk-center#fde .

N.B.: in order for CCCloner to be able to encrypt your backed-up partition, you will need to have originally partitioned the disk using GPT (GUID partition table):

GPTpartitioning.png

Posted in geek | Tagged , , , | Comments Off