I found, that Set Saveformat=all,quiet does not do, what i would expect, which is, that there is no dialog window ("quiet"), & the changes would be saved, as if the second option ("save for all layourts & tabs) was chosen. Is it the wrong option?
It seems to work here. Is that the full/exact command you're running?
Yes, that's the whole command. I just retried it with a button (the other command is some multi-key sequence), but it doesn't stick. If i just leave the folder, & go back instantly, it seems ok. But if i use "Prefs STYLE=normal Set Navlock=off", reloading my standard style, the newly saved column isn't there. It works perfectly, if i use "Set Saveformat", then manually check the second option, then save.
I can do this in a 1/100th second, using some macro recording tool, which replays the sequence very fast, but it would be more elegant & direct, of course, with Opus commands.
So the problem isn't with the "quiet" part? The first post did not say exactly what was wrong, but implied to me that the command was showing you a UI and selecting the wrong option in that UI.
If the problem is that your style isn't using the new default format after saving it, does that still happen if you close the window after making the change, then load the style in a new, fresh window?
No, the quiet part works, i suppose (since the changes do not stick, i can't be sure). At least no windows shows up, but when i oben a fresh window, the changes are gone. Strange.
What's the exact command you're using to load the style, and which elements of the style aren't as expected?
"Prefs STYLE=normal Set Navlock=off" as one line is not a valid command, so I assume that is really two lines/commands. Is the Navlock part important, or do you see the same results when simplifying things and only loading the style?
It is the same command i have posted. & yes, you're right, it actually was a two-liner, of course. I was posting it like that only for compactness. The elements of the style are all as expected, so that's not the issue.
I have the Navlock stuff removed now, because it was some sort of relict from the times, when i had a different work flow for my image editing stuff, where i had to change between different layouts. Now i only use this command only for resetting the lister to "normal", which is sometimes the quickest way to go back to the basic set of tabs. Anyway, it didn't change the behavior of the command (Set Saveformat=all,quiet), which doesn't keep the changes.
But there is a good news, as far as some brief testing tells me. I have changed the code now to use
Set Saveformat=all,quiet,folder, which seems to do the job now.
If both "all" and "folder" are specified, it will act like only "folder" was, and just save the format for the current folder.
I've looked at the code in more detail, and the "replace" and "clear" parameters are both important for what you want to do:
"replace" needs to be added if you want the command to go through your layouts, styles, tab groups and default lister and update the format for them as well as the main Preferences / Folder Formats entries. (I think I didn't need that in my test because the thing I was testing with was already flagged to ignore its own formats, so it didn't need updating.)
Set SAVEFORMAT=folder,replace will save the format for the current folder, and go through layouts etc. updating anything that uses the same folder.
Set SAVEFORMAT=all,replace will save the format as the new default and update all layouts etc. to use it.
When using "all", you can also add "clear" which will make it wipe out all the other formats in the Preferences list.
At least, that is my understanding from reading the code. There may be some more subtleties that I'm not aware of. I think that explains why what you were using before didn't do the expected thing. Probably Set SAVEFORMAT=all,replace,quite is what you want, if your aim is to make all tabs in your layouts and styles use the current format.
Of course, all of this will be better documented once the Opus 12 manual is done. I only know how it works because I could look at the code, but we won't leave it that way.
[quote="leo"]"replace" needs to be added if you want the command to go through your layouts, styles, tab groups and default lister and update the format for them as well as the main Preferences / Folder Formats entries. (I think I didn't need that in my test because the thing I was testing with was already flagged to ignore its own formats, so it didn't need updating.)
Set SAVEFORMAT=folder,replace will save the format for the current folder, and go through layouts etc. updating anything that uses the same folder.
Set SAVEFORMAT=all,replace will save the format as the new default and update all layouts etc. to use it.
At least, that is my understanding from reading the code. There may be some more subtleties that I'm not aware of. I think that explains why what you were using before didn't do the expected thing. Probably Set SAVEFORMAT=all,replace,quite is what you want, if your aim is to make all tabs in your layouts and styles use the current format.[/quote]
That's very helpful information, thanks for that. Most probably Set SAVEFORMAT=folder,replace is, what i looking for, as i want to change things only for those specific folders, but not generally for all folders (if i understand it right), although for all possible ways to approach those locations. So, "clear" or "all,replace" might go too far already. I will have a few test now.
Yep, that's what i thought. Some stuff is self-explaining, but sometimes you have to guess.