selecting a specific style and changing it
Posted: 2010-10-25 02:57:06
I have an rtf document created by a 1989 PC application. It strucutres a report from the application which in my example has 300 entries. When I open the doc in NWP it does not recognise any styles, but say "Heading 2" is 12pt Arial Narrow, Bold Italic Underlined.
The next line is 10pt, same font but not underlined. Etc
I want to process all 300 entries and set a style and modify the source settings.
I have looked at the macro language and I presume the answer is in there.
I use Applescript a lot so can apply that but its not enough. I'm not good at regex which also might do it?
Here is an example of the text:
42 Facility
General attributes
Object kind: Entity
Notes: A complex of assets above and below ground comprising Buildings, Site Infrastructure(Siteworks and Site Services) which represents a single management unit for financial, operational, maintenance or other purposes. Source: based on NPWC
Name space:
Value/Range:
Can anyone suggest an approach or give me an example I can customise?
TIA
The next line is 10pt, same font but not underlined. Etc
I want to process all 300 entries and set a style and modify the source settings.
I have looked at the macro language and I presume the answer is in there.
I use Applescript a lot so can apply that but its not enough. I'm not good at regex which also might do it?
Here is an example of the text:
42 Facility
General attributes
Object kind: Entity
Notes: A complex of assets above and below ground comprising Buildings, Site Infrastructure(Siteworks and Site Services) which represents a single management unit for financial, operational, maintenance or other purposes. Source: based on NPWC
Name space:
Value/Range:
Can anyone suggest an approach or give me an example I can customise?
TIA