Depends on the type/language of scripting you want to learn.
You might look at:
- Scripting (KM Wiki)
- Learning & Using AppleScript & JavaScript for Automation (JXA)
- JavaScript for Automation (JXA) Resources
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".