I have a script to drop tasks into my Someday/Maybe project.
The script works great for tasks but I’d also like it to do the same thing for projects. In the application when I drag and drop this is seamless but the following code errors out with
Error: Cannot move objects of class “project” to <OFMTask:0x6000022a8630 - p6N9MzqiGpM ‘⏳Someday & Maybe’>.scriptChildren, which requires “task”. (6)
tell anItem
set theTags to tags
remove theTags from tags
move to (end of tasks of theSomedayMaybeProject)
end tell