Skip to main content

Add tasks to OmniFocus from Linux

Project description

Command line to OmniFocus script, via email or Dropbox and Hazel


Using pip

sudo pip3 install ofpy

You may be able to get away without sudo if you’re using a Homebrew Python installation on OSX.

Obviously replace pip3 with pip if you’re still using python2 or if python3 is the default on your system (e.g. Arch).


You should also be able to just chmod and symlink to without difficulty – that’s how I as doing it for the first several versions. That said, if you’re doing a manual installation, I’ll assume you know what you’re doing. In general:

  1. Download or git clone

  2. Add a shebang to, e.g. #! /usr/bin/env python3

  3. Do something along the lines of

cd ofpy/ofpy
chmod u+x
ln -s $PWD/ /usr/local/bin/ofpy


  1. Run ofpy without arguments. You should see a logging message about creating ~/.ofpy_config.

  2. Edit ~/.ofpy_config and fill in your values.


Inline from the command line.

ofpy "This is my first task."

Inline from the command line without quotes (watch out for apostrophes and quotes)

ofpy This is my second task.

Compose the task in your favorite CLI editor (set in config, defaults to vim).




Double check permissions, e.g. ls -l /usr/local/bin/ofpy.

More details at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ofpy-0.25.tar.gz (4.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page