【apple script】 Choose image files under a certain directory without prompt

Talk about Pixelmator Pro, share tips & tricks, tutorials, and other resources.
User avatar

2022-11-24 15:19:29

Hi, i'm trying to apply ML Enhance to image files under a directory.
So I need to set the files to the variable.
I wrote like this.
set targetImg to choose file with prompt "select image" of type {"public.image"} with multiple selections allowed
Yes. With this chord, I can set the files in pop-up finder.
But I want to set the files automatically like i just tell apple script the directory path of the files.

Is there any idea for this?
Thank you!