|
Bugzilla – Bug 274 |
Inconsistent behaviour with print("\\Clear, \\Update, \\Headings etc. when using JAVASCRIPT |
Last modified: 2011-01-23 16:09:26 CST |
| ⚠ |
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. |
| Inconsistent behaviour with print("\\Clear, \\Update, \\Headings etc. when u... | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
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 //JensIJ.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