Macro - Importing Image Sequence (ignore folder)

Dear all,

I have trouble to import an Image Sequece if there is a folder within the imagefolder.
For example, I have an Folder with ~300 Images and within that folder there is a folder named Data.
If I run those lines
dir=getDirectory(" Imagefolder"); run("Image Sequence...", "open=dir convert sort");

I’ll get a log message "No Image: There are no images open."
Is there a workaround?

Cheers Tobias

Hi Tobias

You can use a filter to include only files with a filename extension (e.g. .tif):

run("Image Sequence...", "open=dir convert file=.tif sort");

best regards
Michael

2 Likes

Dear Michael,

this was easy. Thank you very much! :slight_smile:

Best

Tobias