I’m using @RosemaryOrchard’s Drafts 5 Taskpaper to Omnifocus scripts and I keep running into the problem that the tasks all default to a due time of 12am on the due date I set. So then I changed it to explicitly include the time, but now it ignores the date calculation. Here’s an example of one line of the project:
Schedule Recording of Let's Talk «SHOWNUMBER» «SHOWDATE» @tags(Slack, calendar, Podcast Recording) @due(«SHOWDATE»-5d 5pm)
When executed, this Omnifocus task has a due date and time of the day before the SHOWDATE at 7pm. It seems Omnifocus is interpreting the “-5d” as -5 hours from 12am on the due date. If the @due is “«SHOWDATE»+3d 5pm”. then it sets the due date to SHOWDATE at 3am. If the @due is “«SHOWDATE»+3d +17h,” it ignores the “+3d”. What am I doing wrong?
By the way, I do have Omnifocus preferences set so that default time for due dates is 5pm.
I suspect this is exactly it, it’s also possible that the 5pm won’t be read, so what you may want to try is:
@due(«SHOWDATE» 5pm -5d)
Remember, OmniFocus can read fuzzy times - but it’s not human. So in general grouping the time and date together, followed by the calculation needed, is what you’ll need.
Thank you. I’ll give that a try. I sometimes forget that software has gotten smarter in some ways and is still rigid in others so that things like order of operations, as it were, are still important.
Just a thought, but barring a solution to the time problem, is there a way to get Omnifocus to respect the default due time of 5pm when importing a Taskpaper project?
If it still doesn’t import correctly then send an email to omnifocus@omnigroup.com with some examples to get some more help debugging though, the support staff are lovely and very helpful!
Interesting, but I think it’s for setting the default time in iOS. The macOS app does have a setting for that in preferences, but Taskpaper import isn’t respecting it.
As a followup, I found one of Clifton’s scripts to do the job for me on my Mac. While it doesn’t have all the date math I could do with Rosemary’s scripts, since I’m mostly on my Mac anyway, this is a convenient solution for me. Hopefully, Omni Group will get back to me eventually (I’ve been waiting more than a week with no response) and they’ll tell me whether the problem I was having was an OF bug or not.