Convert all notes in a document to text

Home Forums InDesign Add-ons (Scripts, Scripting, and Plug-ins) Convert all notes in a document to text

Tagged: 

This topic contains 6 replies, has 3 voices, and was last updated by  Aaron Gray 12 hours, 15 minutes ago.

  • Author
    Posts
  • #99481

    Aaron Gray
    Member

    I know that this can be done; I’m just not script-savvy enough to do it. There is an option in the “Notes” panel to take the selected note and have it “Convert To Text.” However, I would like a script to take ALL the notes in a document and convert them ALL to text. Does anyone know how to do that? Thanks!

  • #99483

    Hi Aaron,

    this can be done with one line. But realize that you maybe get overset text!

    app.activeDocument.stories.everyItem().notes.everyItem().convertToText();
    

    Kai

  • #99484

    Aaron Gray
    Member

    Yes! That’s exactly what I needed, Kai. Thank you so much!

  • #99677

    Newbie to scripting here. How do I get that above line to run in InDesign? I’m not very familiar with applescript, javascript and the like. I was trying to make new script files and loaded them into my User panel to run, but am getting error messages.

  • #99709

    Aaron Gray
    Member

    Hi Holly. Check out the following blog post, and that will walk you through it. Good luck! https://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-or-blog-post.php

  • #99710

    Thanks, Aaron! I was doing just about everything in that post already, but I guess I was using the wrong format/tools by trying to save out files from Script Editor/ExtendScript Toolkit. Then I couldn’t figure out how to save the .txt file as .jsx, since it wasn’t an option in the Save dialog. So I just renamed the extension on my desktop, installed it, and it works. Thank you!!

  • #99711

    Aaron Gray
    Member

    No problem!

You must be logged in to reply to this topic.