program folder placeholder

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

Moderators: helmut, XnTriq, xnview

Post Reply
Lofi
Posts: 8
Joined: Sun May 11, 2008 5:42 am

program folder placeholder

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

Re: program folder placeholder

Post by xnview »

If i understand right, you would like to use always the same folder for xbs script?
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: program folder placeholder

Post 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).
XnViewMP Linux X64 - Debian - X64
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Variable ?

Post by Clo »

:arrow: 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% Image

• 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%

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Lofi
Posts: 8
Joined: Sun May 11, 2008 5:42 am

Re: program folder placeholder

Post 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:

Image

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

Re: program folder placeholder

Post by xnview »

So perhaps you want to edit xnview.ini, section [Convert]
Pierre.
Lofi
Posts: 8
Joined: Sun May 11, 2008 5:42 am

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

Post 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
Pierre.
Lofi
Posts: 8
Joined: Sun May 11, 2008 5:42 am

Post 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! :D
Post Reply