On Dec 22, 2005, at 8:36 AM, Stephan Stapel wrote:
Outport works and you don't to install any macros into Outlook (I'm quite sure I won't have the necessary rights to do that at work and it could be
interpreted as a threat as well...).

The only thing is that it exports every single item as a single file, so I
have a bunch of files I need to import.

If Outport exports a directory of individual .ics files, Chandler can actually import those all at once by pairing a FileSystemConduit with a CalDAVFormat object as follows:

----

# This is a standalone example runnable via RunPython

from application import Utility, Globals
from osaf import sharing

# Set up a Chandler in-memory repository (required only in this standalone example)

Globals.options = Utility.initOptions()
Utility.initLogging(Globals.options)
Globals.options.ramdb = True
view = Utility.initRepository('', Globals.options, True)

# Set up the format/conduit/share to import all .ics files residing in
# /Users/morgen/individual.ics.files/ directory

format = sharing.CalDAVFormat(itsView=view)
conduit = sharing.FileSystemConduit(itsView=view,
    sharePath='/Users/morgen',
    shareName='individual.ics.files')
share = sharing.Share(itsView=view, conduit=conduit, format=format)

# sync( ) will import each .ics; subsequent sync( ) calls would reload
# any modified .ics files, import new ones, and if it detects that a
# .ics file has disappeared it will remove the corresponding Chandler
# item from the collection

share.sync()

collection = share.contents

for item in collection:
    print item.displayName, item.startTime

----

However, this only gets us from Outlook to Chandler, and not the other way around, but it's a start.


For outlook2ical I receive an error message but this message cannot be
viewed entirely in the import iCal dialog (a bug you probably have to
fix...).

You're getting an error within Chandler? You can always get to a stack trace by using the "Test | Show log window" menu.

For automatic syncing of my appointments, might Cosmo be the tool to check
out?!

In the environment you've described, Cosmo isn't going to help, unless Outlook becomes a CalDAV client.

 If I understand correctly, I'd have to start Chandler manually and
then manually import the ical files. Right?!

Well, once the above code has been executed, all you would have to do is click on the Sync All toolbar button within Chandler and it would re-sync with that directory of .ics files that you exported from Outlook.

~morgen


P.S. I also came across this Outlook --> .ics exporter...

   http://www.ryanwatkins.net/software/


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to