Including a named variable as part of a file name
Posted by
otills on
Feb 18, 2010; 6:52pm
URL: http://imagej.273.s1.nabble.com/Including-a-named-variable-as-part-of-a-file-name-tp3689324.html
Hi,
I'm writing a macro which is reading and writing to several subfolders.
The file and folder structure is the same in each folder that the macro is writing to so rather than having to change the file path throughout the macro when using it on a different folder I want to try and make part of the file path specified in the macro a named variable so I can just change this as needed.
i.e. something along the lines of..
myFolder = xxxxx
run("Image Sequence...", "open=[C:\\Documents and Settings\\[folder]\\421_Test100000.BMP] number=50 starting=1 increment=1 scale=100 file=[] or=[] sort");
Is this possible and if so how do I go about it?
Many thanks,
Oli
[hidden email]<mailto:
[hidden email]>