Search found 42 matches

by Nobumi Iyanaga
2014-06-13 06:37:13
Forum: Nisus Writer Pro Macros
Topic: Need a macro for track change
Replies: 2
Views: 5345

Need a macro for track change

Hello, I would like to have a macro that will "accept" all the track changes that are "isTextAttributesChanged". Here is the situation in which such a macro is needed. I have a long document in several versions. I can use MS Word to compare two of them, and generate a file in which all the differenc...
by Nobumi Iyanaga
2011-07-14 17:54:43
Forum: Nisus Writer Pro Macros
Topic: How to get the file path of a converted file
Replies: 2
Views: 4539

Re: How to get the file path of a converted file

Hello Martin,

I had not received any reply to this request, but I discovered that in the new 2.0.1 public beta 1, the feature is already implemented:

* Added: macros: added Document object property convertedFilePath.

Thank you very much! You are really very smart!
by Nobumi Iyanaga
2011-07-11 22:12:28
Forum: Nisus Writer Pro Macros
Topic: How to get the file path of a converted file
Replies: 2
Views: 4539

How to get the file path of a converted file

Hello, How would it be possible to get the file path of a file (for example a Classic Nisus Writer file, or a .doc file) which is "temporarily" open as "xxx (converted)". In fact, I already asked this question to the Nisus mailing list, and I was answered that there is no command for that, and there...
by Nobumi Iyanaga
2009-07-12 04:44:15
Forum: Nisus Writer Pro Macros
Topic: Why is this macro so slow?
Replies: 5
Views: 6502

Re: Why is this macro so slow?

Hello Kino,

Thank you for your reply. I tried with your method. It is definitely the fastest way. I will use this code. Thank you very much!
by Nobumi Iyanaga
2009-07-11 20:53:50
Forum: Nisus Writer Pro Macros
Topic: Why is this macro so slow?
Replies: 5
Views: 6502

Re: Why is this macro so slow?

Hello Kino, Thank you for your reply. I tried with your advice, and found some problems. The following code is still slow, but it is much faster than the last one. I found that the most time consuming commands are string concatenations, and findAndReplace... # Begin macro 'nwp_1-2_to_utf8_test2' Req...
by Nobumi Iyanaga
2009-07-11 18:52:28
Forum: Nisus Writer Pro Macros
Topic: Why is this macro so slow?
Replies: 5
Views: 6502

Why is this macro so slow?

Hello, I have two version of a macro which lists up all the style attributes of a given text. One of them works rather quickly [version a], while the other [version b], which seems probably simpler, is VERY slow. Could you please indicate me why the latter is so slow, and how I can get it work more ...
by Nobumi Iyanaga
2009-02-08 06:12:04
Forum: Nisus Writer Pro Macros
Topic: menu item "Open macro folder"
Replies: 5
Views: 6875

Re: menu item "Open macro folder"

Hello js, I think the simplest in such a situation is to use the Terminal command "open", via Perl block. An example: Begin Perl `open "/Volumes/myVolume/myDocument/temp/Eudora Pro 4.2-J/"`; End The Terminal command in a Perl block must be enclosed between two "`" ("grave accent" or "backticks"); an...
by Nobumi Iyanaga
2009-02-08 05:20:10
Forum: Nisus Writer Pro Macros
Topic: Open and save text files in specified encoding
Replies: 1
Views: 3939

Open and save text files in specified encoding

Hello,

Is it possible with Nisus macro to open and save text files in some specified encoding? As far as I can see in the Macro reference, it seems not possible. If it is not, I would like to make a feature request for this capability.

Thank you in advance for considering.
by Nobumi Iyanaga
2008-12-21 04:37:44
Forum: Nisus Writer Pro Macros
Topic: Embedded Perl macro and list variables
Replies: 3
Views: 5347

Re: Embedded Perl macro and list variables

Hello Kino, Thank you for your reply. The followings of your code are unnecessary and very likely to prevent your macro from working properly. If it is an array, $name is converted to @name autumatically when sent to a perl block. @ranges = $ranges; @attributes_array = $attributes_array; You are rig...
by Nobumi Iyanaga
2008-12-20 06:45:14
Forum: Nisus Writer Pro Macros
Topic: Embedded Perl macro and list variables
Replies: 3
Views: 5347

Embedded Perl macro and list variables

Hello, I have a question about the embedded Perl scripts: We read in the Macro Reference: "Scalar variables (integers, strings, etc) that have been defined by your macro are automatically made available to the Perl code. Array and hash variables are also available." But how can we have access to arr...
by Nobumi Iyanaga
2008-06-28 07:06:11
Forum: Nisus Writer Pro Macros
Topic: rangeOfAttributesAtIndex
Replies: 5
Views: 7879

Re: rangeOfAttributesAtIndex

Hello Martin, I'm sorry, my question was not well formulated. The only thing that rangeOfAttributesAtIndex guaranties is that the attributes over the range are equal. There may be adjacent characters with the same visible attributes or not. I understood, and this is what I wanted to know. Thank you!
by Nobumi Iyanaga
2008-06-27 15:50:32
Forum: Nisus Writer Pro Macros
Topic: rangeOfAttributesAtIndex
Replies: 5
Views: 7879

Re: rangeOfAttributesAtIndex

Hello Martin,

Thank you for your reply. So, if I understand well, this means that "rangeOfAttributesAtIndex" returns, if not the maximum, at least the minimum length of a text having the same attributes, is this right?

Thank you.
by Nobumi Iyanaga
2008-06-25 17:07:48
Forum: Nisus Writer Pro Macros
Topic: rangeOfAttributesAtIndex
Replies: 5
Views: 7879

rangeOfAttributesAtIndex

Hello, In Nisus Macro Reference, I find in the explanation for "text.rangeOfAttributesAtIndex" a sentence saying: This range is not necessarily the longest (maximal) range over which attributes are equal, eg: text adjacent to the returned range could have the same attributes. What does this mean in ...
by Nobumi Iyanaga
2008-05-24 01:36:36
Forum: Nisus Writer Pro
Topic: Nisus Writer Pro 1.1 Released
Replies: 17
Views: 9929

Hello, When installing 1.1 Beta, it asked whether I wanted to allow changes to the macros. I naturally said "no" -- this was a beta after all. A second installation did not offer the option. You said you would try to get this fix to happen with 1.1 when it came out. Did it happen? No dialog came up....
by Nobumi Iyanaga
2008-05-21 18:09:28
Forum: Nisus Writer Pro Macros
Topic: Perl output messed up
Replies: 13
Views: 15379

Hello Kino and Martin, Thanks for your replies and your consideration. I too am very much surprised and impressed by the richness of the new commands introduced in NW Pro 1.1. beta; the documentation is still to be improved, but it has the essential. I think we, users, should also work to make some ...