Duplicate a task in script

I’m Pretty new to applescript/javascript for automation, is there a quick way to duplicate a task object? i.e. is there some default way of doing this or do you just always create new objects and copy all properties manually?

When you have a task selected, command-D will duplicate it manually.

In a quick test, I find that duplicate from the OF dictionary is a bit more complex to invoke using Applescript. Someone with a higher user level may have to respond with the answer.


JJW

Understood, but I’m trying to do a more complicated routine in javascript. I’m looking for a .duplicate() method or something similar

I suspect when the Applescript dictionary does not do it well, neither will the javascript option.


JJW