Applescript and shell scripting (ie, Terminal) have some things in common, but there's a lot different.
Applescript is all about getting the GUI applications that you use to run actions. Most Mac apps have some level of applescript support, so for instance you can write a script that gets Photoshop to do something. Or, even better, you can get multiple applications to talk to each other. For instance, my wife photocopies checks before she deposits them and I later scan them. I have a script that allows me to select the PDF, and then it opens it in Photoshop and tries to automatically straighten and crop it just to the check. If that doesn't work, it opens it up in PDFPen and selects the crop tool for me to crop things manually.
Shell scripting is a bit older and different. In the terminal, there are a lot of commands that can be strung together to do different things. Generally, they are a separate set of commands from your GUI apps, and each only has a tightly focused piece of functionality. You string them together by the way that most of them accept text input and put out text output.
Both are useful for different things, and you can also use them together.
To learn old-school Unix scripting, a good book I've read for understanding the types of things that can be done is
Unix Power Tools. It gives you lots of small recipes for how to do different things.