Skip to content

Instantly share code, notes, and snippets.

on run {input}
set the_path to POSIX path of input
-- run vim command and exit Terminal.app after close
set cmd to "vim " & quoted form of the_path & "; exit"
tell application "System Events" to set terminalIsRunning to exists application process "Terminal"
tell application "Terminal"
-- Open new Tab if Terminal.app is already running
if terminalIsRunning is true then
activate
tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
@wiedi
wiedi / latitude.py
Created December 7, 2012 19:09 — forked from bluemaex/latitude.py
Convert a Google Latitude JSON-File to a GPX-File
#!/usr/bin/env python
import os
import simplejson
import subprocess
import datetime
f = open('latitude.json', 'r')
locdata = simplejson.loads(f.read());
fd = open('latitude.gpx', 'w')