var dlg = new Dialog("Gaussian Blur", 500, 300);

dlg.AddInt("Blur Width", 4);

// display the dialog and wait for the user to press OK or Cancel
var result = dlg.DoModal();  

if(result == 1)	// if the user pressed OK
{
	var blur = dlg.GetInt(0);

	var img;

	for(i = 0; i < GetImageCount(); i++)
	{
		img = GetImage(i);
		img.GaussianBlur(blur)
	}
}