Hey Robby,
That's not overly difficult.
You can use Keyboard Maestro to create a keyboard shortcut for pinning a tab, or you can use the keyboard system preferences.
Automation can be accomplished using only stock Keyboard Maestro actions.
-Chris