mm=2.834645;
ad = app.activeDocument;
aa =ad.artboards[0].artboardRect;
if (activeDocument.selection.length >0)
{
mySelection = activeDocument.selection;
initBounds = mySelection[0].visibleBounds;
ul_x = initBounds[0]/mm;
ul_y = initBounds[1]/mm;
lr_x = initBounds[2]/mm;
lr_y = initBounds[3]/mm;
ad.artboards[0].artboardRect=([(ul_x-5)*mm,(ul_y+5)*mm,(lr_x+5)*mm,(lr_y-5)*mm]);
}
А в чем?в cs3 работать не будет.