|
Bugzilla – Bug 1091 |
Invalid macro recording when file names contain spaces and brackets |
Last modified: 2015-06-19 12:46:56 CDT |
| ⚠ |
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. |
| Invalid macro recording when file names contain spaces and brackets | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
When using e.g. File > Import > Image Sequence... with file names containing both spaces (" ") and brackets ("[]"), the recorded macro command is non-functional: run("Image Sequence...", "open=[C:\\temp-debug\\image[1 x 1].tif] sort"); When run from the script editor, the macro runs without error but no image stack is opened. As a workaround, the files can be renamed to remove spaces and/or brackets. Information about your version of Java: os.arch => amd64 os.name => Windows 7 os.version => 6.1 java.version => 1.6.0_24 java.vendor => Sun Microsystems Inc. java.runtime.name => Java(TM) SE Runtime Environment java.runtime.version => 1.6.0_24-b07 java.vm.name => Java HotSpot(TM) 64-Bit Server VM java.vm.version => 19.1-b02 java.vm.vendor => Sun Microsystems Inc. java.vm.info => mixed mode java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment java.specification.name => Java Platform API Specification java.specification.version => 1.6 sun.cpu.endian => little sun.desktop => windows file.separator => \ The up-to-date check says: REMIND_LATER Information relevant to JAVA_HOME related problems: JAVA_HOME is set to: C:\UTILIT~1\FIJI-D~1.APP/java/win64/jdk1.6.0_24//jre imagej.dir => C:\UTILIT~1\FIJI-D~1.APP Information about the version of each plugin: Activated update sites: ImageJ: http://update.imagej.net/ (last check:20150614035343) Fiji: http://fiji.sc/update/ (last check:20150616154943)File paths in macro run() calls cannot contain both spaces and brackets. As a work around, use a path to the folder that contains the image sequence, for example run("Image Sequence...", "open=C:\\temp-debug sort"); Or upgrade to the latest daily build (1.49v8) and open image sequences using open("path/to/folder") or open("path/to/folder","virtual"). This works even if the folder name contains spaces and brackets. For example: open("C:\\temp debug[]") where 'temp debug[]' is a folder.