.nd2 format images. How to open in macro image j language?

I need to open a bunch of .nd2 images and I wrote a macro image code to open all images that are in a folder. The problem is that bio-formats import options is pop up for each image and I need to press ok to open the image and this happens for each image in that folder. Is there any way to get rid of it ?

Hey @Zeynab_Mousavi,

one trick is using the macro extensions of BioFormats.

Your questions (and some example code) has been discussed earlier here: