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)
-   -   Applescript: Importing from iGTD to OmniFocus (http://forums.omnigroup.com/showthread.php?t=3876)

RobTrew 2007-06-17 04:19 AM

Applescript: Importing from iGTD to OmniFocus
 
Here is a link to a rough draft of an Applescript which I have used to import my iGTD projects tasks and contexts into OmniFocus for testing purposes.

Only intended for testing and reference, and others are welcome to modify and improve it.

Note that it leaves all trees collapsed by default, so you may want to use View/Expand all in the left and right panels of OmniFocus after any import.

[URL="http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html"]http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html[/URL]

pvonk 2007-06-17 04:28 PM

I tried twice but couldn't get past an error:
+----
Can't get item 4 of {"Chair", "Fatham - Talk to IT", "Others on campus use it:? Bob Jones?"}.
+----

which occurs here:

-- Set context (if specified)
set strValue to (item 4 of oFields)


As a result, some of my projects/tasks import, many others don't.

RobTrew 2007-06-17 11:15 PM

Thanks for testing it !

It would be interesting to know why there are 3 fields rather than the expected 9 at that point.

I have sent you a private message.

RobTrew 2007-06-18 03:25 AM

Importing from iGTD to OmniFocus
 
I have fixed a bug which stopped the script on items will multi-line notes.

[URL="http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html"]http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html[/URL]

pvonk 2007-06-18 07:00 AM

[QUOTE=RobTrew]I have fixed a bug which stopped the script on items will multi-line notes.

Here is version 0.02[/QUOTE]

Thanks, Rob - that fixed the error I mentioned above. Everything seems to have come across into OF.

clarke 2007-06-18 07:15 AM

It worked great for me
 
I tried the first version and it failed in the middle but this version imported all of my items great.

Thank you for writing this.

RobTrew 2007-06-18 07:43 AM

Applescript: Importing from iGTD to OmniFocus
 
Suggestions for improvement are welcome.

It does not yet import specifications for repeats. I'll do that soon.

Any further versions will be on:

[URL="http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html"]http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html[/URL]

RobTrew 2007-06-18 01:00 PM

Applescript: Importing from iGTD to OmniFocus
 
Version 0.04

Which you can download from

[URL="http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html"]http://web.mac.com/robinfrancistrew/iWeb/Site/iGTD2OmniFocus.html[/URL]

Now includes the importation of iGTD repeat intervals, and fixes a bug which could cause the script to stop in some circumstances with nested projects.


All times are GMT -8. The time now is 02:04 PM.

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