Skip to main content
Inspiring
October 14, 2022
Answered

Is this an ExtendScript possibility: change tags based on Level?

  • October 14, 2022
  • 1 reply
  • 176 views

Some specifics: I have run-in head paragraph tags used throughout the book going from Level1Tag1Run all the way to Level6Tag 3Run (and maybe beyond), and most of them have a line after it (FederalRegistry) which has In Column formats. I have styles set up for this item (FedLevel2Tag1, etc) but the file that I was sent has every instance of that item coming in with FederalRegistry and not the correct Level tags. Is there a way to automate a global change so that whenever that kind of tag is following, say, a Level3 paragraph tag, that it switches to the FedLevel3 tag? Is that something I would need Extend Script to do? Or is that beyond automation? (Attached image key: Yellow Highlight is Level5Tag1Run, Blue Highlight is FederalRegister but SHOULD be FedLevel5Tag2)

    This topic has been closed for replies.
    Correct answer frameexpert

    Yes, this is possible with ExtendScript, especially since it looks like there is a clear pattern that a script could follow. If you are interested in a script, please contact me offlist. Thank you. rick at frameexpert dot com

    1 reply

    frameexpert
    Community Expert
    frameexpertCommunity ExpertCorrect answer
    Community Expert
    October 14, 2022

    Yes, this is possible with ExtendScript, especially since it looks like there is a clear pattern that a script could follow. If you are interested in a script, please contact me offlist. Thank you. rick at frameexpert dot com