Guest
2011-04-16, 12:28 AM
I think this is probably related to a slight tightening up of the
TaskPaper file format requirements.
Top level item bullets must now be preceded by a tab (previously optional), and the built-in OmniFocus to TaskPaper exporter doesn't yet do this. Worth pinging
Help > Send Feedback ... in the OmniFocus menu.
Two fixes:
- Two OF2TP exporter scripts (one to text files, one to OS X Mail emails - both updated to the new requirement).
- The following brief script which should fix the Taskpaper format of texts exported by OmniFocus, if they are loaded in the OS X Taskpaper application.
Code:
tell application id "TkPr"
tell front document
if (text contents contains linefeed & "-") then
repeat with oLine in entries
tell oLine
if (entry type ≠ project type) then ¬
set text line to tab & text line
end tell
end repeat
end if
end tell
end tell
Batch conversions of legacy files could be done through the shell with command lines on the pattern of:
Code:
perl -pe 's/^(\s*?-)/\t\1/g' filepath > newfilepath
Last edited by RobTrew; 2011-04-16 at 10:38 AM..