Align camera with a curve

This might be of some help Running Python scripts from aliases or toolbar buttons