• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Finding hyperlinks

LEGEND ,
Apr 23, 2009 Apr 23, 2009

Copy link to clipboard

Copied

Just makeing sure I'm not missing the obvious...

I don't see any straight-forward way of checking the hyperlink of specific text. (i.e. text.hyperlinks -- or what-have-you)

Before I start writing a very convoluted and expensive function to check if text is hyperlinked, and what it is; am I missing something?

Harbs

TOPICS
Scripting

Views

611

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Apr 23, 2009 Apr 23, 2009
Impossible in JavaScript.

If you were using AppleScript:

tell application "Adobe InDesign CS3"

tell active document

set myStory to story 2

get hyperlink text sources whose parent story of source text is myStory

end tell

end tell

Dirk

Likes

Translate

Translate
Advocate ,
Apr 23, 2009 Apr 23, 2009

Copy link to clipboard

Copied

Impossible in JavaScript.

If you were using AppleScript:

tell application "Adobe InDesign CS3"

tell active document

set myStory to story 2

get hyperlink text sources whose parent story of source text is myStory

end tell

end tell

Dirk

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 23, 2009 Apr 23, 2009

Copy link to clipboard

Copied

LATEST

Hi Dirk,

Thanks for confirming.

Dang! we really need a "whose" equivalent in js...

Harbs

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines