RENAME: Adding <Space> and then TEXT to ORIGINAL FILENAME

Started by jelvers, August 06, 2014, 03:16:48 PM

Previous topic - Next topic

jelvers

Trying to rename several files by just adding the "HDR"-string as TEXT to the ORIGINAL FILE NAME (e.g. Photo_xy). However I want to include <Space> between theORIGINAL FILE NAME and the "HDR"-string. I tried to add after ORIGINAL FILE NAME the TEXT String " HDR" (i.e. <space> in front of HDR) or the TEXT String " " (i.e. just <space>) and then TEXT "HDR", respectively. Both methods did not deliver the required result, eg.

Photo_xy HDR, but rather
Photo_xyHDR

Interestingly enough it is no problem to add a <space>, when I for instance want to add to a given file name a GLOBAL SEQUENCE NUMBER and want to leave <space> between the file name and the number, e.g. TEXT "Photo_xy " and then GLOBAL SEQUENCE NUMBER (using four digits) delivers as expected

Photo_xy 0001

I searched intensively the HELP rename section, but can't find a solution, how to add a <Space>-string in my first case.

Thanks for help.

Juergen

Mario

Which steps did you use?
Text steps?
Variables?
Please show us your renamer preset.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

jelvers

Here is the preset I used, but the desired <space> before the HDR did not show up as explained in my earlier message.

Regards, Juergen



[attachment deleted by admin]

ubacher

I recall a problem where a space is not shown in the preview but OK in the actual file name.
Must be logged somewhere on this forum.
Check if it might be that problem that you are encountering.

Mario

Works here. I used an  "Original File Name" and a "Text" step. The Text step contains

<blank>HDR



The resulting file name is something like

_DSC12345<blank>HDR.RAW



[attachment deleted by admin]
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

jelvers

I think I found the source for the confusion. You are right, Mario, with your statement: it finanlly works, indeed. However, the Preview window does not show the correct result as indicated correctly in the Preset window. If I then still Run the renamer, the final result is correct indeed, although again in the Result window the renamed file is not shown correctly. The three attached screenshots show what I just described. So, it may be a little bit confusing for the user.

Regards, Juergen



[attachment deleted by admin]

voronwe

Just my personal opinion:
Iwould avoid to add spaces in Filenames, because that can lead to trouble with programs using it correctly, especially when you unsing them with webbrowsers. So why not use a _ instead of space

Mario

Quote from: jelvers on August 08, 2014, 11:57:11 AM
I think I found the source for the confusion. You are right, Mario, with your statement: it finanlly works, indeed. However, the Preview window does not show the correct result as indicated correctly in the Preset window. If I then still Run the renamer, the final result is correct indeed, although again in the Result window the renamed file is not shown correctly. The three attached screenshots show what I just described. So, it may be a little bit confusing for the user.

Regards, Juergen
This is a bug and should go into the bug report forum. I think this is caused because the preview uses XAML to render the data, and a blank has no meaning in XAML or HTML and is hence not shown. Spaces in file names are always a spot of trouble, especially if you work across multiple operating systems or plan to use your files on web services or galleries.

Please add a bug report so I can schedule time to fix it.
PS.: The preview directly below the Step list shows it correctly.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

jelvers

Quote from: Mario on August 08, 2014, 02:08:34 PM
Spaces in file names are always a spot of trouble, especially if you work across multiple operating systems or plan to use your files on web services or galleries.

Mario, thanks for the hint. Just to let the community know, I replaced in ca. 110.000 files the <space> by a "_" via the RENAME process options. Worked like a dream within a few minutes!

Regards, Juergen