Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

InDesign Scripting: footnote options and calling styles in folders

Return to Member Forum

  • Author
    Posts
    • #14385862
      Aaron Troia
      Participant

      I am trying to put together a script to set all my footnote options in one go and the one thing I can’t figure out is how to set the footnoteMarkerStyle and footnoteTextStyle footnote options with paragraph and character styles for my styles that are within folders

      These are the two lines of my script as they are now, first setting the Footnote Marker character style:
      app.activeDocument.footnoteOptions.footnoteMarkerStyle = "[Superscript]superscript";
      where [Superscript] is my character style folder and superscript is my character style within that folder.

      The next line is setting the footnote paragraph style
      app.activeDocument.footnoteOptions.footnoteTextStyle = "[Footnotes]footnote\ \(symbols\)";
      where [Footnotes] is my paragraph style folder and footnote (symbols) is my paragraph style within that folder.

      Is there a certain a way for calling style that are in folders? I’m guessing there is, does anyone know how to do it?

    • #14385863
      David Blatner
      Keymaster

      Hi Aaron! Nice to hear from you. As you know, I’m not much of a scripter myself… we’ll see if anyone shows up here who is, and can help. In the meantime, if you’re on FB, I highly recommend asking this group:
      https://www.facebook.com/groups/indesignscripting

      • #14385864
        Aaron Troia
        Participant

        Hello David! Thank you for suggesting that FB group, I will check it out!

    • #14385867

      app.activeDocument.footnoteOptions.footnoteMarkerStyle = app.activeDocument.characterStyleGroups.item(“Superscript”).characterStyles.item(“superscript”);
      app.activeDocument.footnoteOptions.footnoteTextStyle = app.activeDocument.paragraphStyleGroups.item(“Footnotes”).paragraphStyles.item(“footnote (symbols)”);

      (^/) The Jedi

      • #14385894
        David Blatner
        Keymaster

        Thank you very much, Michel! You are a great Jedi.
        Remember that you can put code or pre html tags around the text and it will keep the quote marks straight.

        So the text will "look like this"

      • #14385907
        Aaron Troia
        Participant

        Thank you Michel, I figured there was a way that I haven’t learned yet how to do, and that works perfectly! You are a true Jedi!

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads