I was able to get the AppleScript working on Mountain Lion. Replace the lines:
with
Code:
--get current items in todo.txt open for access todoTxtPath set todoData to paragraphs of (read POSIX file todoTxtPath) close access todoTxtPath
Code:
--get current items in todo.txt set todoData to paragraphs of (do shell script "grep . " & todoTxtPath)