BetterTouchTool and Safari

EDIT: Mountain Lion seemed to have issues with this script, so download new version below or read more here: Safari New Window.

Few days ago I switched to BetterTouchTool from MagicPrefs because (1) MP somehow blocked clicks when MagicMouse was disconnected and I always had to quit the MP. And (2) BTT lets me configure the trackpad too.

BetterTouchTool lets you define tons of gestures for your Macbooks Trackpad, your MagicMouse and your MagicTrackpad. In addition to that it brings lots of new stuff to MacOS like Windows 7 like window snapping, window switchers etc…… Extensive explanation is at the BTT developer’s blog. I wanted to add a gesture (four-finger click) to bring up a new Safari window. BTT had Predefined actions to Open Application/File/Script… or Open URL. First of these unfortunately did not open new window, but instead activated one of the pre-existent windows (which I could do just by clicking the Safari Dock icon). The latter did bring up a new window, but I missed the chance to use Top Sites.

AppleScript to the rescue So I typed four lines in AppleScript and now have an action to pop up new Safari window:

tell application "Safari"
    make new document
end tell

I saved this as an Application to the /Applications folder just for faster startup and pointed BTT Open Application action to that file. Viola!


[maxbutton id=”3″]


MTS to MP4 converter

Following my previous post about iMovie and MTS I always had random trouble with my converter failing/hanging with some ┬áMTS files. And when repeated for the same file – no problems. This way I couldn’t just set the converter to work with tens of files and go for a coffee – I always had to look for hangs and stop the process only to restart it again.

And after I had problems with QuickTime refusing to open the new .mov files and iMovie having no sound, I thought it to be prime time to revisit the script.
Read More »

Mac OS X 10.6.5 upgrade freed 2 GB

When Snow Leopard first game out, it was promised to cut back on the OS footprint (in Gigs).

Now, upgrading to 10.6.5, I somehow had insight to take screenshot of disk usage right before upgrading and comparing to the after shot:


Mac OS X 10.6.4


Mac OS X 10.6.5

As you can see – it freed over 2 GB of disk space. Now this is what I call a good upgrade. Not only adding features and fixing bugs, but at the same time cutting back in bloat.

Note: my Time Machine reported 7.03 GB worth of changed data that needs to be backed up. So get some, loose some. But as my backup drive has lots of space while MacBook has little, I consider myself a winner.

Address Book groups

Some time ago I found a rather useful way to use my Address Book contacts – group them and when you type the name of the group in address field, it is expanded to all the contacts. But the problem was that when a contact had multiple addersses, I could not determine which was to be used for the group automatically and if I wanted to write to a specific address I had to manually adjust, which I forgot rather often.

Edit Distribution List

Fortunately Address Book has a way to specify the default address for any group (or distribution list as it is called). Just right-click on one of the groups, as shown below and pick “Edit Distribution List…

Pick Edit Distribution List from options
Pick Edit Distribution List from options

Now a window pops up that shows you the entire list and all of the multiple addresses for each card. Just skim through the list and highlight in bold the default addresses which should be used automatically for this list:

Address Book Distribution List

Clik OK to save changes and your done.