Copy link to clipboard
Copied
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.
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
...Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more