Search found 256 matches

by js
2008-02-04 01:04:39
Forum: Nisus Writer Pro Macros
Topic: Macro to Choose Highlighting Color
Replies: 6
Views: 15075

I'm not sure I understand, but if I do, here's a macro to get you started: $color = Prompt Options “What highlight color should be applied?”, “Please choose the color:”, “Apply”, “Red”, “Green”, “Blue” Menu “:Format:Highlight:$color” Hopefully the way to extend the macro is clear. If not, let me kn...
by js
2008-01-24 02:12:36
Forum: Nisus Writer Pro Macros
Topic: Quicklook plug-in for Nisus Macros
Replies: 2
Views: 9034

Quicklook plug-in for Nisus Macros

Quicklook in the Leopard works fine with Nisus documents, but not with macros. To check macros rapidly this feature would come particularly handy to flip through code. Would a plug-in be feasible? There is one for applescripts, BTW:

http://www.apfelquak.de/2007/11/26/samm ... k-plugins/
by js
2007-11-10 08:58:18
Forum: Nisus Writer Pro
Topic: Working on multiple documents
Replies: 13
Views: 17385

Here's a macro that takes the PowerFind Pro expressions as entered into the Find window and applies them to all open documents: # gather the find and replace expressions $findExpr = Read Find Expression $replaceExpr = Read Replace Expression # We iterate through all open documents, stopping when we...
by js
2007-11-08 01:46:17
Forum: Nisus Writer Pro
Topic: Get Nisus docs only from Leopard?
Replies: 0
Views: 5430

Get Nisus docs only from Leopard?

Leopard has solved a longstanding problem with Nisus menus and Macros: If you had many of them or forgot the keyboard shortcuts, you couldn't find them anymore. Now you can often find them by entering part of the macroname or shortcut into the help window. This makes me wonder in what other ways Nis...
by js
2007-11-07 00:33:11
Forum: Nisus Writer Pro Macros
Topic: Opening none Nisus files from Nisus (a query)
Replies: 10
Views: 18649

If you simply want to open a file in the default application associated with the file, you can use the Open URL command as follows: Open URL ‘file:///Users/shortname/Desktop/whatever.ext’ If you need to launch/use a specific application then I think you'll have to dip into AppleScript. Thanks, Mart...
by js
2007-11-06 12:25:36
Forum: Nisus Writer Pro Macros
Topic: Opening none Nisus files from Nisus (a query)
Replies: 10
Views: 18649

Martin answered: All macro commands that manipulate/open Nisus files can be used on non-Nisus files as well. For example, if you have a plain text file on your desktop you could open it like so: Open '~/Desktop/file.txt' My question was meant somewhat differently: Let's say I work in a project with ...
by js
2007-11-03 02:49:05
Forum: Nisus Writer Pro Macros
Topic: Opening none Nisus files from Nisus (a query)
Replies: 10
Views: 18649

Opening none Nisus files from Nisus (a query)

It is easy to use the Nisus macro language to open other Nisus files. I use a macro that closes the front file and pastes "Open" plus its pathway into the file that becomes visible if the topmost one is closed by the macro Then you can select it and use "Run selection as Macro". ...
by js
2007-10-03 04:46:10
Forum: Nisus Writer Pro Macros
Topic: Inverse selection
Replies: 1
Views: 8018

Inverse selection

Is there a macro that selects everything in a document that is not actually selected?
by js
2007-10-02 23:27:43
Forum: Nisus Writer Pro Macros
Topic: Dinamic numbering
Replies: 12
Views: 26612

Great. This works just fine. A user might have to keep in mind that the counter in his text has to be put into brackets.
Thanks.
by js
2007-10-02 11:37:50
Forum: Nisus Writer Pro Macros
Topic: Dinamic numbering
Replies: 12
Views: 26612

Thank you. So I did this: $marker = '[Counter]' $count = 0 Set Selection 1, 0 While Find $marker, '-W' $count += 1 Type Text "$marker$count" End This works quite well. But if you repeat the process, numbers are added instead of replaced. To do replace them it would be necessary of doing a ...
by js
2007-09-25 04:27:34
Forum: Nisus Writer Pro Macros
Topic: Dinamic numbering
Replies: 12
Views: 26612

# This macro searches your document for special bits of text that indicate where an ever # increasing numeric counter should be placed. $marker = '[Counter]' $count = 0 Set Selection 1, 0 While Find $marker $count += 1 Insert Text $count End Thanks for this useful macro, Martin. Still I think it wo...
by js
2007-08-15 09:53:21
Forum: Nisus Writer Pro
Topic: Selecting Find within Selection
Replies: 0
Views: 6773

Selecting Find within Selection

Sometimes I do something and when a Press "Find Next" nothing happens even if there is a Next occurrence of what I search. On opening the Find Window I discover wy nothing happens. Somebody set "In Selection" under "Where". What have I been doing to inadvertently set &q...
by js
2007-07-30 01:19:14
Forum: Nisus Writer Pro Macros
Topic: Open the Find window and setting the cursor
Replies: 2
Views: 9124

Open the Find window and setting the cursor

I often need to find a certain type of numerical expression that occurs after a tab, and I thought I might write a simple macro that opens the find window, puts a tab and sets the cursor after it, like Find and Replace '\t', '', 'E!' Show find Select End But unexpectedly I run into two problems: 1) ...
by js
2007-07-27 08:48:41
Forum: Nisus Writer Pro Macros
Topic: text editing macros
Replies: 14
Views: 25610

Your sentence selecting macro won't do with a sentence like: "Drinking milk (cf. A. Porter: The softdrink in the Americas) is healthy." Could it be done at all? I suppose it is possible, it's just a matter of figuring out all unambiguous cases where a period does not indicate the end of a...
by js
2007-07-20 01:58:33
Forum: Nisus Writer Pro Macros
Topic: text editing macros
Replies: 14
Views: 25610

[quote="martin"]Hi Thomas, it's no problem. I've created the macros you asked for and placed them in our macro repository . Your sentence selecting macro won't do with a sentence like: "Drinking milk (cf. A. Porter: The softdrink in the Americas) is healthy." Could it be done at ...