Skip to main content

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

Installation

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).

Manually

You should also be able to just chmod and symlink to ofpy.py 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 ofpy.py, e.g. #! /usr/bin/env python3

  3. Do something along the lines of

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

Configuration

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

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

Usage

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).

ofpy

Troubleshoting

Installation

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

More details at http://n8henrie.com/2014/09/ofpy

Metadata

Release files for ofpy 0.25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ofpy 0.25
File Size Uploaded
ofpy-0.25.tar.gz 4.5 kB Details

Release files / ofpy-0.25.tar.gz

Download URL ofpy-0.25.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5a904868111793c9f39c869b38671b509db56e17531ff497287b7fe2922f0033
BLAKE2b-256 checksum
How to use checksums
b33a5ad2b79438172b1d5c7a073c4a3281cdd8fed87bce8efdd24e578b49a8b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.25 This release

1 release file

0.23

1 release file

0.22

1 release file

0.21

1 release file

0.14

1 release file

0.11

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page