/************************************************************** * 開いている文書を一括してUTF-8に変換するマクロ * アクティブドキュメントのタブのファイルをUTF-8(BOM)に変換します。 * @author takuya_1st * @lastmodified 06/12/10 * @since 06/08/01 * @version 1.0 * **************************************************************/ var toUTF8 = { encodename : eeEncodingUTF8 , save : function (){ this.doc.Encoding = this.encodename; this.doc.save( this.getName() ) }, getName : function (){ return this.doc.Name; }, setDoc : function ( doc ){ this.doc = doc } } var docs = { documents : new Enumerator( editor.Documents ), size : function(){ return this.documents.Count; }, hasNext : function(){ return !this.documents.atEnd(); }, next : function(){ doc= this.documents.item(); this.documents.moveNext(); return doc; } } while( docs.hasNext() ){ toUTF8.setDoc(docs.next()); toUTF8.save(); }