Search found 1300 matches
- 2013-10-08 16:40:25
- Forum: Nisus Writer Pro Macros
- Topic: note end paragraph
- Replies: 25
- Views: 39445
Re: note end paragraph
i tried the second macro and i got the following error message (in french) error on the line 5 This is because of localisation. The macro contains a Menu command which is the English name of the command. But since you are using French, you would need to replace that with the French command. about t...
- 2013-10-08 10:43:06
- Forum: Nisus Writer Pro Macros
- Topic: note end paragraph
- Replies: 25
- Views: 39445
Re: note end paragraph
Anyhow, once your paragraph breaks have been replaced with section breaks, you can insert *Endnotes* in the usual way. Make sure to go to the style sheet to change the placement of the notes to "End of Section" (from "End of Document"). I believe you will also be able to set the ...
- 2013-10-08 09:58:11
- Forum: Nisus Writer Pro Macros
- Topic: note end paragraph
- Replies: 25
- Views: 39445
Re: note end paragraph
Okay, sorry I think I see what you want. You want the footnotes you insert in each paragraph to be at the end of that paragraph. In Nisus this will require that you make every paragraph a section break . Then you can have the placement of the notes at the end of the paragraph, I believe. If you want...
- 2013-10-08 09:43:07
- Forum: Nisus Writer Pro Macros
- Topic: note end paragraph
- Replies: 25
- Views: 39445
Re: note end paragraph
Did you try using the macro I made?
If you do please make sure to use it on a copy of your file. (Nisus' Undo works pretty well, but just in case.)
If the result is not what you want, how would you like the macro to work differently?
If you do please make sure to use it on a copy of your file. (Nisus' Undo works pretty well, but just in case.)
If the result is not what you want, how would you like the macro to work differently?
- 2013-10-08 09:27:23
- Forum: Nisus Writer Pro Macros
- Topic: note end paragraph
- Replies: 25
- Views: 39445
Re: note end paragraph
Here is the code for a macro that inserts an empty footnote at the end of every paragraph. A macro file for download is given below: $doc = Document.active $paraEnds = $doc.text.findAll '.$', 'Ea' foreach $paraEnd in reversed $paraEnds Note.insertFootnoteInTextAtIndex $doc.text, $paraEnd.bound end N...
- 2013-10-08 09:06:15
- Forum: Nisus Writer Pro Macros
- Topic: note end paragraph
- Replies: 25
- Views: 39445
Re: note end paragraph
It certainly would be possible to write a macro to insert a note at the end of every paragraph. But what is going to be the content of these notes?.
- 2013-10-02 17:35:36
- Forum: Nisus Writer Pro Macros
- Topic: Move Comments to Marked Text (in one swell foop)—Solved
- Replies: 21
- Views: 48414
Re: Move Comments to Marked Text (in one swell foop)—Solved
And something Martin said earlier: It’s hard (for me) to switch off the familiar semantics (which is why I really shouldn’t use ‘pear’)—especially since sometimes (Document.active, allComments, text) ordinary meanings are used. I think using appropriately named variables is very important, even if t...
- 2013-10-02 17:26:41
- Forum: Nisus Writer Pro Macros
- Topic: Move Comments to Marked Text (in one swell foop)—Solved
- Replies: 21
- Views: 48414
Re: Move Comments to Marked Text (in one swell foop)—Solved
I saw the .markedText property for Comment Objects, so I thought that I should be able simply to ‘replace’ $comment.markedText with $comment.text. The thing here is you have to understand what is meant by a text object. $comment.markedText refers to the text object to which the comment is attached....
- 2013-09-30 17:01:02
- Forum: Nisus Writer Pro Macros
- Topic: Move Comments to Marked Text (in one swell foop)—Solved
- Replies: 21
- Views: 48414
Re: Move Comments to Marked Text (in one swell foop)—Solved
1) Are these two assignments necessary or do they just make things easier to read? Perhaps one can have too many periods? $comments = $doc.allComments $docText = $doc.text Yes, you could make the terse version even terser: $doc = Document.active foreach $comment in reversed $doc.allComments $doc.te...
- 2013-09-30 07:08:42
- Forum: Nisus Writer Pro Macros
- Topic: Move Comments to Marked Text (in one swell foop)—Solved
- Replies: 21
- Views: 48414
Re: Move Comments to Marked Text (in one swell foop)—Solved
I'll see if I can figure out your more terse version, particularly 'in reversed' A selection is basically a pair of numbers measuring the offset from the beginning of the file. If you edit an array of selections, then editing a previous one brings with it the danger of changing the location of foll...
- 2013-09-29 19:19:07
- Forum: Nisus Writer Pro
- Topic: No subfolders in Document Manager?
- Replies: 6
- Views: 9057
Re: No subfolders in Document Manager?
Here, here!
- 2013-09-29 19:03:53
- Forum: Nisus Writer Pro Macros
- Topic: Move Comments to Marked Text (in one swell foop)—Solved
- Replies: 21
- Views: 48414
Re: Move Comments to Marked Text (in one swell foop)—Solved
For what it's worth here is my more terse version:
Code: Select all
$doc = Document.active
$comments = $doc.allComments
$docText = $doc.text
foreach $comment in reversed $comments
$docText.replaceInRange $comment.markedTextRange, $comment.text
end
- 2013-09-29 19:00:34
- Forum: Nisus Writer Pro Macros
- Topic: Move Comments to Marked Text (in one swell foop)—Solved
- Replies: 21
- Views: 48414
Re: Move Comments to Marked Text (in one swell foop)
Hi, I’ve got a simple macro like this: Go to Next Comment Copy Go to Marked Text Paste This works fine, but of course it works for only one Comment at a time. How can I turn this into a macro that will replace each instance of marked text with the contents of the Comment linked to it? I guess it ha...
- 2013-09-29 17:31:39
- Forum: Nisus Writer Pro Macros
- Topic: Finder info window of Nisus document
- Replies: 7
- Views: 14056
Re: Finder info window of Nisus document
After trying my suggested improvements the macro switched to the finder, but did not work. I'm not an expert at AppleScript so I don't know what the problem is. But here is another idea. Nisus Macro language can access file info too. So how about this? $doc = Document.active $path = $doc.filePath $i...
- 2013-09-29 17:05:31
- Forum: Nisus Writer Pro Macros
- Topic: Finder info window of Nisus document
- Replies: 7
- Views: 14056
Re: Finder info window of Nisus document
$doc is a variable in Nisus Macro language, so Applescript will have no idea what to do with it. You will have to assign the $code in a way that interpolates the $doc variable. So try using double quotes instead. Then use back slash before the double quotes inside the $code. Also try using a prompt...