Skip navigation
designmon79
Currently Being Moderated

Folder Selection loops end

May 28, 2012 2:01 AM

Hi All,

 

I have this script to relink images to new name and path.

 

When I run this script select folder dialogue display again and again (match with doc links length). I mean if document has 15 links select folder dialogue display 15 times.

 

Can anybody please help me to resolve it. See below my Code:

 

var updatedLinks = myInddLinks[i].name.replace ("oldtext", "newtext");

var myFolder = Folder.selectDialog("Select the links folder", "");

var getLinks = Folder(myFolder).getFiles (updatedLinks);

if (getLinks.length == 1)

{

myInddLinks[i].relink(getLinks[0]);

}

 

 

 

 

Thanks,

Mon

 
Replies

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