try
{
var
myPath=app.activeDocument.groupItems.getByName(
"基本図形"
);
myPath.selected =
true
;
}
catch
(e){
alert(
"該当する名前のグループはありません。"