[GastForen Programme Print/Bildbearbeitung Adobe InDesign Hyperlink aktualisierung nach Dateiumbenennung

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Print/Bildbearbeitung - Photos, Layout, Design
Themen
Beiträge
Moderatoren
Letzter Beitrag

Hyperlink aktualisierung nach Dateiumbenennung

imagica1971
Beiträge gesamt: 1

16. Nov 2020, 12:40
Beitrag # 1 von 2
Bewertung:
(5770 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo,

aufgrund von Dateinamenskonventionen mussten einige Dokumente umbenannt werden. Dies hat natürlich zur Folge, das Hyperlinkziele nicht mehr funktionieren.

Gibt es eine Möglichkeit (evtl. per Script) diese Hyperlinks zu aktualisieren, damit diese auf die Umbenannten Dokumente verweisen? Z.b. Neuzuweisung des Zieldokumentes?

Danke und Gruß
X

Hyperlink aktualisierung nach Dateiumbenennung

Uwe Laubender
Beiträge gesamt: 5314

25. Nov 2020, 14:16
Beitrag # 2 von 2
Beitrag ID: #577718
Bewertung:
(5295 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo imagica1971,
kommt auf die Art der Ziele ( destinations ) an.

Sind die Ziele Seiten in externen Dokumenten ( hyperlinkExternalPageDestinations ), müsste ein Skript von Kasyan Servetsky hilfreich sein:

Zitat von Kasyan Servetsky Restore external page destinations
Kasyan Servetsky

Script for InDesign. Written and tested in CC 2019 by me.
The idea for writing it was inspired by the post on the Adobe InDesign forum.
If you created hyperlinks whose destinations are pages in others documents and later a document was moved to another location, the links, obviously, would be broken.
The script is supposed to fix them by replacing only the part of the file path that differs.

For example, say, the file T02.indd was moved from the 2019 to 2020 folder

Quelle:
http://kasyan.ho.ua/...ge_destinations.html


Falls die Ziele aber Textanker ( hyperlinkTextDestinations ) in externen InDesign-Dateien sein sollten, wird's unangenehm. Da gibt's keine einfache Lösung. Ich habe mal unlängst einen Lösungsalgorithmus skizziert, der das Problem umschiffen kann. Hier als Vollzitat:

Zitat von Uwe Laubender The case:
There is a project, a bundle of InDesign documents, with hyperlinks.
Some point to hyperlinkTextDestinations inside the same document.
Some point to other documents.

If the documents are renamed, version control, whatever, the hyperlinks that point to hyperlinkTextDestinations outside the document will break immediately.

You cannot know from the broken hyperlink of docA.indd what the destination document is if the destination document was renamed: docB.indd to docB1.indd for example. And you cannot know what the desired hyperlinkTextDestination inside that document is that was linked to.

You even cannot retrieve that information with ExtendScripting using the DOM. Property destination with a hyperlinkTextDestination of a given hyperlink that points to a renamed document is not accessible anymore! If you try to read out the properties of destination, InDesign will throw an error:

Error number 79121, error message $ID/ExternalDocumentNotFound, in my German InDesign the message written out is: "Das Zieldokument des Hyperlinks kann nicht gefunden werden. Überprüfen Sie den Speicherort des Dokuments im Hyperlinkbedienfeld, bevor Sie diesen Hyperlink wählen."

IMPORTANT NOTE THAT POINTS TO A SOLUTION:

Of course somewhere in the document docA.indd with that hyperlink, that information must still be stored, because if you rename the original destination document back from docB1.indd to docB.indd, the hyperlink will work as expected again!

That is the key to a possible solution:

[1] Make a duplicate of the renamed destination document.
[2] Rename it back to its original name to unbreak the hyperlink.

[3] Run a script that redirects the hyperlink destinations from docA.indd to the renamed document docB1.indd.

Step [2] would be only possible if you know the renaming scheme ( if there is a scheme at all ) or if you know what the name of the destination document was before it was renamed.

Quelle:
https://community.adobe.com/...m-p/11618436#M404780


So, zurück in die harte Realität:
Ein halbfertiges Skript gibt's auch, das funktioniert sogar wunderbar, es muss allerdings noch weiterentwickelt werden. Ein vernünftiges Interface fehlt noch, um die alten Dateinamen den neuen Dateinamen leicht zuordnen zu können.

Den Aufwand das abzuschließen scheue ich im Moment, der Code kann aber bei Bedarf komplettiert werden. Allerdings wird das Skript dann ein kostenpflichtiges werden.


als Antwort auf: [#577591]