Hello all, I am trying to add a menu item to allow me to save current state and coordinates in one step. The purpose is to prevent the user (me) from losing his/her place in the pdb/mtz files and quickly (without dialogs) saving current changes in case of a crash. Anyone with scheme experience: please help (for I have no scheme experience)!
Below is what I have so far. What I would like to change is to have the script apply this to all loaded molecules (not just molecule 0). Also, the filenames would have to be the same as filenames of the original files. Any help will be greatly appreciated, Vladimir --------------------------------------------------------------------------- ;; ;; ;; Quicksave function (let ((menu (coot-menubar-menu "Custom_menu"))) (add-simple-coot-menu-menuitem menu "Quickly save current state..." (lambda() (save-state) (write-pdb-file 0 "backup.pdb"))))