Page 1 of 2

B1: "Save also other options to Script"

Posted: Thu Apr 17, 2008 12:09 am
by Dreamer
This is not working good. Only the format options are restored, as John said:

"any settings changes (specific to the Batch) that are global in scope should be restored after the Batch completes"

...so also all options in General tab (IMHO), otherwise the original options are lost.

I have suggested such an option because sometimes I need to rename the files, sometimes replace, but after an operation default options should be restored.

XnView 1.93.6 beta 1, Windows XP SP2.

Re: B1: "Save also other options to Script"

Posted: Thu Apr 17, 2008 7:40 am
by xnview
Strange, all settings are saved, i've tested
Which settings are not saved for you?

Posted: Thu Apr 17, 2008 4:44 pm
by Dreamer
All settings are saved to script, but not all settings are restored after an operation, just the format settings are restored.

Posted: Fri Apr 18, 2008 8:05 am
by xnview
Dreamer wrote:All settings are saved to script, but not all settings are restored after an operation, just the format settings are restored.
I can't reproduce, could you send me your xbs file?

Posted: Fri Apr 18, 2008 4:06 pm
by Dreamer
Sent, but I'm not sure if this will help you.

Here are the steps to reproduce the problem:

- enable "delete original" option
- save as script A
- restart xnview
- press ctrl+U
- disable option "delete original"
- restart xnview
- press ctrl+u
- select script A and press Go button
- press ctrl+u
= "delete original" option is enabled, it's not restored...

...only format settings are restored, all other settings from General tab are NOT restored, they should be restored too IMO, as John has suggested.

Posted: Tue Apr 22, 2008 8:29 pm
by Dreamer
What about other users? Do you think also the other settings from General tab should be restored aftern an operation, or just Transformations and format settings (JPEG quality...)?

Posted: Tue Apr 22, 2008 10:11 pm
by oops66
Dreamer wrote:What about other users? Do you think also the other settings from General tab should be restored aftern an operation, or just Transformations and format settings (JPEG quality...)?
Yes of course it's better to save into the script file all custom script parameters (Generals + Transformations) and after, when the "Save" button is pressed & your_script.xbs created, restore the previous "default Values" for General, and blank for Transformations.
Then you only have to check(ON) the box "script" your_script.xbs to show the script parameters (without modify your default previous general setting).
If the box "script" your_script.xbs is not checked(OFF), then only the general settings (previous default values) are shown.
(Like "Send by Email" function behavior for JPEG quality...)

Maybe a "Save as Custom" and a restore "Custom Values" button is needed for the custom general settings ?

Posted: Wed Apr 23, 2008 7:55 am
by xnview
So what is the good behaviour:
* After a save script => restore settings
* After a Go => restore settings
right?

Posted: Wed Apr 23, 2008 1:11 pm
by oops66
xnview wrote:So what is the good behaviour:
* After a save script => restore settings
* After a Go => restore settings
right?
Yes,
For me, after a save script => restore settings, is the best solution.

Posted: Wed Apr 23, 2008 1:25 pm
by xnview
oops66 wrote:
xnview wrote:So what is the good behaviour:
* After a save script => restore settings
* After a Go => restore settings
right?
Yes,
For me, after a save script => restore settings, is the best solution.
Perhaps after Go too

Posted: Wed Apr 23, 2008 4:11 pm
by oops66
Yes right, also after Go.

Posted: Thu Apr 24, 2008 12:29 am
by Dreamer
xnview wrote:So what is the good behaviour:
* After a save script => restore settings
* After a Go => restore settings
right?
I'm not sure about "After a save script", what about other users??

Yes for "After a Go => restore settings" and also...

After a Cancel => restore settings

Because when I use a script and then Cancel, default settings are lost too.

Posted: Thu Apr 24, 2008 6:56 am
by oops66
Dreamer wrote:
xnview wrote:So what is the good behaviour:
* After a save script => restore settings
* After a Go => restore settings
right?
I'm not sure about "After a save script", what about other users??
Yes for "After a Go => restore settings" and also...
After a Cancel => restore settings
Because when I use a script and then Cancel, default settings are lost too.
Yes, but if both are activated:
After a save script => restore settings
and also, After a Go => restore settings
(and of course after Cancel too, but should be already the case)
You will not have anymore this kind of problems.

Posted: Thu Apr 24, 2008 3:32 pm
by oops66
Works for me now in B3, thanks, but it will be better to after a script check & uncheck box (with a script_name.xbs) => restore settings too, for an interactive behavior.

After a save script => restore generals settings
After a Go => restore generals settings
After Cancel => restore generals settings
and after a script uncheck box => restore generals settings too.

Others users ?

Posted: Thu Apr 24, 2008 3:51 pm
by Dreamer
OK, I agree, what about the others??