■プログラム説明(ソースコード説明)
			 ドキュメントの横幅と縦幅はwidthとheightで求めることができます。この場合は設定されている単位での値を返します。返される値には単位がついています。単位が不要な場合にはwidth.value、height.valueのようにvalueを指定すると単位なしの値を得る事ができます。
			
			■ソースコード
			preferences.rulerUnits = Units.PIXELS;
			w = activeDocument.width;
			h = activeDocument.height;
			alert(w+","+h);
			w = activeDocument.width.value;
			h = activeDocument.height.value;
			alert(w+","+h);
			
			■ポイント
			 なし
			
		
■実際のスクリプトをダウンロード(sample.js.zip)