Does anyone have any idea how to modify the manual order of reminders in the Reminders.app using Swift?
I have gotten to a point where I can get a reminders list and move them to other lists by changing the .calendar property, however even if I move them in reverse order (move Task 2 and then move Task 1), they appear in the second list in Task 1 then Task 2 order. I suspect there is some property indicating the order or weight. When I used JXA (https://developer.apple.com/forums/thread/649653) to duplicate an item from the middle of one list to another list (which actually moved instead of duplicating due to a bug I imagine), it appeared in the middle of the destination list and not at the end.
As a workaround, I'd be even okay if there was a way to UI script, however, I can't find a way to re-order rows via UI scripting.
I have gotten to a point where I can get a reminders list and move them to other lists by changing the .calendar property, however even if I move them in reverse order (move Task 2 and then move Task 1), they appear in the second list in Task 1 then Task 2 order. I suspect there is some property indicating the order or weight. When I used JXA (https://developer.apple.com/forums/thread/649653) to duplicate an item from the middle of one list to another list (which actually moved instead of duplicating due to a bug I imagine), it appeared in the middle of the destination list and not at the end.
As a workaround, I'd be even okay if there was a way to UI script, however, I can't find a way to re-order rows via UI scripting.