Sorry for bothering you guys again, I have looked at al possible threads, but found noting.
I’m having a problem with creating a shape layer from an .ai file.
On a selected .ai layer I’m using:
app.executeCommand(3973);
But nothing happens, is this is the correct way to “Create Shapes from Vector Layer”?
var myComp = app.project.item(1); //active comp
var myFile = app.project.importFileWithDialog(); //import illustrator file
var myLayer = myComp.layers.add(myFile[0]); //add to active comp as new layer
myComp.layer(1).selected = true;
//alert( app.findMenuCommandId("Create Shapes from Vector Layer"));
app.executeCommand(3973);