Thank you very much for your help.
> Hi Hanna,
>
> for processing all images within a folder please have a look at
> Process->Batch->Macro...
>
> Alternatively you can also use the following macro.
> Have a nice day.
>
> Cheers Arne
>
>
> dir=getDirectory("Choose a Source Directory ");
> list = getFileList(dir);
>
> Dialog.create("Specify File extension");
> Dialog.addString("File extension","tif",3);
> Dialog.show();
>
> ext=Dialog.getString();
>
> for (i=0; i<list.length; i++) {
> if (endsWith(list[i],ext)){
>
> open(dir+list[i]);
>
> }
> }
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> Hanna Sas Nowosielska
> Sent: dimanche 10 octobre 2010 12:04
> To:
[hidden email]
> Subject: Macro question
>
> Dear Image J users,
>
> Could someone please provide me with advice? I would like to record or
> write
> a macro which would open a image in a given folder, change it into 8-bit,
> do
> the multi-threshold segmentation then open next image in the folder, do the
> same thing and process this way all of the images in a given folder.
> Unfortunatelly I don't know how to ask image J to open "next image" from a
> series of images without writing the name of the image and writing the
> names
> of almost 500 images would be inefficient.
> I will be very grateful for any advice,
>
> Best regards,
> Hanna
>
> --
> Department of Plant Anatomy and Cytology
> Faculty of Biology and Environmental Protection
> University of Silesia
> Jagiellonska Str. 28
> 40-032 Katowice
> Poland
>
Jagiellonska Str. 28