NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 273 - Macro Recorder error while recording JAVASCRIPT
Macro Recorder error while recording JAVASCRIPT
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
All All
: P2 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2011-01-18 13:11 CST by Jens
Modified: 2011-01-19 05:33 CST
0 users

See Also:

Description Jens 2011-01-18 13:11:39 CST
When recording the following steps in the built in recorder as a Javascript:
Image -> Adjust -> Brightness/Contrast
->Reset

the resulting script code is:
...
resetMinAndMax();

instead of
...
IJ.resetMinAndMax();

The "resetMinAndMax();" form is correct for ImageJ macros (*.ijm) only but it produces a ReferenceError in Fiji/ImageJ: ("resetMinAndMax" is not defined) when used in Javascript code.
Comment 1 Wayne Rasband 2011-01-19 05:33:48 CST
This bug is fixed in ImageJ 1.44o1.

-wayne