Edit button's linked script

Maybe this is an interesting one? How to write a script that opens a chosen script’s button for editing?