Defining a precise Width (in %) to a timeline view instead of using the slider

Connected to my issue here: Timeline view – persistent and precise width

Managed to get a way of doing what I want so I’m sharing it here. Using Keyboard Maestro one can program a shortcut to trigger a mouse click and drag to the right.

Empirically assuming that the slider has 232 pixels wide, we ask the user’s for a % of movement, pass it to a variable, and use that variable in a formula to convert that % into an amount of pixels to drag.

Usage: move the Width slider fully to the left; place the mouse pointer in the slider handle; activate the hot key; enter the desired % (without % sign); done!

For the lazy ones here’s the KB macro: SLIDE.kmmacros.zip (1.6 KB)