You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Alfred中获取并显示所有2Do任务列表?

Display All 2Do Tasks in Alfred: Two Reliable Methods

If you’re looking to pull up all your 2Do tasks directly in Alfred, there are two solid approaches depending on how much customization you need:

1. Use 2Do's Official Alfred Workflow (Quickest Setup)

2Do offers a built-in integration with Alfred that makes this straightforward:

  • Open 2Do and navigate to Settings > Integrations > Alfred.
  • Click the "Install Workflow" button—this will automatically add the workflow to Alfred.
  • Once installed, trigger it using the default keyword 2do (you can customize this in Alfred’s workflow settings). Typing 2do without any additional filters will display all your tasks across all lists. You can add filters like 2do due today if you need to narrow things down, but for your use case, just the base keyword is all you need.

2. Build a Custom Script Workflow (For Advanced Control)

If you want to tweak how tasks are displayed (e.g., include due dates, tags, or list names), you can create a custom Alfred workflow using AppleScript:

  • Open Alfred Preferences, go to Workflows > + > Blank Workflow. Name it something like "2Do All Tasks".
  • Add a Script Filter to the workflow. Set the keyword you want to use (e.g., all2do).
  • In the script field, select "AppleScript" and paste this snippet:
    tell application "2Do"
        set allTasks to every task
        set taskOutput to {}
        repeat with taskItem in allTasks
            set taskName to name of taskItem
            set taskDue to due date of taskItem
            set taskList to list name of taskItem
            -- Customize the output line below to include details you care about
            set end of taskOutput to taskName & " (" & taskList & ") | Due: " & (if taskDue is not missing value then taskDue as string else "No due date")
        end repeat
        return taskOutput as text
    end tell
    
  • Configure the script filter to split the output by newlines, and map each line to an Alfred list item.
  • Don’t forget to enable permissions: Go to System Settings > Privacy & Security > Automation and make sure Alfred is allowed to control 2Do.

Key Notes

  • The official workflow is great for out-of-the-box functionality, while the custom script lets you tailor the display exactly to your needs.
  • If you run into issues with the script, double-check that 2Do’s AppleScript support is enabled (it’s on by default, but you can confirm in 2Do Settings > Advanced > Enable AppleScript Access).

内容的提问来源于stack exchange,提问作者YanHao

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:23:16