Author Topic: find & replace in file name problem  (Read 7289 times)

Offline gianca49

  • Newcomer
  • *
  • Posts: 42
    • View Profile
    • fotoswiss.com
find & replace in file name problem
« on: April 08, 2014, 11:33:05 AM »
hi support
I have to find and rename a word in filenames.
I get there but PM only changes 1 filename.
see screenshots.
what do i do wrong?
thanks for feedback
giancarlo

[attachment deleted by admin]

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: find & replace in file name problem
« Reply #1 on: April 08, 2014, 11:40:43 AM »
giancarlo,

I have to find and rename a word in filenames.
I get there but PM only changes 1 filename.
see screenshots.
what do i do wrong?

I see nothing wrong.  But your build is out of date.  Please get the latest version and see if it fixes your problem.  If it does not fix your problem, then please let me know.

Thanks,

-Kirk

Offline gianca49

  • Newcomer
  • *
  • Posts: 42
    • View Profile
    • fotoswiss.com
Re: find & replace in file name problem
« Reply #2 on: April 08, 2014, 06:19:41 PM »
hi Kirk
got the latest version of PM.
same thing.
regards
giancarlo


[attachment deleted by admin]

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: find & replace in file name problem
« Reply #3 on: April 08, 2014, 06:54:31 PM »
giancarlo,

got the latest version of PM.
same thing.

Thanks.  I'll look into the problem.

-Kirk

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: find & replace in file name problem
« Reply #4 on: April 09, 2014, 03:45:58 PM »
giancarlo,

The problem is that the change you're making only differs in capitalization.  You're searching for "stmoritz" and changing it to "StMoritz".  The find and replace in file names is not very sophisticated and since most filesystems are case-preserving but case-insensitive, "stmoritz" and "StMoritz" are the same file name.  So the rename fails.

I'll make the renaming more sophisticated (rename to a temporary name and then rename to the final name) but in the meantime, you can do two find and replace operations.  The first one search for "stmoritz" and replace with "temp", and for the second find and replace search for "temp" and replace with "StMoritz".  That should work fine.

-Kirk

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: find & replace in file name problem
« Reply #5 on: July 11, 2014, 04:07:17 PM »
This problem has been addressed in the 15800 build of Photo Mechanic: Version 5.

Release notes are here: http://forums.camerabits.com/index.php?topic=9246.0