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 Search Today's Posts Mark Forums Read

 
ofexport - export to text, taskpaper, html, opml Thread Tools Search this Thread Display Modes
Quote:
Originally Posted by psidnell View Post
:-)

Sure:

The ofexport.py file is in the root folder of the install, you can see the copy on github here.

The file_types section shows the config for each of the supported output types. If you scroll down to the ICS section you can see it's got a time_control_default setting:


Code:
        "ICS": {
            "_1": "time_control_default can contain the magic that you can put in a note to control when the item appears in the calendar", 
            "_2": "The time_control_default is only used if there is no '%of cal' directive in the node", 
            "plugin": "ics", 
            "suffixes": [
                "ics"
            ], 
            "template": "ics", 
            "time_control_default": "ignored unless it is of the right format"
        },
So you could put any directive (see the doc) in there as a default rather than cluttering all your notes.

eg:

Code:
%of cal allday noalarm
Okay. I get it conceptually. But where exactly do I stick "%of cal allday noalarm"?

I do best when I see a concrete example of the thing in context. Does "%of cal allday noalarm" replace "ignored unless it is of the right format"? Does it go before or after it? Or does it go somewhere else entirely?
 
Quote:
Originally Posted by kingsinger View Post
Okay. I get it conceptually. But where exactly do I stick "%of cal allday noalarm"?
The changed line would look like this:

Code:
"time_control_default": "%of cal allday noalarm"
 
Strange behavior with all-day calendar events when I try to import the .ics file onto my android phone calendar. In ical, the events appear as blocks at the top of the week view of the calendar as all day events are supposed to do. But on my phone, they stripe through the entire day, as if I had entered 12:00am to 11:59pm, rather than hitting the all-day button.

Any thoughts?

Perhaps ical is smarter in how it parses the file.
 
Filed is also parsed as expected in Lightning. But when I try to import the .ics file into a google calendar on the web, it says "zero events processed."
 
File is also parsed...
 
I have just fixed an issue that might relate to this in the latest version. All day events are encoded in a very specific way in ics files, and I stopped worrying when they displayed OK on my iPhone and iMac calendar. It's possible other clients aren't as happy.

Which version of ofexport are you using?
 
Version 3.0.2
 
3.0.3 fixed the import issue with google calendar. But it did not fix the issues on my phone. Not sure why. Those don't show as all day.

I'm using dropsync to get the .ics to my phone. Then I'm using a program called iCalSync2 to sync the .ics to the phone calendar.
 
Quote:
Originally Posted by kingsinger View Post
3.0.3 fixed the import issue with google calendar. But it did not fix the issues on my phone. Not sure why. Those don't show as all day.

I'm using dropsync to get the .ics to my phone. Then I'm using a program called iCalSync2 to sync the .ics to the phone calendar.
I've failed to find good documentation on this, the following two links were the most useful:

- http://stackoverflow.com/questions/1...s-in-ics-files
- http://icalevents.com/1778-all-day-e...-a-day-or-not/

and I'm using the advice in the second.

I ended up hand crafting a small ics file (it's "just text") and re-syncing with OSX Calendar until it displayed correctly, on the right day and in the right time zone. When that worked I fixed the code to produce the same data.

For those who care, the following code from ics_plugin.py applies this logic:

Code:
def format_date (item, the_date, is_due_date):
    if 'allday' in item.attribs:
        # Make all day - must have no hms in format
        #DTSTART;VALUE=DATE:20020923
        #DTEND;VALUE=DATE:20020924
        the_date = datetime (the_date.year, the_date.month, the_date.day, 0, 0, 0)
        if is_due_date:
            the_date = the_date + timedelta (days=1)
        # NO UTC CONVERSION - it happens on the day we asked for - no adjustment required
        result = the_date.strftime(DATE_FORMAT_SHORT) 
    else:
        the_date = utc (the_date)   
        result = the_date.strftime(DATE_FORMAT_LONG)
    typ = 'due' if is_due_date else 'start'
    logger.debug ("formatted date for %s is %s:%s", item.id, typ, result)
    return result

I've had problems with OSX/IOS calendar where it fails to pick up title changes for some time, I think it looks for new/deleted items regularly but doesn't re-sync updated ones every time.

Currently my Calendar apps are subscribed directly to the exported ics file which is published from dropbox and when I force them to update do instantly.

If your phone is displaying the calendar event in the same way as it was before you upgraded to V3.0.3 I'd suspect a cacheing issue.

Sorry for the rambling reply, but hopefully it'll shed some light on what's going on.
 
No, thanks for that reply. Let's see what happens. I have an android table that runs android 4 and that calendar seems to have updated correctly. But my 2.3 phone doesn't seem to be working right. Maybe it'll get sorted out on its own.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Export OO to OPML or Text adgirard OmniOutliner 3 for Mac 0 2012-10-04 11:53 AM
.html extension on dynamic html export pairustwo OmniOutliner 3 for Mac 3 2011-09-10 01:53 PM
Bug - Export as TXT (TaskPaper) Vlad Ghitulescu OmniFocus 1 for Mac 2 2011-04-29 03:36 AM
Pasting Taskpaper-format text into OmniOutliner RobTrew OmniOutliner 3 for Mac 1 2011-01-11 05:00 AM
Export Properties:Notes as HTML Roll Over Text? jeffreykennedy OmniGraffle General 6 2009-10-26 07:40 AM


All times are GMT -8. The time now is 03:21 AM.


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