var item=app.activeDocument.meshItems[0]; alert(item.name); item.name="Adobe Illustrator Sample"; alert(item.name);