
The FILE pull down menu allows for "save" and "save as". The command "save" allows for two options: with or without a session_name. Without a session_name, a dialog box is presented and effectively I am doing the "save as" in the FILE menu at that point. With a session_name, it functions as a 'save as' without the dialog box. How do I create the same effect as FILE pull down menu "save", using the save command? Looking for a generic approach for any session, not knowing the file/session name apriori, & having to type the session name everytime. I suppose there is a python method to get the session filename & path, then build the command string. Matthew Dougherty National Center for Macromolecular Imaging Baylor College of Medicine ================================================= =================================================

Hi Matt, The 2 letter keyboard shorcuts are your friends. Shortcut “Ss” which can be invoked with command “ac Ss” saves the current state using the current session file name. Unfortunately I see that if there is no current session file name it throws an error. But maybe this is still useful to you. If not and you need it to show a dialog in the cases when there is no current session file name, I can fix that in the daily build. Tom
On Jan 7, 2016, at 2:58 PM, Dougherty, Matthew T <matthewd@bcm.edu> wrote:
The FILE pull down menu allows for "save" and "save as".
The command "save" allows for two options: with or without a session_name.
Without a session_name, a dialog box is presented and effectively I am doing the "save as" in the FILE menu at that point.
With a session_name, it functions as a 'save as' without the dialog box.
How do I create the same effect as FILE pull down menu "save", using the save command?
Looking for a generic approach for any session, not knowing the file/session name apriori, & having to type the session name everytime.
I suppose there is a python method to get the session filename & path, then build the command string.
Matthew Dougherty National Center for Macromolecular Imaging Baylor College of Medicine ================================================= ================================================= _______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu <mailto:Chimera-users@cgl.ucsf.edu> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
participants (2)
-
Dougherty, Matthew T
-
Tom Goddard