Login  Register

open dv files from macro

Posted by danibodor on Apr 17, 2009; 5:58pm
URL: http://imagej.273.s1.nabble.com/open-dv-files-from-macro-tp3692885.html

i have a problem when i want to open a dv file with 3 channels from a macro. the thing is, when I open one of these files (manually), I get a Bio-Format Import Options window. I then unselect everything and it opens the way i want it to. macro recorder then tells me:

--open("C:\\Documents and Settings\\Whatever\\MyDVFile.dv] view=[Standard ImageJ] stack_order=Defaul");

However, in my macro I assign a name to the specified file i want to open:

--dvFile = dir+substring(list[i],0,lengthOf(list[i])-1)+File.separator+slist[j];

now I want to open dvFile and use the options: view=[Standard ImageJ] stack_order=Defaul". However, I don't know how to substitute the C:\\Documents and Settings\\Whatever\\MyDVFile.dv for the dvFile that I assigned. I have tried a few permutations, but haven't found it yet. It works if I leave out the arguments of view and stack_order, but then I manually have  to accept the options for each file that is opened.

Can anyone help?