This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |