Accept track changes in a selected text

Get help using and writing Nisus Writer Pro macros.
Post Reply
Nobumi Iyanaga
Posts: 160
Joined: 2007-01-17 05:46:17
Location: Tokyo, Japan
Contact:

Accept track changes in a selected text

Post by Nobumi Iyanaga »

Hello,

I am editing a file with many track change records. Is it possible to have a macro which would accept all changes that are in a selected text? And is it possible to accept only formatting changes?

I am unable to write macros, but I would be very grateful if any kind person would write such macros.

Thank you very much in advance!
Best regards,

Nobumi Iyanaga
Tokyo,
Japan
User avatar
phspaelti
Posts: 1360
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Accept track changes in a selected text

Post by phspaelti »

Hello Nobumi,
Hisashiburi. Hope you are doing well.

Yes, it's quite easy to do what you want. Try the attached macro.

Best
Philip
Nobumi Accept Tracked Changes.nwm
(7.03 KiB) Downloaded 33 times
philip
Nobumi Iyanaga
Posts: 160
Joined: 2007-01-17 05:46:17
Location: Tokyo, Japan
Contact:

Re: Accept track changes in a selected text

Post by Nobumi Iyanaga »

Dear Philip,

Thank you very much for your macro. It worked perfectly.

I made another macro from it, just commenting out the " && $change.isTextAttributesChanged" in the line "if $selectedRange.containsRange($change.markedTextRange) && $change.isTextAttributesChanged", it accepts all the changes.

This is just what I was looking for.

Thank you again.
Best regards,

Nobumi Iyanaga
Tokyo,
Japan
User avatar
phspaelti
Posts: 1360
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Accept track changes in a selected text

Post by phspaelti »

Great. I'm glad to hear that :)
philip
Post Reply