How to get selected fie (i.e. picture) dimensions?

Hi,
I promised myself I would start learning scripting in Dopus long time ago but haven't started yet.Yesterday I was just playing around with it and decided to give it a go.
I still know nothing about JS and DO scripting but I think I can make something up looking at some examples.

My first question is how to get an image width and height (of selected file in the lister) so these numbers could be used in the script.

Thank You.

Run the command CLI SCRIPTMODE=vbscript and then in the CLI paste the following:

for each f in DOpus.Listers.lastactive.activetab.selected Set meta = f.metadata if meta = "image" then DOpus.output f & " : " & meta.image.picwidth & "x" & meta.image.picheight end if next

This will print out the width and height of all selected image files in the active tab of the last active Lister. Hope that helps!

Yes, that helps a lot.
Thanks.

PS
I'll be back - soon :slight_smile: