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

Hyperlinking script

New Here ,
Feb 03, 2023 Feb 03, 2023

493FEBB1-2F58-4FDA-98B2-5DEECEB79A1D.jpeg

Hi All,

 

I am working on creating a planner on indesign. I have a page with has a calendar of February 2023 like below, I would like to hyperlink the numbers in the corner to all the daily pages I have created for February, is there an easy way to do this please using a script? I have 12 months I would need to do this for. 

TOPICS
Scripting
4.6K
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 , Feb 03, 2023 Feb 03, 2023

Hi @wahid28246070iu4o, here's a quick script that does what you want, I think. It works on your sample file. To use it, select one or more table cells and run script. You don't need to tell it what month, because I noticed you have set the script labels for the text frames on first page to "calendarDatesN" so the script gets the month from that. Now you just need to set up the pages so that the 1st of each month is a section start with the section prefix "FEB-" and "MAR-" etc. See attached sampl

...
Translate
LEGEND ,
Jun 12, 2024 Jun 12, 2024

@ktestingad

 

Your current code is working with selection, right?

 

So you just need to rename your main() function to something else - and call it from the new main().

 

And this new main() needs to loop through TextFrames collection of the Document - and select each TF and call the old main() - renamed to something else.

 

I'm sorry but I'm on my phone right now so can't give you working code. 

 

 

Or your current code is not working? 

 

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 Beginner ,
Jun 13, 2024 Jun 13, 2024

Daily pages script works very well. So I thank you very much.
Now my new planner has more than one page. It did not work well. In it the first page takes the first date and the second page takes the second one, but I see the link 1 of the first and the second page. If you want to do this, it can be done. Thank you very much for helping

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 Beginner ,
Jun 17, 2024 Jun 17, 2024
LATEST
 
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