Page 1 of 1

Automatically closing non-locked tabs on exit

Posted: 08 Sep 2013 12:17
by pg111
Hi everybody,

I apologize if my question may have been already asked.

I cannot find any setting that would allow me to have non-locked tabs automatically closed when exiting the program.

Is it possible to do so?

Many thanks in advance for any answer.

Cheers.

Patrick

Re: Automatically closing non-locked tabs on exit

Posted: 08 Sep 2013 15:19
by klownboy
Hi pg111,
This little script will close all unlocked tabs even if you are currently in a unlocked tab and then exit XYplorer. You could assign it to a Customized Toolbar button (CTB) or catalog item. I'd have to research a bit more to see if it could be run automatically on exit without the last line of code which does the exiting.

Code: Select all

    #352;                                //close all "other" unlocked tabs
      if (tab("get", "flags") == "") {   //close the "current" selected tab if it's unlocked        
       tab("close", 1) }
    exit                        //Saving depends on user setting in Configuration | Startup & Exit | Save settings on exit
Good luck,
Ken

Re: Automatically closing non-locked tabs on exit

Posted: 08 Sep 2013 21:48
by pg111
Thank you so much, Ken, for your input. I will try it asap and let you know.

Cheers.

Patrick