Batch open JPGs in Preview
The following example AppleScript code assumes that the macOS default of images opening in Preview is still in play.

set theImages to quoted form of POSIX path of ¬
    ((path to home folder as string) &amp; "ownCloud:Bilder_neu:Einzelbilder")

set articleNumber to text returned of ¬
    (display dialog "Please enter article number:" default answer ¬
        "" with icon note buttons {"Cancel", "Continue"} default button "Continue")

do shell script "find " &amp; theImages &amp; " -type f -iname '" &amp; articleNumber &amp; "-*.JPG' -exec open {} +"


If Preview is not the default handler for image files, then change the do shell script command to:

do shell script "open -a Preview $(find " &amp; theImages &amp; " -type f -iname '" &amp; articleNumber &amp; "-*.JPG')"


Note that "pure AppleScript" is not required!



Note: The example AppleScript code is just that and does not employ any error handling and is meant only to show one of many ways accomplish a task. The onus is always upon the User to add/use appropriate error handling as needed/wanted.