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 Extras
FAQ Members List Calendar Today's Posts

 
Import iCal Events to OmniFocus Action Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Script that imports iCal Events into OmniFocus actions.
Useful for forecast mode and the satisfaction of checking off events as if they were actions.

Requirements:
iCal Buddy
http://hasseg.org/icalBuddy/

Tested in Lion. Still may have some bugs in it. Shouldn't do anything like delete important data. It will delete any action with the text
iCal UID:
in the note field.

Much gratitude and thanks to the following authors, developers, websites:

iCalBuddy: without which this script would not have worked.
http://hasseg.org/icalBuddy/

Other helpful resources:
http://hints.macworld.com/article.ph...91115201138792
http://macscripter.net/viewtopic.php?id=24737
http://www.latenightsw.com/sd4/index.html
http://growl.info/


Purpose:
This script takes events from the iCal calendars, and enters them as actions into the OmniFocus application.
The script will do the folling actions:
• Create an OmniFocus action with the name of the iCal event as the action name.
• Place the OmniFocus action into a single action project with the prefix: iCal- and add the calendar name. (iCal-Birthdays)
• Assign the OmniFocus action a context with the same name as the single action project
• Set the start date and end date of the OmniFocus action to the event start and end date.
• Add a unique id in the note in the action with the prefix: "iCal UID:" + the iCal event uid + start & end date unique id.
Example: (iCal UID: 7F3952B2-BB97-492A-B501-1013A1E0D4AC:20119160201191886340)
This ID is what allows the script to connect an iCal event with an OmniFocus action. If you mess with this ID it will either be deleted by the script or never deleted.

The script relies on iCalBuddy to be run. You'll need to download it and install it
http://hasseg.org/icalBuddy/
Run the install.command file and follow the prompts in the terminal window.

The script only imports iCal events into OmniFocus actions. Changing any of the times on the actions will not do anything to iCal events. If you delete an OF action, and the iCal event is in the calendar,
the script will re-create the action.
Completing an OF action will remain completed. After the current time is beyond the action end time, the script is no longer checking that action.

The script will probably not perform as expected if you have two calendar's that are the same name.
The script will delete any OmniFocus action that has the characters
iCal UID:
in the note field.

After the single action projects and contexts have been created, you can move them wherever you want and they will stay there.

User bears all responsibility for running this script. Enjoy.

---10/09/2011
• added functionality to use Growl 1.3 notifications
• included helper script which copies the applescript to the users/library/scripts/applications/OmniFocus folder. This allows a user to right click on the toolbar, and add script to the OmniFocus toolbar

---Removed all other versions of the script. And uploaded the newest version to the top of the thread. The attachment below is the latest version.
Attached Files
File Type: zip iCalEventsToOmniFocus.zip (65.9 KB, 617 views)

Last edited by SpiralOcean; 2011-10-27 at 07:13 AM..
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync iCal events into OmniFocus SpiralOcean OmniFocus 1 for Mac 4 2012-04-16 10:35 AM
how to get iCal events into OF rllewis@mac.com iCal Sync 1 2011-05-02 02:42 PM
iCal import file freezes iCal w0rld OmniPlan General 4 2010-09-07 10:08 PM
Moving to OF from Palm/Missing Sync/ical - can I import from ical? Don Richmond OmniFocus 1 for Mac 6 2009-09-03 06:00 AM
Omnifocus 1.5.2 iCal Duplicate due events! Hitteam OmniFocus for iPhone 2 2009-07-22 07:58 PM


All times are GMT -8. The time now is 05:31 AM.


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