Search found 239 matches

by js
2017-03-20 14:50:06
Forum: Nisus Writer Pro Macros
Topic: Selecting All Text with the same background color
Replies: 5
Views: 4784

Re: Selecting All Text with the same background color

Thank you again. In fact my start position is not to chose a background color. The idea is to put the cursor into a paragraph X with para bg color Y and to have the macro select all other paragraphs that have para bg color Y. So rather than to define a para bg color I wonder what I should do to get ...
by js
2017-03-20 04:04:54
Forum: Nisus Writer Pro Macros
Topic: Selecting All Text with the same background color
Replies: 5
Views: 4784

Re: Selecting All Text with the same background color

Thank you Philippe. This is certainly good adivice for the procedure as such. This said I am not sure about a Kino micro called "select by attributes". I see that there are macros selecting style, language and font. Where you referring to one of these? But probably my question was not as precise as ...
by js
2017-03-18 03:48:58
Forum: Nisus Writer Pro Macros
Topic: Selecting All Text with the same background color
Replies: 5
Views: 4784

Selecting All Text with the same background color

Is it possible to select All Text with the same background color, no matter what other attributes are going with that text?
by js
2016-07-22 05:30:19
Forum: Nisus Writer Pro Macros
Topic: List with TOC entries
Replies: 8
Views: 6021

Re: List with TOC entries

A double thank you to philip, one for the macro itself. It does exactly what I wanted. And one for his explanations, very helful to better understand the workings of Nisus macro language.
by js
2016-07-21 11:56:26
Forum: Nisus Writer Pro Macros
Topic: List with TOC entries
Replies: 8
Views: 6021

Re: List with TOC entries

Thanks Philip for this renewed help, and explaining how to use .join(''). This is what I was hoping to get. As to your new macro, it works well. But it does the same thing as the first one: If makes a list of all headings. That fine for finding a search word within the headings themselves. In fact i...
by js
2016-07-21 05:45:00
Forum: Nisus Writer Pro Macros
Topic: List with TOC entries
Replies: 8
Views: 6021

Re: List with TOC entries

Thank you very much for your help, phspaelti and adryan. May I ask two supplementary questions: Referring to your macro: $doc = Document.active $headingStyle = $doc.styleWithName "Heading" $headingSels = $doc.text.findAll $headingStyle $headingTexts = $headingSels.arrayByMakingValuesDoCommand "subte...
by js
2016-07-19 09:48:33
Forum: Nisus Writer Pro Macros
Topic: List with TOC entries
Replies: 8
Views: 6021

List with TOC entries

I wonder if somebody can help with the following: Think of a document made of a series of notes. Each note may have one or several paragraphs. Each note is preceded by a heading, and the headings are made TOC entries. With "Show TOC in Navigator" on, clicking the main text at any location will highl...
by js
2015-09-23 08:47:36
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 7640

Re: undefined docpath

Thank you. That works fine now. Maybe I should add this: After reading your explanation and realizing my mistake, I thought instead of changing the code from '$docPath' into '$docPath.expandedFilePath', I could alternatively enter the full form of the path of myFile. This did not work. I think the r...
by js
2015-09-23 02:28:14
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 7640

Re: undefined docpath

Hopefully not boring anybody with a supplementary question. Please consider this code: $docPath =  "~/Documents/myFile" $actDoc = Document.active If ! $actDoc # if no file is active (open) at all ...    Document.open $docPath # open myFile and exit    exit  elseIf $actDoc.filePath != $docPath # if t...
by js
2015-09-23 00:41:27
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 7640

Re: undefined docpath

Thank you. This sounds very convincing,and finally my complete macro works fine.
by js
2015-09-22 11:05:22
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 7640

Re: undefined docpath

Thank you for the generous explanations. This works well for me. Now I had sent only the first half of my macro. But unfortunately I find myself with quite a similar problem with it’s second half, which let's me stuck again. My original macro (with your help) is this: $docPath =  "~/Documents/test.r...
by js
2015-09-21 09:21:46
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 7640

undefined docpath

I can‘t get to grips with a seemingly simple macro problem: I want Nisus to check if a certain document myDoc is open, and if not, to open or to activate it. I wrote this: $docPath = "~/Documents/myDoc" $actDoc = Document.active $actDocPath = $actDoc.filePath if $actDoc == undefined Document.open $d...
by js
2015-04-10 03:47:15
Forum: Nisus Writer Pro Macros
Topic: check active doc
Replies: 9
Views: 7893

Re: check active doc

This is very helpful Martin. "User" instead of users" was just a slip in my mail for this list. But I did not realize that the abbreviation sign ~ also includes a starting slash. That the sandbox has a mirror of the users file structure seems surprising. So these mirror structures should exist for e...
by js
2015-04-09 07:55:10
Forum: Nisus Writer Pro Macros
Topic: check active doc
Replies: 9
Views: 7893

Re: check active doc

Thanks for taking time to help Philip. What I actually wrote (here replacing actual home and actual doc name for “home” and “myDoc”) was this: $docPath = "User/home/Documents/myDoc.rtf" $actDoc = Document.active $actDocPath = $actDoc.filePath if $actDocPath != $docPath Document.open $docPath else ex...
by js
2015-04-08 03:41:14
Forum: Nisus Writer Pro Macros
Topic: check active doc
Replies: 9
Views: 7893

Re: check active doc

Thank you Philip I tried to consider what you kindly explained. But now if the macro attempts to open myDoc to compare it with the active doc, Nisus answers with a message I don't understand: Could not access the file "Users/home/Documents/myDoc" because _the file does not exist: ~/Library/Container...