I am wondering if it is possible to enable a properties stopwatch via extended script. I have a script that adds a number of effects and manipulates their properties but I would like it to then enable certain stopwatches. For instance for position, for my selected layers so that when I drag the shapes around it will keyframe.
I have already looked in the documentation but couldn't seem to see where this command was?
The enabled stopwatch simply indicates that the property has keyframes, so to enable it you'll have to add some keyframes.
If I understand you correctly and you want your script to change a value of a certain property so that that value is assigned to a keyframe (which will enable the stopwatch), then you would want to use setValueAtTime instead of just setValue.
For instance, the script eqivalent of toggling on the stopwatch of some property is: YOUR_PROPERTY.setValueAtTime(activeItem.time, YOUR_PROPERTY.value);