View Single Post
Quote:
Originally Posted by Greg Titus
Here are a couple very simplistic scripts to do those two things. You'll need to change the properties at the beginning to match the calendar name you want to export into in iCal, and the date column name in the outline you are using.
"Don't know much about" AppleScript, but I fixed the bug in the "Send Selected to iCal" script that Greg wrote, and now it works. Thanks again, Greg! I append this version in case other people have a use for this.

Still looking for a script to update all dates less than today's to today's!

--Henri

property calendar_name : "Imports"
property due_date_column_name : "Date"

tell application "OmniOutliner Professional"
tell document of front window
set due_date_index to index of column named due_date_column_name
set the_selection to selected rows
repeat with aRow in the_selection
set the_title to topic of aRow
set the_note to note of aRow
set the_date to value of cell due_date_index of aRow
tell application "iCal"
set the_to_do to make new todo at end of todos of calendar named calendar_name with properties {summary:the_title, description:the_note, due date:the_date}
end tell
end repeat
end tell
end tell