How to create a pattern with a script
I must be missing something really simple here.
The "patterns" collection has an add() function, which adds an empty pattern. This shows up as a chequered black and white swatch. But how do you add anything to this empty pattern (analogous to dragging an item into the swatches panel to create a pattern)?
Otherwise, what would be the point of the add() function here? Similarly, what would be the point of the PatternColor() constructor, since a new patternColor will need a "pattern" object?
Thanks in advance.
