The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Script: FoldingText to OmniFocus (http://forums.omnigroup.com/showthread.php?t=26022)

RobTrew 2012-10-29 01:13 PM

[QUOTE=RobTrew;116764]Sounds like the first line of the script might somehow have been lost.

I would start by downloading a fresh copy.[/QUOTE]

It may also be helpful to understand that it is an .scptd (script bundle, effectively a folder with other small scripts in a Resources sub-folder).

You can duplicate and rename it, but you may inadvertently create a version which lacks the called scripts if you try to do a Save As from a script editor.

(It has to have this structure to avoid compile-time errors on systems which only have a subset of the Omni applications installed).

RobTrew 2012-10-31 05:43 AM

FWIW added a basic OPML export option to the script (above).

RobTrew 2012-11-02 09:04 PM

Ver 016 (above, in first post) is the first pass of an update to run with the new scripting syntax of FoldingText 1.1 Dev (553)

Should work with both the AppStore version and the 1.1 Dev version, but if you are using the latter you may need to force a recompile of the script by making a trivial edit to it, like adding a couple of blank lines, before the first time you run it.


[COLOR="White"]--[/COLOR]

Yury 2012-12-14 06:59 AM

Rob,

Is there a way you can modify the script to just import the folding text file.

I am actually not using Folding Text but exporting this out to an Android phone using one of your scripts, and would like to bring in the file that I edit manually. I can bring back any format you like from your export script just something I can edit via Folding Text type editor on android.

Any help would be appreciate it.
For now I keep a separate file and bring it in via an import that does not do duplicate checking.


[QUOTE=RobTrew;116943]Ver 016 (above, in first post) is the first pass of an update to run with the new scripting syntax of FoldingText 1.1 Dev (553)

Should work with both the AppStore version and the 1.1 Dev version, but if you are using the latter you may need to force a recompile of the script by making a trivial edit to it, like adding a couple of blank lines, before the first time you run it.
[COLOR="White"]--[/COLOR][/QUOTE]

RobTrew 2012-12-14 07:02 AM

Not sure that I have quite understood your use case, but this particular script depends on the FoldingText API.

Are you looking for an analogue of the [I]paste MarkDown/FoldingText into OO3[/I] script ?

Yury 2012-12-14 07:05 AM

[QUOTE=RobTrew;118370]Not sure that I have quite understood your use case, but this particular script depends on the FoldingText API.

Are you looking for an analogue of the [I]paste MarkDown/FoldingText into OO3[/I] script ?[/QUOTE]

Rob, I maybe missed something, but the script I found was ReadTP52 and it just imports text back, but will create all duplicates. Is there a script that checks if the duplicates are there and just imports the differences as this script does?

Thank you for your ultra fast reply!

RobTrew 2012-12-14 07:10 AM

Fast, but not with with the news you are hoping for :-)

I haven't written such a script no.

[URL="http://www.foldingtext.com"]FoldingText[/URL] → OF is the only route I have created, and that's partly because it has an unusually rich scripting interface, which provides very simple and powerful operations on nested text structures.

kingsinger 2012-12-19 12:18 PM

Isn't that the script that exports to Taskpaper? Found this here:[url]http://www.complexpoint.macmate.me/Site/Taskpaper2Omnifocus.html[/url]

Taskpaper to Omnifocus importer


A draft Applescript droplet which I use to copy my data from Taskpaper-formatted text files to Omnifocus.


The code is intended to:


1.Place Taskpaper projects and their tasks in a date-stamped Omnifocus import folder.

2.Place any Taskpaper tasks which are not preceded by a project header into the Omnifocus inbox.

3.Also place tasks in any Taskpaper project named “Inbox:” into the Omnifocus inbox.


In addition to files created with Taskpaper, it should also work with any plain .txt file which conforms to the Taskpaper file format. Apart from context and @done tags, it is intended to correctly interpret tags of the following form:

@start(yyyy-mm-dd) or @start(yyyy-mm-dd hh:mm) - Start date

@due(yyyy-mm-dd) or @due(yyyy-mm-dd hh:mm) - Due date

@mins(nn) - Estimated minutes

@flag - Flagged


Note that it runs fairly slowly - when it is finished it will display simple import statistics.


USAGE

- Drag one or more .taskpaper or .txt files onto the droplet,

-Or select and copy some text (or one or more text files in in the Finder) and then run the script.


(I find it works well in a Keyboard Maestro macro which precedes it with a Copy action, to pick up currently selected text or text files)


ReadTP52.app.zip

Yury 2012-12-19 01:49 PM

Thank you for pointing to the site!

I found the exporter there as well.

Yury 2012-12-19 02:41 PM

[QUOTE=kingsinger;118505]Isn't that the script that exports to Taskpaper? Found this here:[url]http://www.complexpoint.macmate.me/Site/Taskpaper2Omnifocus.html[/url]

Taskpaper to Omnifocus importer
[/QUOTE]

Rob,

Is the exporter one of your scripts? And if so is that the latest version?


All times are GMT -8. The time now is 07:18 PM.

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