Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 332 Bytes
var doc = app.activeDocument;
var sel = doc.selection[0];
if((sel.columns.length>2)||(sel.columns.length<=1)){
exit();
}else{
var col1=sel.columns[0];
var col2=sel.columns[1];
var col1C=col1.contents;
var col2C=col2.contents;
//列の文字を入れ替え
col1.contents=col2C;
col2.contents=col1C;
}
You can’t perform that action at this time.