Search found 256 matches
- 2023-08-31 10:39:02
- Forum: Nisus Writer Pro Macros
- Topic: Manipulating cells in a matrix
- Replies: 4
- Views: 1920
Re: Manipulating cells in a matrix
Thank you, Philip, for your explanations and macro models. All very satisfying and work fine!
- 2023-08-31 03:06:14
- Forum: Nisus Writer Pro Macros
- Topic: Manipulating cells in a matrix
- Replies: 4
- Views: 1920
Manipulating cells in a matrix
Some time ago Philip helped create a macro which ouputs an array of an arbitrary selection of cells. In an 8x8 matrix each cell is thus defind by a two-digit number representing row and column number of the cell: $doc = Document.active $octals = Array.new foreach $tblSel in $doc.tableSelections fore...
- 2023-08-21 12:54:06
- Forum: Nisus Writer Pro Macros
- Topic: Select All in Highlight
- Replies: 7
- Views: 2426
Re: Select All in Highlight
Thank you Philip. That works fine now!
- 2023-08-20 13:42:26
- Forum: Nisus Writer Pro Macros
- Topic: Select All in Highlight
- Replies: 7
- Views: 2426
Re: Select All in Highlight
Thank you both for your help. The macro sent by Philip can in fact do more than I need, but there is a problem: As to more than I need: I use highlights by defining one color only which I insert by a macro. To find all highlights created by that macro I just had to adapt Philip's Macro. Instead of t...
- 2023-08-20 09:15:01
- Forum: Nisus Writer Pro Macros
- Topic: Select All in Highlight
- Replies: 7
- Views: 2426
Select All in Highlight
There is no standard menu "Select All in Highlight", though this can by done manually ( in the Menu with the mini icons on the bottom of the page. (Wich appears if the cursor is inside highlighted text). I wonder if it is possible to create a macro that selects All in Highlight.
- 2022-11-05 13:38:09
- Forum: Nisus Writer Pro Macros
- Topic: Table: How to find coordinates of selected cells
- Replies: 4
- Views: 2698
Re: Table: How to find coordinates of selected cells
Thank you Philip, as many times before. Both macros work very well.
- 2022-11-03 07:03:29
- Forum: Nisus Writer Pro Macros
- Topic: Table: How to find coordinates of selected cells
- Replies: 4
- Views: 2698
Re: Table: How to find coordinates of selected cells
Thank you Philip. What I try to do is checking which cells in a table have been selected, either manually, or by a Find expression. This is to study mathematical and geometrical relationships inside a matrix. Take a simple example like this: Build an 8x8 matrix and fill it with decimal numbers from ...
- 2022-11-03 03:03:00
- Forum: Nisus Writer Pro Macros
- Topic: Table: How to find coordinates of selected cells
- Replies: 4
- Views: 2698
Table: How to find coordinates of selected cells
In a table, if I know the coordinates x,y of a cell I can use "$tbl.textAtRowAndColumn x,y" to find the contents of that cell.
But what is the best way to achieve the inverse: to find the coordinates of a selected cell, or better: to get an array of the the coordinates of all selected cells?
But what is the best way to achieve the inverse: to find the coordinates of a selected cell, or better: to get an array of the the coordinates of all selected cells?
- 2022-07-18 08:27:14
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 5184
Re: Change identical style in several files
For a single import, I tried to profit from everybodys help and suggestions to end with a handy macro like this. It lets the user choose from the style library and provides for sandboxing. Thank you all. $doc = Document.active # choosing the style set from Style Library: $folderPath = '/Applications...
- 2022-07-16 00:12:11
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 5184
Re: Change identical style in several files
Thanks again to all who have been helping. Combining elements of what I learned I found that a single import can be done comfortably like this: $doc = Document.active # choosing the style set from Style Library: $folderPath = '/Applications/nisus writer settings/Style Library/' File.requireAccessAtP...
- 2022-07-14 09:41:05
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 5184
Re: Change identical style in several files
Well thank you Philip. What I sure learned from all this is that to solve my problem I should use the style library. Now what I did is this: -- I created a new file, entered some text and gave it some paragraph styles. -- This I saved to the style library in a new document I called test -- I opened ...
- 2022-07-13 10:21:03
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 5184
Re: Change identical style in several files
Great thanks to everybody helping to solve the problem. With “that’s easy” I meant to say: easy to do manually. As to the “# do stuff here” part using the loop macros suggested by Philip or Martin, I think it could be done like this: Open one of the files to be treated by the macro Manually attribut...
- 2022-07-12 11:52:40
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 5184
Change identical style in several files
I have a number of files using certain named styles in common. Opening one file and changing the attributes of a style is easy. But how about changing that same style in all other files?
- 2022-07-12 04:50:14
- Forum: Nisus Writer Pro Macros
- Topic: Glossary item executed inside a Macro?
- Replies: 3
- Views: 1718
Re: Glossary item executed inside a Macro?
Great. Thank you Philip. I didn't realize that there is an Expand Glossary Command. I see moreover that it works either with the shortcut seleted or with the cursor placed at its end.
- 2022-07-12 02:28:27
- Forum: Nisus Writer Pro Macros
- Topic: Glossary item executed inside a Macro?
- Replies: 3
- Views: 1718
Glossary item executed inside a Macro?
I wonder if a Nisus glossary entry, normally executed manually by Space or Return, can be executed inside a macro. Having the Macro type Space or Return does not execute the Glossary.