23文字超過でTwitterに投稿できなかったワンライナー
a=app;e=/(\d{1,3})?(\d{3})?(\d{3})(?!\d)/;t=a.selection[0].paragraphs;for(i=0;i<t.length;i++){r=t[i].contents.match(e);if(r){r.shift();a.findGrepPreferences.findWhat="(\\d{1,3})?(\\d{3})?(\\d{3})(?!\\d)";t[i].findGrep();a.changeGrepPreferences.changeTo=r.join(",").replace(",,",",");t[i].changeGrep();}} #dtp