boolean updateMacroOptions() {
   String options = Macro.getOptions();
   int index = options.indexOf("maximum=");
   if (index == -1) return false;
   index += 8;
   int len = options.length();
   while (index < len - 1 && options.charAt(index) != ' ') index++;
   if (index == len - 1) return false;
   int min = (int) Tools.parseDouble(Macro.getValue(options, "minimum", "1"));
   int max = (int) Tools.parseDouble(Macro.getValue(options, "maximum", "999999"));
   options = "size=" + min + "-" + max + options.substring(index, len);
   Macro.setOptions(options);
   return true;
 }