Session Manager [v7.90]  —  Bookmark your environments: locations and/or display (save/restore tabsets and layout)

Discuss and share scripts and script files...
autocart
Posts: 1354
Joined: 26 Sep 2013 15:22

Re: Session Manager [v2.6b7]

Post by autocart »

It takes a while to understand how the autosave feature works but I think for me Session Manager is about perfect now. And the autosave is fast too. :appl:
The script association is even more than I would have ever expected and it seems so powerful and cool that it makes the whole thing 2x perfect. (Even though I don't yet know what to use it for.)
Extremely awesome work, thx Flux!!! Image

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Session Manager [v2.6b7]

Post by FluxTorpedoe »

Thanks for the kind words... :)

BTW, I just changed the script association, so not only will you be able to associate a script file, or file and label, but you'll also be able to enter directly your script (like in the Address Bar). Much easier for simple series of commands and scripts like "run", etc.

Well, I'll wait before posting the update to see if there's something else I need to change.

Have a nice day, 8)
Flux

autocart
Posts: 1354
Joined: 26 Sep 2013 15:22

Re: Session Manager [v2.6b7]

Post by autocart »

FluxTorpedoe wrote:if there's something else I need to change.
This is not a need to change but definitely a wish: If possible I'd like to have the clickable list of sessions also available in the catalog for easier and quicker switching. How much work would that be?
Regards, Stephan

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Session Manager [v2.6b7]

Post by Enternal »

@ FluxTorpedo (& autocart)
Oooh! All of these new updates are just wonderful! It's really useful and continue to be really useful. Nothing to complain at all :biggrin:

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Session Manager [v2.6b7]

Post by FluxTorpedoe »

Hi Everyone,
Back online again... ;)

Thanks Enternal for the feedback. :)

@autocart
FluxTorpedoe wrote:I'd like to have the clickable list of sessions also available in the catalog for easier and quicker switching
Hummm. Do you mean each session listed as a separate entry in the catalog? Though it's possible by scripting to replace or include catalogs, I fear there's no way to add or remove single entries in the catalog...
The closest thing that could be done —in theory— would be to manually add sessions (i.e. scripts to load them) to catalogs, though the entries wouldn't be updated if sessions are renamed or deleted...
But right now, this kind of "direct access" to Session Manager functions only exists for "Reset", "Reset Layout", and "Save Temporary Session".

Well, if that's really really useful, I could think about providing direct access to individual sessions, let me know...

Have a nice day, 8)
Flux

Filehero
Posts: 2713
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Session Manager [v2.6b7]

Post by Filehero »

Hi all (Flux and users),

I seems that saving/restoring layouts is broken over here, at least with XY 14.20.0314.

So far, using either the 2nd pane or the address bar as indicator the saved layout isn't restored at all (though EnableLayouts=1). Can someone confirm?

Cheers,
Filehero

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Session Manager [v2.6b7]

Post by klownboy »

Hi Filehero,
I can confirm some definite issues with SessionManager as well. I've noticed similar issues with 3 of my scripts which I had to update or correct. They were used frequently and they worked just fine up to a week or two ago. Each problem had to do with conditional "IF" statements with the use of AND or OR or equivalents. The issue I had has to do with the opening and closing parentheses "(" and ")" in scripts. I can't be sure, but for some reason XY scripting was more tolerant with lines like...

Code: Select all

	if ($STG_AutoSave && ($PRE_n_AvailSess < 2)) 
but now may require something like...

Code: Select all

	if (($STG_AutoSave) && ($PRE_n_AvailSess < 2)) 
I don't know if it's the same issue in this case, but I noticed many similarly laid out if statements in Flux's script. I stepped through my scripts and noticed it wasn't properly/accurately checking the if conditions. My scripts worked again after I made some tweaks like ones above. I'm not sure what Don might have changed to break those scripts, but yesterday I was planning on asking that question (i.e., if anyone else had noticed any issues) and never got around to it.
Ken

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Session Manager [v2.6b7]

Post by PeterH »

Just tried to test a stmt as your first - and had no problem.
(Sorry: old XY-Version 0307 here, so ignore this Statement)

But: if there's something new requesting a change like you wrote, I would say it's a :bug:
For me the additional () make no sense at all.

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Session Manager [v2.6b7]

Post by klownboy »

Hi PeterH, the additional () make no sense to me either, but I had numerous script lines like this...

Code: Select all

if ($orig_ratio == 1.78 AND ($xy == 16x9)) {
msg "Image, ". $fn ." is already in a<br>16x9 aspect ratio, ". $d . " px!";
$FileChkReturn = "0"; continue (2);    }
They failed, as seen by stepping, to give me the correct result and when the additional () were added the script ran fine as it always did before without the additional ()...very odd. In this particular case, I'd get the message that the picture is already in the 16x9 aspect ratio when I knew it wasn't. It worked fine in almost daily use up to a week or two ago and it works again with the additional (). :eh:

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Session Manager [v2.6b7]

Post by PeterH »

OK: in this example the additional () *could* at least do something.

But help *still* says that == has higher precedence than AND - so I further call it a bug.
Though I tried to simulate it, and it worked ok. (But I used all constants, like (4 == 4 AND 5 == 5)
I even deleted the right pair of () and all correct. Tested all combinations of additional ().

By the way: 16x9 is a string, and should be quoted. Though I don't think it makes a problem here...
(16*9 would be 144 :biggrin: )

Congratulations Germany, and good night (miss a yawning face to show :lol: )

Filehero
Posts: 2713
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Session Manager [v2.6b7]

Post by Filehero »

Hi Ken & Peter,

thanks for your analysis, I hope Flux can reproduce the findings.

I'm still "shocked" by what I've been witnessing yesterday evening. :shock:

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Session Manager [v2.6b7]

Post by klownboy »

Thanks PeterH for the tests and the tips. The script is about 2 years old and could do with a major update especially with all the new features Don has added since. I do quote my strings now. I was actually surprised I hadn't when I looked back at the code. Maybe the problems I was having are completely unrelated to the SessionManager issues but I figured I'd through it out there just in case.

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Session Manager [v2.6b7]

Post by FluxTorpedoe »

Wowww,

Don is moving too fast (again)!!! :ugeek:
I just discovered papers, runret(), and so much more... :appl:

Regarding the conditional issue, I don't have it with v14.20.0306. Thanks to your post I know I'll have to wait to update my XY since I don't have time to figure this out right now. Though at first sight I don't see why a lone variable should be enclosed in parenthesis...

Regarding the update of Session Manager with the new and expended layout tools, that's my next :ball: ... I was waiting/hoping for the integration of the InfoPanel status (i.e. visibility of Preview, or Find, or...), but I'll update it anyway as soon as I can.

Besides, my very limited time with XY development was devoted to the discovery and integration of the new tools with Everything from Marco's script... :twisted:

See you there — and here soon for more SM news.

Have a nice day, and :beer: to Don's team, 8)
Flux

Filehero
Posts: 2713
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Session Manager [v2.6b7]

Post by Filehero »

Hi Flux,

thanks for your update.

Now have more fun with XY and Everything. :D


Cheers,
Filehero

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Session Manager [v2.6b7]

Post by klownboy »

Dual pane (Session with layouts enabled) is definitely not being saved or restored properly and the same with the address bar. If I save a Dual Pane configuration with a address bar and then return to my "Normal" configuration which was saved with no address bar the Normal Session will have an address bar now.

Post Reply