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

FindChangeByList Not Applying Clipboard Contents

Return to Member Forum

  • Author
    Posts
    • #84029
      Ari Singer
      Member

      I have a weekly publication that I set up. The design is always exactly the same, and the original MS Word file is set up with the exact same formatting to ease the process. To speed it up I have a ready defined FindChangeByList text file to apply the formatting.

      I set it up to automatically find certain formats and apply the appropriate paragraph and character styles. Everything works and applies fine except the last step.

      I have a ready text box with an object style applied that I copy to the clipboard before running the script, which then should find every beginning of a paragraph with the “BODY TEXT” paragraph style applied to it and anchor the clipboard contents there. In the GREP Find/Change dialog box it works perfectly, but in the script it doesn’t, and an error pops up.

      So my question is: is something wrong with the way I defined it, or can the script not handle clipboard contents?

      Following is the line of the script that I use:

      grep {findWhat:"^(.)", appliedParagraphStyle:"BODY TEXT"} {changeTo:"~C$1"} {searchBackwards:false, includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} Anchor Header Boxes

    • #85981
      pnamajck
      Member

      Ari-S. …

      just looking around here at https://creativepro.com and came across your inquiry. noticed you avidly helping others … thought i’d suggest for you to read pg80- in adobe’s indesign-cs6-javascript-scripting-guide.pdf file … located at https://wwwimages.adobe.com/content/dam/Adobe/en/devnet/indesign/sdk/cs6/scripting/InDesign_ScriptingGuide_JS.pdf

      again … not sure if it will help or not, Ari-S. … as it simply utilizes js’s “duplicate” method.

      as for myself … have interest but have not promoted that interest any further. peace out.

    • #86256
      Ari Singer
      Member

      Thanks, pnamajck! This post was a while ago, when I was still at the mercy of the FindChangeByList script. But fortunately, since then, I taught myself scripting so I don’t need the clumsy FindChangeByList anymore.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads