You can use it for all kinds of things. I use it for automating repetitive UI tasks. Say, taking a high-hat track, finding a high-hat transient, splitting all the drum tracks on that point, grouping those drums takes into a group for editing and moving onto the next transient. That's a bit derived, but anywhere where you find yourself manually repeating UI actions over and over again, you can save yourself hours by scripting it. You can save your scripts as actions and then even bind them to a key.