■プログラム説明(ソースコード説明)
			 全ページにある〒0000000という表記を〒000-0000というハイフン付きの表記に変更します。
			
			■ソースコード
			pageObj = app.activeDocument.pages;
			for (i=0; i<pageObj.length; i++)
			{
				for (j=0; j<pageObj[i].textFrames.length; j++)
				{
					txt = pageObj[i].textFrames[j].contents;
					result = txt.replace(/〒[0-9]{7}/g, repFunc);
					pageObj[i].textFrames[j].contents = result;
				}
			}
			
			function repFunc(chr,ptr,allStr)
			{
				return chr.substring(0,4) + "-"+chr.substring(4,8);
			}
			
			■使い方
			1:あらかじめドキュメントを開いておきます。
			2:スクリプトを実行します。
			3:〒0000000というハイフンのない形式が〒000-0000形式に置き換わります。
			
			
			■ポイント
			 なし
			
		
■実際のスクリプトをダウンロード(sample.js.zip)