Switch to last view?

 From:  mushycraft
6703.1 
Is there a way to script a shortcut key to switch from the current view to the last view used?

Thanks