Search found 256 matches

by js
2017-10-30 09:38:41
Forum: Nisus Writer Pro Macros
Topic: How to open a linked file in it‘s own Application ?
Replies: 4
Views: 12196

Re: How to open a linked file in it‘s own Application ?

Thank you Philip, Your macro works well. If the file name has escape characters I use it with double quotes. Thinking further about the "open URL" command, I find now that it also possible to use it for all files, non Nisus opening in their own application. Like so: $path = Choose File ope...
by js
2017-10-29 04:50:59
Forum: Nisus Writer Pro Macros
Topic: How to open a linked file in it‘s own Application ?
Replies: 4
Views: 12196

How to open a linked file in it‘s own Application ?

Nisus „Add link to file“ menug works differently after the introduction of sandbox security Before, the menu "edit link" let you edit the link. Now it shows you only the last known folder with the linked file inside. Still: if you select the link and paste it into the Terminal, you see wha...
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: 13057

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: 13057

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 p...
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: 13057

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: 15093

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: 15093

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: 15093

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.arrayByMakingValuesDoComm...
by js
2016-07-19 09:48:33
Forum: Nisus Writer Pro Macros
Topic: List with TOC entries
Replies: 8
Views: 15093

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 ...
by js
2015-09-23 08:47:36
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 17910

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: 17910

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 != $docP...
by js
2015-09-23 00:41:27
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 17910

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: 17910

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/t...
by js
2015-09-21 09:21:46
Forum: Nisus Writer Pro Macros
Topic: undefined docpath
Replies: 9
Views: 17910

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 Docume...
by js
2015-04-10 03:47:15
Forum: Nisus Writer Pro Macros
Topic: check active doc
Replies: 9
Views: 17842

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 sho...