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