@Files Open List of Files in Folder Matching Criteria @Example

Depends on the type/language of scripting you want to learn.
You might look at:

If you don't already know AppleScript, then I would suggest you start with JavaScript for Automation (JXA). It uses the same core JavaScript that has long been used in web browsers and thus has a lot of rich functions and wide support. You can find topics here by viewing Topics tagged with "jxa".