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

switching words in a paragraph

Return to Member Forum

  • Author
    Posts
    • #66596
      Gert Verrept
      Member

      We want to achieve the following (in works with F&C, but because of the hundreds of changes to be made, we tried a scripting solution):
      In a paragraph we need to switch two consecutive words, so word 1 word2 becomes word 2 word1 .
      I tried this, but it changes all words in the paragraph

      app.findGrepPreferences = NothingEnum.nothing;
      app.changeGrepPreferences = NothingEnum.nothing;

      app.findGrepPreferences.findWhat = “(w+) (w+) “;
      app.changeGrepPreferences.changeTo = “$2 $1 “;

      app.activeDocument.changeGrep();

    • #66597
      David Blatner
      Keymaster

      Didy ou try this with findchangebylist.jsx? Or perhaps MultiFindChange from automatication.com would work better?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads