ok, here’s another one, it’s a combo of a macro and a PLE script. it does pro tools style automation trim, without having to resort to ‘trim’ or ‘loop’ functions on the automation panel.
(what it does is, you select a range, it creates automation events on the edges of the selection, then jumps a frame to the left of the left edge and creates a point, and a frame to the right of the right edge, then selects the inner left and right points and switches back to the the select tool, so you are ready to go and scale / trim your selection, without affecting the rest of your automation curve. pretty cool, for my needs anyways.)
https://www.dropbox.com/s/gjjt6w2yebw717l/brooklyn_automation_trick_custom_macro.mp4