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 274 - Inconsistent behaviour with print("\\Clear, \\Update, \\Headings etc. when using JAVASCRIPT
Inconsistent behaviour with print("\\Clear, \\Update, \\Headings etc. when u...
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-19 11:47 CST by Jens
Modified: 2011-01-23 16:09 CST
0 users

See Also:

Description Jens 2011-01-19 11:47:18 CST
print("\\Clear") or \\Update are interpreted correctly when using Javascript but print("\\Headings:...") or \\Close are not.
The following test-scripts will clearly show the inconsistent behaviour:

// test01.js	OK
IJ.log("foo");		// prints foo
// print("foo");	// same thing

// test02.js	OK
IJ.log("\\Clear");	// clear log window
// print("\\Clear");	// same thing

// test03.js	OK
IJ.log("foo");		// prints foo
IJ.log("\\Update:bar");	// updates screen, prints bar

// test04.js	inconsistent
IJ.log("foo");		// prints foo
IJ.log("\\Close");	// prints \Close instead of closing the window

// test05.js	ERROR
IJ.run("Table...", "name=baz width=350 height=250");
IJ.log("[baz]", "\\Headings:n\tSine\tCosine");	// nothing
IJ.log("[baz]","1\t2\3");			// nothing
print("[baz]", "\\Headings:n\tSine\tCosine");	// nothing
print("[baz]","1\t2\3");			// nothing

//kind regards
//Jens
Comment 1 Wayne Rasband 2011-01-23 16:09:26 CST
IJ.log("\\Close"), and print("\\Close") in JavaScript, close the Log window in ImageJ 1.44o5 and later. print(f,"\\Headings:...") is a feature only supported by the ImageJ macro language.


-wayne