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

Convert URLs to Hyperlink - using InDesign Javascript

Explorer ,
Aug 23, 2020 Aug 23, 2020

Hi Everyone,

How to click the "Convert All" button in the "Convert URLs to Hyperlink" menu, using indesign javascript.

 

Mageshwaran_0-1598189151587.png

Please help me!!!

 

Thanks,
Magesh

TOPICS
Scripting
2.2K
Translate
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

Community Expert , Aug 23, 2020 Aug 23, 2020

There is no script call for that. You'll have to write your own script to do that: find all URLs and convert the found text to hyperlinks.

P.

Translate
Community Expert ,
Aug 23, 2020 Aug 23, 2020

There is no script call for that. You'll have to write your own script to do that: find all URLs and convert the found text to hyperlinks.

P.

Translate
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
New Here ,
Aug 04, 2021 Aug 04, 2021

Hi Peter,

Thanks for this info, I've been searching for it to use in a batch convert, but only been getting the first URL fully converted when I use the URLtoHyperlinks.jsx.

Is it possible to edit the current URLtoHyperlinks.jsx to add the convert all bit (I'm currently trying to work this part out as I've never written a script before) and save it as another name?
Simone

Translate
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
Community Expert ,
Aug 04, 2021 Aug 04, 2021
LATEST

Is it possible to edit the current URLtoHyperlinks.jsx to add the convert all bit

No, that's not really possible. It's a complex script that depends on its user interface. You'll have to come up with your own conversion code.

Translate
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
People's Champ ,
Aug 26, 2020 Aug 26, 2020

Adobe implemented the Convert to Hyperlinks box as a script, rather than a plugin, so it is not scriptable.

Translate
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
Mentor ,
Aug 26, 2020 Aug 26, 2020

Go to https://console.adobe.io/downloads/id

Click on InDesign >> Plugin SDK >> 2020 >> Cross Platform

Note there is also a scripting SDK which would be the more logical location, but I'm indeed talking about the Plugin SDK.

Be warned that this is a 500 MB download.

In the archive, you'll find source/open/components/converturltohyperlink/ConvertURLToHyperlink.jsx and related files.

This has been around in the SDK since CS5 and steadily grown in size by 50%, so it is likely the current source for the feature. I did not further look at it.

Dirk

Translate
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