B1: "Save also other options to Script"

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

B1: "Save also other options to Script"

Post 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.
Dreamer
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

Strange, all settings are saved, i've tested
Which settings are not saved for you?
Pierre.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

All settings are saved to script, but not all settings are restored after an operation, just the format settings are restored.
Dreamer
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post 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?
Pierre.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post 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.
Dreamer
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post 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...)?
Dreamer
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post 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 ?
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

So what is the good behaviour:
* After a save script => restore settings
* After a Go => restore settings
right?
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post 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.
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post 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
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Yes right, also after Go.
XnViewMP Linux X64 - Debian - X64
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post 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.
Dreamer
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post 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.
XnViewMP Linux X64 - Debian - X64
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post 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 ?
XnViewMP Linux X64 - Debian - X64
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

OK, I agree, what about the others??
Dreamer
Post Reply