1. Starting a VPN if it is not connected via AppleScript

    Launching a VPN if it is not connected on OS X:

    tell application "System Events"
      tell current location of network preferences
        set VPNservice to service "My VPN" -- name of your VPN
        set isConnected to connected of current configuration of VPNservice
        if not isConnected then connect VPNservice
      end tell
    end tell

    …prefect for automating “things” in Proxi.

  2. Switching tabs in Safari 4 with shortcuts, just like in Firefox

    As a heavy-user of Firefox, the biggest annoyance in Safari for me was the missing shortcuts for directly accessing tabs. In Firefox you can access the tabs by pressing Cmd+<number of tab>. For example, if you want to jump to your third tab you would press Cmd + 3 (⌘ + 3), however in Safari this loads the third bookmark from the bookmark toolbar - very annoying if you are used to a different behavior.

    Luckily there is a way to change this behavior and make Safari (4, not sure about 3) behave like Firefox with the help of this innocent looking piece of AppleScript:

    Read More

  3. Enable IPv6 on Mac OS X, the tunnelbroker.net way

    As a follow up to my earlier teredo howto, here i want to show you how to use the Tunnelbroker provided by Hurricane Electric on OS X 10.5, Leopard, behind a NAT Router that passes protocol41 (e.g. Fritz!box Fon WLAN 7170).

    I did not want to make rocket-science out of this, so i did the easiest and simpliest possible way to achieve my goal, which means that it might not be the 100% correct way to do things. Also, it’s not going in to details about IPv6, so if you are new to this topic, the tutorial may be a bit difficult for you.

    Read More