Search found 905 matches

by phspaelti
2018-10-22 06:10:23
Forum: Nisus Writer Pro Macros
Topic: A “Convert Text to Notes.nwm” macro?
Replies: 17
Views: 7891

Re: A “Convert Text to Notes.nwm” macro?

So you caught that :wink:
Cheers!
by phspaelti
2018-10-22 02:46:23
Forum: Nisus Writer Pro Macros
Topic: A “Convert Text to Notes.nwm” macro?
Replies: 17
Views: 7891

Re: A “Convert Text to Notes.nwm” macro?

Hello lellius, I'm sorry you are having trouble with this. As the (age old) discussion above alludes to, this macro is rather delicate. I am trying yet another fix. The current version now has the delimiters changed to double brackets. I hope this helps. If it still doesn't work, just write again. C...
by phspaelti
2018-09-30 08:50:24
Forum: Nisus Writer Pro
Topic: multiplication
Replies: 7
Views: 252

Re: multiplication

Is there actually nobody using NW Pro with this kind of problem ? No, the rest of us do not have this problem. Yohanan, I would recommend that you stop digging around in these folders. If you want to know where your style library files are you should use the Document Manager or the commands in the ...
by phspaelti
2018-09-26 22:59:20
Forum: Nisus Writer Pro Macros
Topic: Automating PDF export with multiple files
Replies: 7
Views: 1194

Re: Automating PDF export with multiple files

This looks to me like "Save As PDF [path]" is broken. Without the path, the command asks to where to save the file (and automatically changes the extension). But with a path it sends the document to the printer (and ignores the path completely).

Time for a bug report.
by phspaelti
2018-09-23 07:43:08
Forum: Nisus Writer Pro
Topic: Selecting first paragraphs of chapters
Replies: 4
Views: 229

Re: Selecting first paragraphs of chapters

Hello again. I am attaching a macro that will select the first paragraph after the requested heading paragraphs. This macro will not change the indentation, you can just do that once the paragraphs have been selected. (Alternately you can apply a style to the selected paragraphs and change their ind...
by phspaelti
2018-09-22 07:53:39
Forum: Nisus Writer Pro
Topic: Selecting first paragraphs of chapters
Replies: 4
Views: 229

Re: Selecting first paragraphs of chapters

Hi Kadah, the short answer to your question is 'yes'. But to do this one will need more information. How can one recognize Chapters, sub-chapters in your document? Are you using styles ("Heading 1", etc.)? A macro thread that discusses this kind of problem can be found here . If you need help with h...
by phspaelti
2018-08-07 00:29:37
Forum: Nisus Writer Pro
Topic: basic knowledge of Nisus templates
Replies: 5
Views: 625

Re: basic knowledge of Nisus templates

Hello Yohanan, nice to hear that you chose to work with NIsus Writer. I redefined the Nisus New File.dot as well as the Normal document.dot in the Templates file, within the file: "Nisus Project" and just created a new document from these (tried both after the following failure). It just kept to tak...
by phspaelti
2018-07-20 19:12:44
Forum: Nisus Writer Pro Macros
Topic: Move Comments to Marked Text (in one swell foop)—Solved
Replies: 21
Views: 9868

Re: Move Comments to Marked Text (in one swell foop)—Solved

In short: arrayByMakingValuesDoCommand is "Map" in other languages. I wonder: is there an equivalent to "Filter" and "Reduce?" I see. So JavaScript has this kind of thing. Nisus arrayByMakingValuesDoCommand is a bit more limited than map, since you can only use it for maps of arrays of objects usin...
by phspaelti
2018-07-20 18:11:08
Forum: Nisus Writer Pro Macros
Topic: Applying style to paragraphs below found text until next style
Replies: 13
Views: 1028

Re: Applying style to paragraphs below found text until next style

I insert the page breaks with the insertion point at the end of the line of the paragraph previous to the one that is to be the heading on the next page. Oddly enough, this inserts a blank paragraph above the heading on the next page (which I remove with a forward delete). This method shows a parag...
by phspaelti
2018-07-20 00:44:58
Forum: Nisus Writer Pro Macros
Topic: Applying style to paragraphs below found text until next style
Replies: 13
Views: 1028

Re: Applying style to paragraphs below found text until next style

So in the end I would really recommend the 'holistic' method, though that too would require some adjustments for handling multiple Heading styles. Anyhow here is the macro for that. The heading paragraph text selections are gathered one style at a time for each of the heading styles, and then all c...
by phspaelti
2018-07-19 19:33:14
Forum: Nisus Writer Pro
Topic: "Save As" bug?
Replies: 8
Views: 619

Re: "Save As" bug?

No, this is not a bug. If you want to create a new file from an existing one, keeping the original, I recommend getting in the habit of doing the "Save As" before you start editing. It may be possible to use "Undo" to restore the original—if you don't have too many edits, and you haven't closed the ...
by phspaelti
2018-07-19 19:05:10
Forum: Nisus Writer Pro Macros
Topic: Applying style to paragraphs below found text until next style
Replies: 13
Views: 1028

Re: Applying style to paragraphs below found text until next style

Think I am seeing a bug here... not in your Macro but in NWP. I think this is a "feature", not a bug :wink: Page breaks are treated as text characters, and are not counted as start of paragraphs, though they allow different paragraph styles on either side. It's a bit weird, but, I believe, a result...
by phspaelti
2018-07-19 08:09:04
Forum: Nisus Writer Pro Macros
Topic: Applying style to paragraphs below found text until next style
Replies: 13
Views: 1028

Re: Applying style to paragraphs below found text until next style

Addendum: I just remembered, Nisus does have a command to access paragraphs by number: Select Paragraph 5 I rarely ever use or even look at those selection commands, but they do exist. The main problem with addressing paragraphs by number is that there is no real way to know the number of any given ...
by phspaelti
2018-07-19 07:11:48
Forum: Nisus Writer Pro Macros
Topic: Applying style to paragraphs below found text until next style
Replies: 13
Views: 1028

Re: Applying style to paragraphs below found text until next style

It appears this is one very granular language. I am really surprised there is no simple function or property to return the lines of a document, but I see what your doing. It actually is putting range descriptors in the array. I guess you're right in the sense that Nisus does not have any direct acc...
by phspaelti
2018-07-18 23:19:03
Forum: Nisus Writer Pro Macros
Topic: Move Comments to Marked Text (in one swell foop)—Solved
Replies: 21
Views: 9868

Re: Move Comments to Marked Text (in one swell foop)—Solved

I wondered why $listDoc = is in the final line $listDoc = Document.newWithText $commentList.join("\n") … Then I deleted the part that mystified me ( $listDoc = ), and I discovered that it isn’t necessary. My guess now is that it was used to do two things at once: to create a new Document and also t...