The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   Bug - Export as TXT (TaskPaper) (http://forums.omnigroup.com/showthread.php?t=20730)

Vlad Ghitulescu 2011-04-15 02:11 PM

Bug - Export as TXT (TaskPaper)
 
Hello!


I discovered an error while exporting my OmniFocus data as text (TaskPaper): the actions are not properly indented, so there is not possible to focus on a project in TaskPaper.

Could you please correct this?

Thanks in advance!


Regards,
Vlad Ghitulescu


P.S. OmniFocus 1.9 (v77.75.1 r147575), Mac OS X 10.6.7, iMac 3.06 GHz, TaskPaper 2.2.5 (99)

RobTrew 2011-04-16 12:28 AM

I think this is probably related to a slight tightening up of the [URL="http://blog.hogbaysoftware.com/post/396651972/taskpaper-iphone-file-format-changes"]TaskPaper file format requirements[/URL].

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 [B]Help > Send Feedback ...[/B] in the OmniFocus menu.

Two fixes:[LIST=1][*][URL="http://web.mac.com/robinfrancistrew/Site/OmniFocus_to_Taskpaper.html"]Two OF2TP exporter scripts[/URL] (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 [URL="http://www.hogbaysoftware.com/products/taskpaper"]Taskpaper[/URL] application.[/LIST]
[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
[/CODE]

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' [I]filepath[/I] > [I]newfilepath[/I][/CODE]

Vlad Ghitulescu 2011-04-29 03:36 AM

Thank you, it works like this!


Regards,
Vlad Ghitulescu

[QUOTE=RobTrew;95994]I think this is probably related to a slight tightening up of the [URL="http://blog.hogbaysoftware.com/post/396651972/taskpaper-iphone-file-format-changes"]TaskPaper file format requirements[/URL].

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 [B]Help > Send Feedback ...[/B] in the OmniFocus menu.

Two fixes:[LIST=1][*][URL="http://web.mac.com/robinfrancistrew/Site/OmniFocus_to_Taskpaper.html"]Two OF2TP exporter scripts[/URL] (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 [URL="http://www.hogbaysoftware.com/products/taskpaper"]Taskpaper[/URL] application.[/LIST]
[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
[/CODE]

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' [I]filepath[/I] > [I]newfilepath[/I][/CODE][/QUOTE]


All times are GMT -8. The time now is 11:56 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.