Quickly written! … app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "Cells! …");
function main()
{
if ( app.documents.length == 0 ) {
alert( "No Open Document! …" )
exit();
} else {
if ( app.selection && app.selection[0] && app.selection[0].constructor.name === 'Cell' ) {
var mySel = app.selection[0];
//-------------------------------------------------
// Stroke Weight, Color and Tint … To Be Defined
var myStrokeWeight = 1,
myStrokeColor = "C=0 M=100 J=0 N=0",
myStrokeTint = 50;
//-------------------------------------------------
mySel.topEdgeStrokeWeight = mySel.rightEdgeStrokeWeight = mySel.bottomEdgeStrokeWeight = mySel.leftEdgeStrokeWeight = myStrokeWeight;
mySel.topEdgeStrokeColor = mySel.rightEdgeStrokeColor = mySel.bottomEdgeStrokeColor = mySel.leftEdgeStrokeColor = myStrokeColor;
mySel.topEdgeStrokeTint = mySel.rightEdgeStrokeTint = mySel.bottomEdgeStrokeTint = mySel.leftEdgeStrokeTint = myStrokeTint;
app.selection = null;
} else alert( "OUPS! …\rTruly Better if you select \"Cells\" in a Table! ;-)" + "\r\rby FRIdNGE, Michel Allio [22/09/2023]")
}
} (^/) The Jedi
... View more