Page 1 of 1
program folder placeholder
Posted: Sun May 11, 2008 6:02 am
by Lofi
hello,
thanks for this awesome program. i've just started using it and got a question: is there a placeholder with which i can refer to the xnview application folder in the ini files? to be more precise: i want to create a conversion xbs file in c:\programs\xnview\scripts
in case the install folder changes, the script won't be selectable anymore in the dialog for multiple file conversion. hence i'd like to know if there's a placeholder like $\scripts or the likes.
i tried
PathScript=InstallDir\Scripts
as mentioned here:
http://newsgroup.xnview.com/viewtopic.php?p=32852
but it doesn't seem to work, i. e. the dropdown box in the multiple file conversion dialog doesn't show my xbs script which is in c:\programs\xnview\Scripts\test.xbs
or in other words: what's the default folder where the program searches for .xbs files when it fills the dropdown box in the multiple file conversion dialog?
thanks in advance!
regards
Re: program folder placeholder
Posted: Mon May 12, 2008 3:03 pm
by xnview
If i understand right, you would like to use always the same folder for xbs script?
Re: program folder placeholder
Posted: Mon May 12, 2008 3:17 pm
by oops66
xnview wrote:If i understand right, you would like to use always the same folder for xbs script?
+1
Using always the same sub folder by default (under the Xnview folder) for .xbs script is a good idea (useful especially in case of USB keys).
Variable ?
Posted: Mon May 12, 2008 3:26 pm
by Clo
Pierre

Hello !
• Hm… Except I mistake, I guess that
Lofi should need rather an environment variable to define the XnView path,
no matter where that folder is located.
• Something like i.e.
%XNVIEW_PATH% similar to the one we have in Total Commander %COMMANDER_PATH%
• I've aready suggested that a while ago, it could be useful,
especially to use the programme with a removable medium, i.e. a USB-stick…
- Maybe a "sub-variable" could exist too, like
%XNVIEW_PATH_SCRIPTS%

KR
Claude
Clo
Re: program folder placeholder
Posted: Mon May 12, 2008 4:37 pm
by Lofi
xnview wrote:If i understand right, you would like to use always the same folder for xbs script?
either that or a path for scripts which you can configure and which is relative to the installation folder. generally an %INSTALLDIR% environment variable would be nice. but regarding this issue all i want is to load a script/profile which i can select from the dropdown box. unless i'm mistaken, currently the dropdown box seems to be always empty unless i use the open button. imo the existing scripts should be already selectable in that dropdown box once you get into the conversion menu:
the reason i need this is because a friend of mine sends me a lot of images of his digicam which are 3mb each. he's not very familiar with computers. so i've preconfigured xnview and sent it to him so that he can resize the pictures before he sends them. currently he always has to push the open button and load the script manually before he can start the conversion and make the images smaller. btw it's most awesome that you work with local ini files. the windows registry is so useless regarding applications.
Re: program folder placeholder
Posted: Tue May 13, 2008 6:57 am
by xnview
So perhaps you want to edit xnview.ini, section [Convert]
Posted: Tue May 13, 2008 5:44 pm
by Lofi
thanks, but what exactly? all i got there is this:
[Convert]
CloseDlg=1
DefaultFormat=jpeg
DeleteOriginal=0
HideError=0
KeepFormat=0
KeepOriginalDate=0
KeepSubFolder=0
Overwrite=1
UseOrgPath=0
Posted: Tue May 13, 2008 6:33 pm
by xnview
If you use history you should have something like:
history-0=C:\Temp\test1.xbs
history-1=C:\Temp\test2.xbs
history-2=C:\Temp\test3.xbs
Posted: Wed May 14, 2008 4:57 am
by Lofi
thanks, i'll try. but then again there's the other problem that the path is absolute and not relative to the install folder. hence a preconfigured setting isn't "portable", and a %INSTALLDIR% variable would be great in that matter.
thanks for all your info!
