Skip to content

TeldridgeLDN/Omni-date-parser

Repository files navigation

OmniFocus Calendar Event Parser

An OmniFocus automation that processes forwarded calendar invites in your inbox, automatically extracting dates and times to set due dates and defer dates.

Features

  • Automatically detects forwarded calendar invites in your inbox
  • Extracts date and time information from email subjects
  • Allows setting due dates and/or defer dates with a single click
  • Removes "Fwd:" prefix from task names
  • Adds processing notes to tasks for tracking
  • Supports AM/PM time formats
  • Handles dates intelligently (assumes next year if date has passed)

Requirements

  • OmniFocus 4 for macOS
  • iCloud sync enabled for OmniFocus (for plugin installation)

Installation

  1. Download the Omnifocus_Date_Parser.omnijs file
  2. Place it in your OmniFocus Automation directory:
    ~/Library/Mobile Documents/iCloud~com~omnigroup~OmniFocus/Documents/Plug-Ins/
    
    Or use the Automation menu in OmniFocus:
    1. Click Automation → Configure...
    2. Click the '+' button
    3. Select the downloaded .omnijs file

Usage

  1. Forward a calendar invite to your OmniFocus email address
  2. In OmniFocus, the invite will appear in your inbox
  3. Select Automation → Process Calendar Events
  4. For each calendar invite found, you'll be presented with options:
    • Set Due Only: Only set the due date
    • Set Both: Set both due and defer dates
    • Set Defer Only: Only set the defer date
    • Cancel: Skip this task
  5. The script will:
    • Set the chosen dates
    • Remove the "Fwd:" prefix
    • Add a processing note
    • Show a summary when complete

Date Format Support

The script recognizes dates in the following format:

Day of week, DD Month [at] HH:MM[am/pm]

Examples:

  • Mon, 15 Jan at 2:30pm
  • Tuesday, 20 March at 14:30
  • Wed 25 Apr 9:00am

Troubleshooting

  1. Script Not Visible:

    • Ensure the script is in the correct Plug-Ins directory
    • Restart OmniFocus
    • Check the Console for any error messages
  2. Date Not Detected:

    • Ensure the email subject contains the date in a supported format
    • Check the task note for any processing errors

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details

Version History

See CHANGELOG.md for version history.

About

An OmniFocus automation that processes forwarded calendar invites in your inbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published