var gs1=app.activeDocument.graphicStyles[1]; var gs2=app.activeDocument.graphicStyles[7]; var obj=app.activeDocument.selection[0]; gs1.applyTo(obj); gs2.mergeTo(obj);