Search found 400 matches

by Kino
2010-10-10 09:45:11
Forum: Nisus Writer Pro Macros
Topic: path of the window below the active window
Replies: 1
Views: 5412

Re: path of the window below the active window

Code: Select all

$docs = Document.openDocuments
if $docs.count > 1
	exit $docs[1].filePath # you get nothing if the document is a new document not having a path
else
	exit ‘Just a single document is open.’
end
by Kino
2010-10-10 09:24:10
Forum: Nisus Writer Pro Macros
Topic: Change a set of letters for a set of others
Replies: 13
Views: 19108

Re: Change a set of letters for a set of others

As you’ll see in PinyinConvert.pm, it supports just ASCII characters. As it is a Perl script of very simple structure, it would be quite easy for those who are familiar with Chinese romanization systems to improve it so that it supports accented letters, I guess. Just add conversion tables and modif...
by Kino
2010-10-09 08:23:35
Forum: Nisus Writer Pro Macros
Topic: Change a set of letters for a set of others
Replies: 13
Views: 19108

Re: Change a set of letters for a set of others

You don’t need install the Perl module using Xcode Tools. I remembered a trick learnt from Nobumi years ago. 1. Download Lingua-ZH-PinyinConvert-0.05.tar.gz from http://search.cpan.org/~xern/Lingua-ZH-PinyinConvert-0.05/ and unzip it; 2. Create folders as /Users/you/Library/Perl/Lingua/ZH/ ; 3. Put ...
by Kino
2010-10-08 20:26:01
Forum: Nisus Writer Pro Macros
Topic: Change a set of letters for a set of others
Replies: 13
Views: 19108

Re: Change a set of letters for a set of others

Some problems I can solve now are really simple. But another one which I would like to solve is in fact more complicated: It is to replace different systems of transcription systems for Asiatic texts. A Perl module for that kind of conversion is available as http://search.cpan.org/~xern/Lingua-ZH-P...
by Kino
2010-10-07 07:56:49
Forum: Nisus Writer Pro
Topic: hyper-link selection
Replies: 2
Views: 4413

Re: hyper-link selection

A while ago, I posted a macro for that here: http://nisus.com/forum/viewtopic.php?p=18268#p18268 If you want to process one by one, create one-line macros consisting of Select Next Link and Select Previous Link and call them, for example, via shortcuts or custom toolbar items. Edit: Added the last p...
by Kino
2010-10-07 02:01:32
Forum: Nisus Writer Pro Macros
Topic: running through the items of a non-contiguous selection
Replies: 2
Views: 6815

Re: running through the items of a non-contiguous selection

You can use something like this.

Code: Select all

$doc = Document.active
$sels = $doc.textSelections
foreach $sel in reversed $sels
	$doc.setSelection $sel
	Document.setActive $doc
	Menu ':Nisus Writer Pro:Services:New TextEdit Window Containing Selection'
end
by Kino
2010-10-06 02:46:40
Forum: Nisus Writer Pro
Topic: Applying QuickFix after I've written a document
Replies: 22
Views: 23424

Re: Applying QuickFix after I've written a document

I like the QuickFix funcion and I wonder if it can be applied to a document or a selection after it has been written and not only in real-time when I'm writing a document. Try this macro. It so-to-say retypes selected texts using insertText command with q option (“apply the user’s QuickFix preferen...
by Kino
2010-10-04 21:20:50
Forum: Nisus Writer Pro
Topic: Nisus Always Looks for my Desktop
Replies: 11
Views: 11249

Re: Nisus Always Looks for my Desktop

I’m just guessing but do you happen to be running an anti-virus software? If so, perhaps it would interfere with NWP in an odd way. If another program is involed, I think a list of running processes (launch /Applications/Utilities/Activity Monitor.app and File > Save ) may help Martin & Co. in d...
by Kino
2010-10-04 06:10:21
Forum: Nisus Writer Pro Macros
Topic: Open a file via Link
Replies: 11
Views: 19573

Re: Open a file via Link

an error in the macro "Open Link" has occured in line 48... unknown path "end" Oh, sorry. Indeed, there is a bug. $path = Choose File '', 'Select Original' if $path == undefined exit # canceled by user end should be $path = Choose File '', 'Select Original' if $path == undefined...
by Kino
2010-10-03 08:29:08
Forum: Nisus Writer Pro
Topic: Nisus Always Looks for my Desktop
Replies: 11
Views: 11249

Re: Nisus Always Looks for my Desktop

I think you have already tried this but if you have not . . . 1. Quit NWP if it is running; 2. Move the following files and folder to somewhere else;  •  /Users/you/Library/Preferences/com.nisus.NisusWriter.plist  •  /Users/you/Library/Preferences/com.nisus.NisusThesaurus.plist  •  /Users/you/Librar...
by Kino
2010-10-02 23:54:38
Forum: Nisus Writer Express
Topic: How do you transfer your Nisus program to a new computer?
Replies: 4
Views: 12339

Re: How do you transfer your Nisus program to a new computer?

In addition to Nisus Writer Express.app and Nisus Thesaurus.app , the following files and folder are related to the program. You’d better move or copy them from your older Mac to the new MacBook so that you can restore your working environment in it: •  /Users/you/Library/Preferences/com.nisus.Nisus...
by Kino
2010-10-02 18:07:03
Forum: Nisus Writer Pro Macros
Topic: Change a set of letters for a set of others
Replies: 13
Views: 19108

Re: Change a set of letters for a set of others

I seem to have taken your problems to be much more complicated than they actually are. If your conversion tables are so simple, not containing any overlapping, you can just use Replace All for each pair. That is faster, at least for the second problem. What I had in mind is a way to transform, for e...
by Kino
2010-10-02 09:31:40
Forum: Nisus Writer Pro Macros
Topic: Change a set of letters for a set of others
Replies: 13
Views: 19108

Re: Change a set of letters for a set of others

Is it possible with a Nisus macro to change a set of characters in a selection for another set, like f.e. changing every a for n, every b for m and every c for l? Possible. See these threads. http://nisus.com/forum/viewtopic.php?f=17&t=2932 http://nisus.com/forum/viewtopic.php?p=16612#p16612 Is...
by Kino
2010-10-02 09:16:56
Forum: Nisus Writer Pro Macros
Topic: Open a file via Link
Replies: 11
Views: 19573

Re: Open a file via Link

Instead of importing a graph with shift cmd i: is it possible to make a macro which actually imports the graph, but when clicking on it, it opens the file in the refering program, which generated the file? (In my case photoshop and freehand) Try this macro. Clicking on an image does not work becaus...
by Kino
2010-10-01 09:45:15
Forum: Nisus Writer Pro
Topic: Nisus Always Looks for my Desktop
Replies: 11
Views: 11249

Re: Nisus Always Looks for my Desktop

If dshan’s suggestion does not work, try to remove “/Users/you/Library/Application Support/Nisus Writer/Document Manager Settings” while NWP is not running (and you will lose the Document Manager settings).