Skip to content

Instantly share code, notes, and snippets.

@jpwagner
jpwagner / things_export_script
Created November 18, 2013 00:05
quick applescript hack to export everything out of Cultured Code's Things into a flat file
tell application "Things"
set delimiter to " "
set wrapper to "\""
set newItem to return
set my_file to (((path to desktop folder) as string) & "things_export.txt")
--set plainTextFile to choose file name with prompt "Choose target text file..."
word_map = {
"1": {
"0": "",
"1": "one",
"2": "two",
"3": "three",
"4": "four",
"5": "five",
"6": "six",
"7": "seven",
class TribSequence():
def __init__(self, a, b, c):
self.seq = [a, b, c]
def next_term(self):
self.seq += [self.seq[-1] + self.seq[-2] + self.seq[-3]]
def contains(self, num):
if num in self.seq:
return True