Just found some macros I wrote a couple of years ago. I haven't been using them so I'm unsure of how reliable they are but they appear to work in Slickedit V18 and probably at least versions 17 and 16 as well.
Save/ restore sessions saves a subset of the information that vrestore.slk has in it but to any file of your choosing. I don't have a complete list of what gets saved but it includes open buffers, windows (including the new troublesome floating windows
) and bookmarks. The file has an "ini_section" type heading of [State] added to it at the start to help make it recognizable as a valid session file (I think that's why I did it!).
<<<<<< update 19 Oct 2014 >>>>>>>
I've uploaded a new version with the save session functions "deactivated" with #if 0 because I'm not sure they're reliable.
To save a set of files you can instead use the official (undocumented) functions
save_named_state
load_named_state
<<<<<<<<<< >>>>>>>>>>>>
_command void xsave_session(_str filename = '')Allows you to pass the filename to save the session into, otherwise defaults to
1. %configuratrion-folder%/SlickEdit Sessions/default.ses
or if a workspace is active
2. %workspace-folder%/SlickEdit Sessions/default.ses
but you get to confirm or re-select the file to save to.
_command void xrestore_session(_str filename = '')Restores from a file of your choosing with defaults as for save-session.
_command void xsave_bookmarks()Saves current bookmarks to %configuration-folder%/Bookmarks\bookmarks-file1.bmk - or whatever file you choose.
You are given the choice of deleting all bookmarks after they have been saved.
_command void xrestore_bookmarks()Restores bookmarks from %configuration-folder%/Bookmarks\bookmarks-file1.bmk - or whatever file you choose. Current bookmarks are cleared before restoring.
_command void xsave_session_plus_toolbars(_str filename = '')Same as xsave_session but includes toolbars.