ScriptUIを簡単に生成できるライブラリを発見

ネットを徘徊していたらこんな物を発見。
どうやらダイアログを簡単に生成するためのライブラリのようだ。
http://omino.com/sw/ominoAdobeScriptsSuite/shared/ominoDialogMaker.jsx



すばらしいです。

 #include "ominoDialogMaker.jsx"
 
function go()
{
	
	// setting up a dialog is easy. you can add entries for basic types of
	// string and number, and checkbox and radio buttons, and the 
	// dialog is presented reasonably, with very little work.
	
	var omd = newOminoDialog("サンプルダイアログ");

	omd.boxedText(5,"This is an example of an Omino Dialog. It runs \n"
		+ "with After Effects, Illustrator, and Photoshop, or just in the\n"
		+ "ExtendScript toolkit itself. It can handle simple parameter types."
		+ " (Running in " + app.name + " v" + app.version + ")"
	);
	omd.number("ナンバー","n",15.7);
	omd.string("文字列","s","a text value");	
	omd.separator();
	omd.sectionLabel("basics");
	omd.checkbox("チェックボックス","x",true,"subtitle");
	omd.menu("メニュー","menu","cherries",["apples","bananas","cherries","dates","figs"]);
	omd.radioButtons("ラジオボタン","r","red",["red","maroon","scarlet","crimson"]);
	omd.separator();
	omd.sectionLabel("files");
	omd.openFile("ファイル","jpgFileName","foo.jpg","Choose a JPEG File",".jpg");
	omd.selectFolder("フォルダ","folderName","/tmp","Choose a folder");
	omd.saveFile("保存先","gifFileName","foo.gif","Save as GIF",".gif");s
	
	// when we "run" the dialog, we get back a result variable.
	// if you hit CANCEL, then the result is null.
	// if you hit OK, then the values are populated into the result.
	
	// note: you can kill photoshop by running the dialog from ExtendScript toolkit, then halting
	// the script with the dialog still up.
	
	var result = omd.run();
	
	if(result == null)
		alert("Cancelled\nYou clicked \"cancel\".");
	else
	{
		var s = "結果:\n";
		for(var f in result)
			s += "   " + f + " := " + result[f] + "\n";
		alert(s);
	}
}
go();

http://omino.com/sw/ominoAdobeScriptsSuite/