← 返回
效率工具

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 tags, and recurring tasks. Requires OmniFocus installed on macOS.
通过 Omni Automation 管理 OmniFocus 的任务、项目和文件夹。支持任务管理、待办清单、项目追踪、GTD 工作流,以及任务的添加、完成、编辑、截止日期设定、标签管理和重复任务处理。需在 macOS 上安装 OmniFocus。
coyote-git
效率工具 clawhub v1.0.0 1 版本 99454.2 Key: 无需
★ 2
Stars
📥 3,240
下载
💾 13
安装
1
版本
#latest

概述

OmniFocus

Control OmniFocus via JXA (JavaScript for Automation).

Requirements

  • macOS with OmniFocus 3 or 4 installed
  • OmniFocus must be running (or will auto-launch)

Quick Reference

# Run via the wrapper script
./scripts/of <command> [args...]

# Or directly
osascript -l JavaScript ./scripts/omnifocus.js <command> [args...]

Commands

List/Query

CommandDescription
----------------------
inboxList inbox tasks
foldersList all folders
projects [folder]List projects, optionally filtered by folder
tasks List tasks in a project
tagsList all tags
todayTasks due today or overdue
flaggedFlagged incomplete tasks
search Search tasks by name
info Full task details

Create

CommandDescription
----------------------
add [project]Add task to inbox or project
newproject [folder]Create project
newfolder Create top-level folder
newtag Create or get tag

Modify

CommandDescription
----------------------
complete Mark complete
uncomplete Mark incomplete
delete Permanently delete
rename Rename task
note Append to note
setnote Replace note
defer Set defer date (YYYY-MM-DD)
due Set due date
`flag [true\false]`Set flagged
tag Add tag (creates if needed)
untag Remove tag
move Move to project

Repeat

# 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-completion

Units: days, weeks, months, years

Output Format

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"}
  }
}

Examples

# 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

Notes

  • Task IDs are OmniFocus internal IDs (returned in all task responses)
  • Dates use ISO format: YYYY-MM-DD
  • Project and folder names are case-sensitive
  • Tags are created automatically if they don't exist when using tag command
  • All output is JSON for easy parsing

Technical Details

This 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:

  • JSON output for easy parsing
  • Robust escaping for special characters in tag names
  • Error handling with clear messages

First run: OmniFocus may prompt to allow automation access. Enable this in System Settings > Privacy & Security > Automation.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 11:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,714
content-creation

GifHorse

coyote-git
搜索视频对话并制作带字幕的表情包GIF,非常适合剪辑影视剧趣图。
★ 1 📥 2,978
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,087