Skip navigation
jamesasa
Currently Being Moderated

Find/Replace linked file names

Jun 12, 2009 12:13 PM

Is there a script out there that will do a find/replace and change the file names of image links in an indesign file like so...

 

Find: [space]

Replace with: - (hyphen)

 

Thanks

 
Replies
  • Currently Being Moderated
    Jun 12, 2009 12:21 PM   in reply to jamesasa

    Check out this thread – post #62. With a little modification this script will do what you want.

     

    Kasyan

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 12, 2009 1:24 PM   in reply to jamesasa

    http://forums.adobe.com/message/1106014#1106014

     

    I'm sorry, I pasted the link in my previous post, but something went wrong and it didn't show up

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2009 9:25 AM   in reply to jamesasa

    var myOldName = "james smith before.tif";
    // replace extention
    var myNewName = myOldName.replace(/\.tif$/i, "") + ".jpg";
    // replace spaces with dashes
    myNewName = myNewName.replace(/ /g, "-")
    alert(myNewName);

     
    |
    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