Question
How do I fill a selection using a pre defined pattern with photoshop scripting
var docRef = app.documents.add()
var layerRef =docRef.layerSets.add();
layerRef.kind = LayerKind.PATTERNFILL;
docRef.selection.selectAll();
docRef.selection.fill(pattern?);
and also how do I create a pattern using the script
