Hi,
Please see the answers below and a modified version of your macro.
Also check out the Macro Functions website.
http://rsb.info.nih.gov/ij/developer/macro/functions.html#SHow can I modify this very crude macro to do the following
A - Use the name from the original stack name
B - Ask me where to save. IF possible by adding a fixed portion of the
address at the beginning say C:\\Users\\user\\Desktop\\ then let me choose
further from here.
A. Use "File.nameWithoutExtension"
B. Use getDirectory("Where to save the files?");
macro "Macro Biofilm [m]" {
dir0=getDirectory("Where to save the files?");
filename=File.nameWithoutExtension;
run("8-bit")
run("Image Sequence... ", "format=TIFF name="+filename+" start=0
digits=3 saveAs(.tiff)=["+dir0+".tif]");
close();
}
On Wed, Jan 8, 2014 at 11:31 AM, gg82 <
[hidden email]> wrote:
> Hi everybody,
> I am doing the following think to a big batch of images stack
> 1 - Convert to 8 bit
> 2 - Save as a sequence of tiff
> 3 - Close
>
> Using the record command i got
> macro "Macro Biofilm [m]" {
> run("8-bit")
> run("Image Sequence... ", "format=TIFF name=getname start=0
> digits=3
> saveAs(.tiff)=[C:\\Users\\user\\Desktop\\]");
> close();
> }
>
> This will save the sequence on the desktop and will always use the same
> name.
>
> How can I modify this very crude macro to do the following
> A - Use the name from the original stack name
> B - Ask me where to save. IF possible by adding a fixed portion of the
> address at the beginning say C:\\Users\\user\\Desktop\\ then let me choose
> further from here.
> There must be an easy way but with all the command get directory get name
> so
> on I am getting mad.
>
> Thank you very much in advance.
>
>
>
> --
> View this message in context:
>
http://imagej.1557.x6.nabble.com/Image-sequanece-save-where-i-want-tp5006058.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html