Reply To: Export URL hyperlinks

#1237903
Kal Starkis
Member

Ah… so the problem isn’t with the destination but the source. The fix should be much the same. Just as a hyperlink destination can be of various types in InDesign (a page, text or a URL), so a hyperlink source can be of different types too (a page item, text or cross reference). Page items don’t have a sourceText property, so if you have these in your document the script will no-doubt fail with the kind of error you’re seeing. (A consequence of banging out code without thorough testing!)

It sounds like you’re about to roll up your sleeves and get stuck into a scripting project of your own, so why don’t you have a go at fixing my script? Just apply the same logic I used before to catch the error, and you should be good to go. Let me know if you can’t get it to work.

I don’t have a lot of spare time ATM, but I’m sure I can find time to share my thoughts on your project. You can always shoot me a message via the feedback form on my website (inkwire.app). If you have more technical questions, probably best just to ask questions here, at the Adobe forums or on Stack Overflow.

This article was last modified on April 13, 2020

Comments (0)

Loading comments...