Script using Crop3D - parameters not passed

I used the Macro Recorder to perform a number of sequential steps on an image stack. The recorder catpures this step:

run(“Crop (3D)”, “change”);

However, what I want is a way to pass the crop values into the Crop3D plugin and bypass the GUI for Crop Options. In particular, I have already determined the x,y and z crop limits, and want to apply them to the stack.

This leads to several questions:

  1. Is there a way in the run command to pass these options and avoid the Crop Options dialog box?
  2. Alternatively, I could rewrite the code for Crop 3D, if I could find the relevant plugin code in them imagej directory (my search to find it so far has come up empty).
  3. Is there guidance available for upgrading existing plugins?