Automating OmniFocus Task Entry

Since publishing the first screencast on capture, I’ve received several e-mails asking for a way to automate task creation based on a text list. The idea is making a task list in a text file and having your Mac convert it to tasks. While I haven’t looked into this, Josh Betz did and came up with this nifty AppleScript.

Despite Josh’s scripting prowess, I’m still adding tasks from a text list manually. I do this because quite often something that seems like a good idea when I peck it into a text file, like perhaps running with scissors, doesn’t pass the sniff test when it comes time to add the tasks to OmniFocus. Moreover, it really isn’t that hard to add new tasks to OmniFocus directly on your Mac, iPhone, or iPad.

25 Comments Automating OmniFocus Task Entry

  1. lauri.ranta@gmail.com

    A shorter version of that script:

    set p to "/Users/lauri/Desktop/todo.txt"
    set l to paragraphs of (do shell script "grep . " & p)
    do shell script ">" & p

    tell app "OmniFocus" to tell document 1
    repeat with v in l
    make new inbox task with properties {name:v}
    end repeat
    end tell

    Reply
  2. lauri.ranta@gmail.com

    A shorter version of that script:

    set p to "/Users/lauri/Desktop/todo.txt"
    set l to paragraphs of (do shell script "grep . " & p)
    do shell script ">" & p

    tell app "OmniFocus" to tell document 1
    repeat with v in l
    make new inbox task with properties {name:v}
    end repeat
    end tell

    Reply
  3. lauri.ranta@gmail.com

    A shorter version of that script:

    set p to "/Users/lauri/Desktop/todo.txt"
    set l to paragraphs of (do shell script "grep . " & p)
    do shell script ">" & p

    tell app "OmniFocus" to tell document 1
    repeat with v in l
    make new inbox task with properties {name:v}
    end repeat
    end tell

    Reply
  4. lauri.ranta@gmail.com

    A shorter version of that script:

    set p to "/Users/lauri/Desktop/todo.txt"
    set l to paragraphs of (do shell script "grep . " & p)
    do shell script ">" & p

    tell app "OmniFocus" to tell document 1
    repeat with v in l
    make new inbox task with properties {name:v}
    end repeat
    end tell

    Reply
  5. lauri.ranta@gmail.com

    A shorter version of that script:

    set p to "/Users/lauri/Desktop/todo.txt"
    set l to paragraphs of (do shell script "grep . " & p)
    do shell script ">" & p

    tell app "OmniFocus" to tell document 1
    repeat with v in l
    make new inbox task with properties {name:v}
    end repeat
    end tell

    Reply
  6. j@joshbetz.com

    I agree with the advantages of adding things manually to OmniFocus. I end up doing the same thing when I go through the items in my inbox to put them in the projects they belong in.

    Reply
  7. j@joshbetz.com

    I agree with the advantages of adding things manually to OmniFocus. I end up doing the same thing when I go through the items in my inbox to put them in the projects they belong in.

    Reply
  8. j@joshbetz.com

    I agree with the advantages of adding things manually to OmniFocus. I end up doing the same thing when I go through the items in my inbox to put them in the projects they belong in.

    Reply
  9. j@joshbetz.com

    I agree with the advantages of adding things manually to OmniFocus. I end up doing the same thing when I go through the items in my inbox to put them in the projects they belong in.

    Reply
  10. j@joshbetz.com

    I agree with the advantages of adding things manually to OmniFocus. I end up doing the same thing when I go through the items in my inbox to put them in the projects they belong in.

    Reply
  11. Jwalsh@designinginteractive.com

    Even easier, you can do it without AppleScript at all …

    1. Copy the text from the editor
    2. Press enter to create new task
    3. Hit escape to leave the editing mode
    4. Paste

    OmniFocus creates a new task for each line of the text file because it honors the carriage returns in the text on paste. I do this many times a day.

    Reply
  12. Jwalsh@designinginteractive.com

    Even easier, you can do it without AppleScript at all …

    1. Copy the text from the editor
    2. Press enter to create new task
    3. Hit escape to leave the editing mode
    4. Paste

    OmniFocus creates a new task for each line of the text file because it honors the carriage returns in the text on paste. I do this many times a day.

    Reply
  13. Jwalsh@designinginteractive.com

    Even easier, you can do it without AppleScript at all …

    1. Copy the text from the editor
    2. Press enter to create new task
    3. Hit escape to leave the editing mode
    4. Paste

    OmniFocus creates a new task for each line of the text file because it honors the carriage returns in the text on paste. I do this many times a day.

    Reply
  14. Jwalsh@designinginteractive.com

    Even easier, you can do it without AppleScript at all …

    1. Copy the text from the editor
    2. Press enter to create new task
    3. Hit escape to leave the editing mode
    4. Paste

    OmniFocus creates a new task for each line of the text file because it honors the carriage returns in the text on paste. I do this many times a day.

    Reply
  15. Jwalsh@designinginteractive.com

    Even easier, you can do it without AppleScript at all …

    1. Copy the text from the editor
    2. Press enter to create new task
    3. Hit escape to leave the editing mode
    4. Paste

    OmniFocus creates a new task for each line of the text file because it honors the carriage returns in the text on paste. I do this many times a day.

    Reply
  16. j@joshbetz.com

    @Josh Walsh: The nice thing about having a script is that you can automate it. I know the the arguments against having it automated, but I don't have to worry as much about forgetting to move something over to omnifocus this way.

    Reply
  17. j@joshbetz.com

    @Josh Walsh: The nice thing about having a script is that you can automate it. I know the the arguments against having it automated, but I don't have to worry as much about forgetting to move something over to omnifocus this way.

    Reply
  18. j@joshbetz.com

    @Josh Walsh: The nice thing about having a script is that you can automate it. I know the the arguments against having it automated, but I don't have to worry as much about forgetting to move something over to omnifocus this way.

    Reply
  19. j@joshbetz.com

    @Josh Walsh: The nice thing about having a script is that you can automate it. I know the the arguments against having it automated, but I don't have to worry as much about forgetting to move something over to omnifocus this way.

    Reply
  20. j@joshbetz.com

    @Josh Walsh: The nice thing about having a script is that you can automate it. I know the the arguments against having it automated, but I don't have to worry as much about forgetting to move something over to omnifocus this way.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *