Example for Apple Shortcuts for adding sub-tasks

mike's Avatar


19 Mar, 2023 03:50 PM

Hi there,

I struggle a bit adding a new subtask to an existing task using Apple Shortcuts on a Mac. I can successfully create a new top-level task.

Thanks, Mike

  1. Support Staff 1 Posted by Niko on 19 Mar, 2023 05:17 PM

    Niko's Avatar

    Hi Mike,

    No problem, here is an example:

    tell application "Timelime"
    GetTaskIDs name "TaskName"
    if (count of previousTaskIDs) is 1 then
    set taskID to item 1 of (get previousTaskIDs)
    CreateTask name "child" parentTaskID taskID
    end if
    end tell

    I hope this helps,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

08 Jun, 2023 05:25 PM
10 May, 2023 11:06 AM
07 May, 2023 07:44 PM
28 Apr, 2023 05:11 PM
21 Mar, 2023 01:45 PM