-
1. Re: Need help with shared hyperlinks
John Hawkinson Jul 19, 2011 12:10 PM (in response to mpc999)I am going to be lazy and say you should use the techncique I suggested earlier today inHow can I find and change text in Hyperlinks? to just do a search-and-replace among your shared hyperlinks, and not worry about making them not shared. Perhaps there's a reason why that doesn't work for you, though.
-
2. Re: Need help with shared hyperlinks
melissaglogan Jul 19, 2011 12:16 PM (in response to mpc999)"Is there a way (a script? another method?) that I can remove the shared nature of the hyperlinks so that when I go to edit them they show as links to files (Link to: File, not Link to: Shared Destination) with a live Destination Path box where I can edit the link?"
When you doubleclick on the link, where it says "Link to: Shared Destination" is a pull down menu. Click and open the pull down menu and select "File" instead of "Shared Destination".
As for the Destination Path box, I do'nt think there's a way to type in a path. I think you have to browse to get to the file.
Open the pull down menu under Destination "Document:" and then click "Browse".
I am not sure if that helps you or not, but I hope it does!
Melissa
-
3. Re: Need help with shared hyperlinks
mpc999 Jul 19, 2011 1:18 PM (in response to John Hawkinson)Thanks John, I knew you were on a roll today and hoped you would reply. I've looked at your three recent posts on find/replace scripts.
I simplified my situation in the original post. What has happened is that the client changed the server location and I have done a global change of the server name (supplied by the client) by editing the idml file. Now the links have the new server name, but they don't work in the PDF I make. The client is saying it's because I have the hyperlinks set up as Shared Destinations. I know that's not correct, but I want to strip that out to remove it from the discussion rather than argue with the client. (I think the real problem is that I don't have the client's true file path.)
I want to get the links back to the point where double clicking on the hyperlink name (number) in the Hyperlink palette opens an Edit Hyperlink dialog where the destination is Link to: File and the file path shows up in the File Path box as an editable string. Just the way I made them in the first place.
(Melissa,thanks for your suggestion, but when you go from the Shared drop down to File, the File Path box is empty. I would have to put in the entire file path again from scratch.)
-
4. Re: Need help with shared hyperlinks
John Hawkinson Jul 19, 2011 1:53 PM (in response to mpc999)Well. I do feel sort of bait-and-switched, but...
I want to get the links back to the point where double clicking on the hyperlink name (number) in the Hyperlink palette opens an Edit Hyperlink dialog where the destination is Link to: File and the file path shows up in the File Path box as an editable string. Just the way I made them in the first place.
It's good that you're comfortable editing the IDML.
If you compare links made both ways in the IDML, the only distinction between the Shared and the not Shared seems to be the hidden attribute of the <HyperlinkURLDestination/> tag.
Allegedly you cannot edit this in Javascript (though you could, I suppose, create a new HyperlinkURLDestination with all the same properties and then chang eeach hyperlink to point to it).
But editing it in the IDML works fine. Open designmap.xml and change the Hidden="false" to Hidden="true". Of course, you only want to do that in the <HyerplinkURLDestination/> tags...
Something about this seems fishy to me, so you might want to verify it yourself in a single case before you put too much effort in. But I think it's right.
-
5. Re: Need help with shared hyperlinks
mpc999 Jul 20, 2011 9:51 AM (in response to John Hawkinson)Hi John,
I tried switching the true/false in the IDML file, and at first glance, it seems to work. I haven't had more than a few minutes to quickly test a file. I end up with a few blank hyperlinks (not sure why), but it changes 95% of them correctly back to not being shared destinations. I have over 700, so having to fix a few is OK.
I didn't mean for you to feel bait-and-switched. My original question was valid -- I wanted to change the hyperlinks back to not being shared destinations, even if it was of no consequence. I just didn't want to go into the gory details of "why" and just focus on the "how".
I appreciate your participation in this forum and your knowledge of scripting. Being a complete non-scripter, I'm sure I'll use the structure of the other scripts you've posted in the last few days sometime in the future.
-
6. Re: Need help with shared hyperlinks
John Hawkinson Jul 20, 2011 7:07 PM (in response to mpc999)I tried switching the true/false in the IDML file, and at first glance, it seems to work. I haven't had more than a few minutes to quickly test a file. I end up with a few blank hyperlinks (not sure why), but it changes 95% of them correctly back to not being shared destinations. I have over 700, so having to fix a few is OK.
Why don't you post an example (from the IDML) of one of the ones that did not work?




