nisus.com
https://www.nisus.com/forum/

Find & replace, find text with Paragraph Shading
https://www.nisus.com/forum/viewtopic.php?f=17&t=5211
Page 1 of 1

Author:  Ignaceb [ 2013-01-12 11:45:12 ]
Post subject:  Find & replace, find text with Paragraph Shading

I'm using an Applescript to put all emails of a "dossier" in a rtf file.
One "dossier" can have thousands of pages of email. The rtf text has to be cleaned: multiple returns, spaces, ... Nisus seams to be perfect therefore.
The rtf output is a continuous file. I want to change this: there has to be a pagebreak at the start of each email.
The rtf output formats the header of each mail in bold + Paragraph Shading color CCCCCC (Format, Background Color, Show Background Colors, Color Palettes, Web Safe Colors, a light gray called CCCCCC).
How can I write a macro command:
Find and replace,
find "return" + text string 'From:' in bold + Paragraph Shading CCCCCC
replace "page break" + same text string en paragraph shading

Attachments:
ReturnToChangeIntoPageBreak.png
ReturnToChangeIntoPageBreak.png [ 18.52 KiB | Viewed 2491 times ]

Author:  phspaelti [ 2013-01-15 19:52:05 ]
Post subject:  Re: Find & replace, find text with Paragraph Shading

Hello Ignaceb,

Let me first make the following suggestions:

On your Find expression let me suggest the following:
  • Use "Start of Paragraph" (This can be found in the "gear" menu under "Special Positions")
  • Instead of repeating the Find express in the Replace expression use "Followed By()" (This can be found under "Match")

So your Find and Replace window should look like this:

Now if you want to keep this as a macro you can save it using the "Macroize" feature under the gear menu.

Attachments:
Nisus Forum Find.tiff
Nisus Forum Find.tiff [ 88.91 KiB | Viewed 2474 times ]

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/