Skip navigation
Currently Being Moderated

String substitution help

Aug 14, 2012 7:43 AM

Tags: #bridge #scripting #rename #batch-process

We purchased a large batch of design assets and began to rename them.  After much thought we decided we would like to keep the original file names based on the fact that we can search the provider (shutterstock) which would make them easier to find in our DB.  I need help removing the text we've added and reverting to the original file names.  Examples below.


Current name:


baby_feet shutterstock_9193737.jpg

stars shutterstock_1018373.eps


we simply want to drop everything prior to the "shutterstock" and keep everything the same after.  We would like the follows to look as shown below.





thanks in advance for any advice on how to fix this blunder

  • Currently Being Moderated
    Aug 14, 2012 8:55 AM   in reply to AHChiron

    Have you looked at using Bridge's batch rename…? It now has regexp & string subbing… You also have the opportuinity to store previous name in file XMP when renaming…

    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 12:35 PM   in reply to AHChiron

    Well this could be done with script or the built-in Batch Rename function… Much depends on where all these files are?


    Screen shot 2012-08-14 at 20.30.38.png

    This should give you what you want… ^ matches beginning of line . the dot matches any character the + makes the dot greedy then \s matches space… Replace with nothing… Hope that makes sence…?

    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 1:33 PM   in reply to Muppet Mark

    As always there is more than one way, another would be to use:-




    In the find field, this get everything upto shu. Leave the replace with blank.

    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 3:29 PM   in reply to Paul Riggott

    I does make total sense… If you don't want to learn or have the time for script do learn reguar expressions ( GREP )… Bridge ( rename ) & InDesign ( find & replace and styles ) make use of these pattern matches… Very cool stuff… and yes Paul lots of ways to skin a cat I do like that… but it takes a little practice…

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points