Search found 976 matches

by phspaelti
2018-11-17 16:22:02
Forum: Nisus Writer Pro
Topic: Hotkeys for paragraph styles
Replies: 9
Views: 2492

Re: Hotkeys for paragraph styles

Hi Dan, the "hotkeys" you are referring to are also known as multi-key shortcuts. You will need to keep holding the command key while you type them. So press and hold <command>, and type H-3 before you let go. Nisus allows you to define shortcuts of up to 3 keys in length. [Having said that, my shor...
by phspaelti
2018-11-14 06:26:59
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2111

Re: Selecting paragraph and formatting

Since we're on the topic, I decided to try an experiment. I tried to use applescript to write a script to highlight every paragraph where the second letter was an "i". Not a particularly sensible task, but just something to test. I ran it on a list of words with about 1,500 paragraphs. The applescri...
by phspaelti
2018-11-14 04:48:27
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2111

Re: Selecting paragraph and formatting

You mean a ".nwm" file? A macro is just another "menu command" in Nisus. So, yes, of course you can run it from an applescript. In fact to do anything complex in Nisus, that would be my recommendation: write a Nisus macro, then run it from the applescript with a Do Menu Macro with macro command.
by phspaelti
2018-11-12 21:20:12
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2111

Re: Selecting paragraph and formatting

And one comment on this: A search of the Nisus Macro forum produced: tell application "Nisus Writer Pro" set doctext to text of front document set para to paragraph 1 of doctext end tell This code will basically extract the text from the first paragraph of the document and put it into a container in...
by phspaelti
2018-11-12 20:48:06
Forum: Nisus Writer Pro Macros
Topic: Selecting paragraph and formatting
Replies: 6
Views: 2111

Re: Selecting paragraph and formatting

Just to be clear, it isn't just the choice of applescript that is going to make this clunky, it's the whole approach to doing things. If your goal is to format a document, I just wouldn't go through the document one paragraph at a time. This might work as a "demonstration object" (a proof of concept...
by phspaelti
2018-11-12 07:26:25
Forum: Nisus Writer Pro
Topic: Convert return separated text to table
Replies: 7
Views: 1559

Re: Convert return separated text to table

The macro worked but I will need to study this to see WHY it worked! :D The crucial line of the macro is the one which selects N lines of text, excluding the last return. For example if you want 9 columns you have 9 lines of text with 8 returns. So the find expression will need to select 1 line fol...
by phspaelti
2018-11-11 19:08:51
Forum: Nisus Writer Pro Macros
Topic: Citation
Replies: 4
Views: 1501

Re: Citation

Hi again, Nisus macros aren't really ideal for interactive use of the kind you are aiming for. For example there is really no need to work 'bit by bit', and in fact it's often just inconvenient, though you can write the macro that way if you prefer. Here is a macro that will do what you want. It wor...
by phspaelti
2018-11-11 09:29:36
Forum: Nisus Writer Pro Macros
Topic: Citation
Replies: 4
Views: 1501

Re: Citation

Hello Publius. I think we might need a bit more information to understand what you are trying to accomplish. The description that you are giving is of citations in your document that you are trying to find? When you find them, what do you want the macro to do with them? Or maybe I am completely misu...
by phspaelti
2018-11-11 09:22:25
Forum: Nisus Writer Pro
Topic: Convert return separated text to table
Replies: 7
Views: 1559

Re: Convert return separated text to table

And now to the general problem. I take it your approach is going to be: Find and Mark the row ending returns Replace all other returns with tabs Select everything and convert to table That's a good approach, especially if you have a good way of recognizing the line ending returns. But a more general...
by phspaelti
2018-11-11 08:57:30
Forum: Nisus Writer Pro
Topic: Convert return separated text to table
Replies: 7
Views: 1559

Re: Convert return separated text to table

Let's start with your most immediate question: How to search for a <return> between a number and a capital letter. As you found out, if you write a find expression [number]<return[Capital letter], the replace expression will wipe out the number and the capital letter. The trick is to use the "Preced...
by phspaelti
2018-11-11 05:27:23
Forum: Nisus Writer Pro
Topic: Follow-Up Question to My Post "Text Variables": How Do I Attach a Character Style to a Custom Property?
Replies: 8
Views: 2133

Re: Follow-Up Question to My Post "Text Variables": How Do I Attach a Character Style to a Custom Property?

Here’s a quick-and-dirty example… Hello Adrian, that's a good solution. Just wanted to give two small pointers: 1. If you want to add some text to a document and immediately select it, why not use the "Insert Text" command (instead of "Type")? 2. If you want to search for a text string in a documen...
by phspaelti
2018-11-08 08:26:02
Forum: Nisus Writer Pro
Topic: Stopping Cro Magnon man
Replies: 4
Views: 1622

Re: Stopping Cro Magnon man

credneb wrote:
2018-11-06 12:27:53
Show Changes Icons in Margin toggles it in an open document.
How can I change the default to unchecked/don't show?
Did you look in the Track Change Options? There is an option to Show change icons in margin alongside document text. If you change that setting in your Nisus New File?
by phspaelti
2018-11-02 08:33:54
Forum: Nisus Writer Pro Macros
Topic: Changing the numbering scheme for footnotes
Replies: 4
Views: 2084

Re: Changing the numbering scheme for footnotes

Martin’s right. I seem to have misread the problem and tried to solve the wrong thing.
by phspaelti
2018-11-02 07:12:05
Forum: Nisus Writer Pro Macros
Topic: Changing the numbering scheme for footnotes
Replies: 4
Views: 2084

Re: Changing the numbering scheme for footnotes

Hello vw, I don't see any way to change the list style directly with a macro, but what you could do is just replace it with a list style with the same name and your desired formatting. So this problem will look a bit like the one you were asking about before. Here's one way to do that. $styledBit = ...
by phspaelti
2018-10-30 18:41:15
Forum: Nisus Writer Pro
Topic: Does Nisus now support columnar text (CJK)?
Replies: 7
Views: 2093

Re: Does Nisus now support columnar text (CJK)?

Hello Martin, thank you for the reply. I guess I was misled by your first example with the western text. I wrote without testing this myself first, so I had no idea that this was possible. The vertical text works for Japanese text, exactly as it should, with columns wrapping right to left, etc.. So ...