I tried your code as follows:
var doc = app.activeDocument;
But, here "groupItems" returns "null".
Then I did some modification and used above code as follows:
which gives an error i.e.
"Access of possibly undefined property typename through a reference with static type com.adobe.illustrator:Color. "
Please help me with this.
I am using creative suite extension builder.
I searched a lot and find the following code:
- for(var j=0; j < totalSelected; j++)
- var currentObject = app.activeDocument.selection[j];
- if(currentObject.typename == "PathItem")
- if(currentObject.filled==true &&
- currentObject.fillColor.typename == "SpotColor")
- //perform color conversion here
Using above code will give an error on line no. 8.
I jst want to get the value of type of fillcolor any how.