var item=app.activeDocument.pageItems[0]; var nc=new NoColor(); item.fillColor = nc; alert(nc.typename);