Scripting question, is it possible to create a slice on a layer with javascript?
Ideally I'd like to write a script that selects a layer by name, which I can do easy enough, but is there a way to create a slice on that layer either via the "New Layer Based Slice" option under the Layer menu or just create a slice with javascript. Also is there a way to name the slice? Ideally I'd like to take the text of a sibling layer text layer and append it to the slice name. Even if this requires an eventlistener that is fine.
I'm mostly looking to see if this is possible but any code suggestions are helpful too thanks
