The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Today's Posts

 
Bug - Export as TXT (TaskPaper) Thread Tools Search this Thread Display Modes
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)
 
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:
  1. Two OF2TP exporter scripts (one to text files, one to OS X Mail emails - both updated to the new requirement).
  2. 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..
 
Thank you, it works like this!


Regards,
Vlad Ghitulescu

Quote:
Originally Posted by RobTrew View Post
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:
  1. Two OF2TP exporter scripts (one to text files, one to OS X Mail emails - both updated to the new requirement).
  2. 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
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
ofexport - export to text, taskpaper, html, opml psidnell OmniFocus Extras 110 2014-04-01 08:36 AM
Filtering, TaskPaper, and three years yeary OmniOutliner 3 for Mac 15 2012-10-04 05:02 AM
OmniPlan to TaskPaper AppleScript psidnell OmniPlan Extras 0 2012-02-05 09:34 AM
Taskpaper export does not flag "Done" status RobTrew OmniFocus 1 for Mac 0 2007-12-10 05:10 AM
TaskPaper Love erima OmniFocus Extras 5 2007-11-23 01:55 PM


All times are GMT -8. The time now is 03:19 PM.


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