OmniFocus Automation
Manage OmniFocus tasks, projects, and folders via Omni Automation. Use for task management, to-do lists, project tracking, GTD workflows, adding/completing/editing tasks, setting due dates, managing t
Manage OmniFocus tasks, projects, and folders via Omni Automation. Use for task management, to-do lists, project tracking, GTD workflows, adding/completing/editing tasks, setting due dates, managing t
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Control OmniFocus via JXA (JavaScript for Automation).
# Run via the wrapper script ./scripts/of <command> [args...]Or directly
osascript -l JavaScript ./scripts/omnifocus.js <command> [args...]
| Command | Description |
|---|---|
| List inbox tasks |
| List all folders |
| List projects, optionally filtered by folder |
| List tasks in a project |
| List all tags |
| Tasks due today or overdue |
| Flagged incomplete tasks |
| Search tasks by name |
| Full task details |
| Command | Description |
|---|---|
| Add task to inbox or project |
| Create project |
| Create top-level folder |
| Create or get tag |
| Command | Description |
|---|---|
| Mark complete |
| Mark incomplete |
| Permanently delete |
| Rename task |
| Append to note |
| Replace note |
| Set defer date (YYYY-MM-DD) |
| Set due date |
| Set flagged |
| Add tag (creates if needed) |
| Remove tag |
| Move to project |
# repeat <taskId> <method> <interval> <unit> of repeat abc123 fixed 1 weeks of repeat abc123 due-after-completion 2 days of repeat abc123 defer-after-completion 1 months of unrepeat abc123
Methods:
fixed, due-after-completion, defer-after-completiondays, weeks, months, years
All commands return JSON. Success responses include
"success": true. Errors include "error": "message".
{ "success": true, "task": { "id": "abc123", "name": "Task name", "note": "Notes here", "flagged": false, "completed": false, "deferDate": "2026-01-30", "dueDate": "2026-02-01", "project": "Project Name", "tags": ["tag1", "tag2"], "repeat": {"method": "fixed", "rule": "RRULE:FREQ=WEEKLY;INTERVAL=1"} } }
# Add task to inbox of add "Buy groceries"Add task to specific project
of add "Review docs" "Work Projects"
Set due date and flag
of due abc123 2026-02-01 of flag abc123 true
Add tags
of tag abc123 "urgent" of tag abc123 "home"
Create recurring task
of add "Weekly review" "Habits" of repeat xyz789 fixed 1 weeks
Search and complete
of search "groceries" of complete abc123
Get today's tasks
of today
tag commandThis skill uses JavaScript for Automation (JXA) for most operations, with AppleScript fallbacks for tag and repeat operations (due to known JXA type conversion bugs with these specific OmniFocus APIs).
The hybrid approach provides:
First run: OmniFocus may prompt to allow automation access. Enable this in System Settings > Privacy & Security > Automation.
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.