var o1=app.activeDocument.ovals[0]; var o2=app.activeDocument.ovals[1]; var cpPatht=o1.makeCompoundPath(o2); alert(cpPatht);