Search found 59 matches

by vwnisus
2024-05-17 08:04:41
Forum: Nisus Writer Pro Macros
Topic: Setting margins and page size of open document
Replies: 2
Views: 30

Setting margins and page size of open document

Is it possible to create a macro to set the margins and possibly the page size of an open document.

If possible, what would be the commands to do so?

Any help would be gratefully received.
by vwnisus
2022-09-09 23:44:24
Forum: Nisus Writer Pro
Topic: Odd position of commands in find and replace
Replies: 8
Views: 3501

Re: Odd position of commands in find and replace

Thank you for fixing this.
by vwnisus
2022-03-24 05:53:32
Forum: Nisus Writer Pro Macros
Topic: How to exit a Header or Footer
Replies: 1
Views: 1573

How to exit a Header or Footer

I have a simple macro to insert a TOC, go to the Footer, add a page number some text and then the total number of pages: Tools:Table of Contents:Insert TOC View:Go To Footer Insert:Automatic Number:Page Number Type Text " of " Insert:Automatic Number:Pages in Document File:Save I cannot se...
by vwnisus
2022-03-24 03:25:07
Forum: Nisus Writer Pro
Topic: Odd position of commands in find and replace
Replies: 8
Views: 3501

Re: Odd position of commands in find and replace

Thank you for the responses.

I tried changing zoom, fonts, paragraph spacing. And the size of the Find and Replace window. They do make some difference but still get things such as:
CleanShot 2022-03-24 at 11.22.26@2x.jpg
CleanShot 2022-03-24 at 11.22.26@2x.jpg (82.33 KiB) Viewed 3456 times
I hope the developer can fix this.
by vwnisus
2022-03-23 10:12:13
Forum: Nisus Writer Pro
Topic: Odd position of commands in find and replace
Replies: 8
Views: 3501

Odd position of commands in find and replace

In Find and Replace when I enter a command such as "Capture()", it is superscripted and partly disappears upwards, but as soon as I type a character, it then moves down. Here are some screens to show the effect: Find & Replace 3.jpg Find & Replace 2.jpg Find & Repla...
by vwnisus
2022-03-12 04:17:51
Forum: Nisus Writer Pro Macros
Topic: How to search for text and apply a style to it
Replies: 9
Views: 3594

Re: How to search for text and apply a style to it

Adrian, Thank you for the review. I added a step in the macro to remove all Character Styles which fixed the problem. When saving several emails to RTF form Apple Mail results in a page break between each email. This has the result that first line after a page break not being found by: if Find All '...
by vwnisus
2022-03-11 09:42:08
Forum: Nisus Writer Pro Macros
Topic: How to search for text and apply a style to it
Replies: 9
Views: 3594

Re: How to search for text and apply a style to it

Adrian, Philip, Thank you for your detailed and helpful replies. I have found (I hope) the issue: the subsequent email headers had soft returns rather than hard returns, so this is was the reason why the search failed. However, now the search proceeds it leads to a formatting issue. I have set up &q...
by vwnisus
2022-03-11 00:27:47
Forum: Nisus Writer Pro Macros
Topic: How to search for text and apply a style to it
Replies: 9
Views: 3594

Re: How to search for text and apply a style to it

Adrian, Thank you for the detailed response. I understand what I need to do to change the code for different words (eg "From", "Subject", etc). My purpose is different. In each file I have saved several emails not just one. There will be several "From:"'s and several &q...
by vwnisus
2022-03-10 15:36:40
Forum: Nisus Writer Pro Macros
Topic: How to search for text and apply a style to it
Replies: 9
Views: 3594

Re: How to search for text and apply a style to it

Philip,

Thank you for the code.

Running it only deals with the first "From:" not any of the following ones.

Is this intended or does the code need adaptations?
by vwnisus
2022-03-10 07:55:16
Forum: Nisus Writer Pro Macros
Topic: How to search for text and apply a style to it
Replies: 9
Views: 3594

How to search for text and apply a style to it

I have saved a selection of emails from Apple Mail to an rtf format file. In Nisus Writer Pro I wish to apply to different styles to the 'header' of each email which appears in the file. For example: From: Kevin Smith <ks@nothing.com> Subject: Re: Certificate for reactivation of account Date: 3 Marc...
by vwnisus
2020-08-26 06:20:50
Forum: Nisus Writer Pro Macros
Topic: Macro to remove some applied formatting
Replies: 2
Views: 9052

Macro to remove some applied formatting

I download a series of court judgements each which contain some applied formatting. I know it is possible to remove all of it, and also individual elements of the applied formatting. What I would like to do is to create a macro which removes only some individual elements and one style. For example i...
by vwnisus
2020-08-25 09:19:00
Forum: Nisus Writer Pro Macros
Topic: Macro command to Import from Style Library…
Replies: 8
Views: 20908

Re: Macro command to Import from Style Library…

Thank you all for all the replies. I tried moving the style file to the Documents folder and changed the macro to include what Philip suggested: $filePath = Choose File $styleLibDoc = Document.open $filePath and it ran without problem. It also ran without problem when selecting the style file locate...
by vwnisus
2020-08-25 01:18:44
Forum: Nisus Writer Pro Macros
Topic: Macro command to Import from Style Library…
Replies: 8
Views: 20908

Re: Macro command to Import from Style Library…

I am trying to use a modified version of the macro code provided by Philip as follows: $folder = "~/Dropbox/nisus/Nisus Writer Settings/Style Library" File.requireAccessAtPath($folder) $editDoc = Document.active $styleLibDoc = Document.open "~/Dropbox/nisus/Nisus Writer Settings/Style...
by vwnisus
2020-08-20 01:17:36
Forum: Nisus Writer Pro
Topic: How to bookmark each instance of a paragraph style
Replies: 2
Views: 6152

Re: How to bookmark each instance of a paragraph style

Philip,

Thank you very much. Makes doing this so easy.

Victor
by vwnisus
2020-08-19 23:57:14
Forum: Nisus Writer Pro
Topic: How to bookmark each instance of a paragraph style
Replies: 2
Views: 6152

How to bookmark each instance of a paragraph style

1. I have added a paragraph style ("Numbered Heading"). 2. This paragraph style is applied to one line of text as a heading to one or more paragraphs of text that follows. These headings with the Numbered Heading style are such as the following: 211.     The reasonableness test. 212.     V...