I frequently recycle glossaries between jobs. The following problem occurs regularly and should be reproducible. I just verified it again.
1. Create a new glossary file in the QuickFix panel and edit to add at least one entry.
2. Create or open a file and try the glossary file out. It works.
3. Quit NWP.
4. Move the glossary file out of the glossary folder.
5. Reboot NWP and go to QuickFix panel. The glossary, as expected, will not be there. Quit NWP.
6. Move the glossary file back into the glossary folder. (Or don't move it out and back in, just rename a glossary after quitting NWP.)
7. Reboot NWP, go to the QuickFix panel and the glossary will be there and enabled. It will work.
everything to here is as expected.
I've written a set of glossary editing files included in which are the following lines which enable me to present a dialog box of glossary files to edit.
Code: Select all
#now get list of glossaries in glossary folder
$glossaryFolderPath = '~/Library/Application Support/Nisus Writer/Glossaries'
$glossariesInFolder = File.namesInFolderAtPath $glossaryFolderPath
#and after some string manipulation
$gloss = Prompt Options $message, '', 'Select', $glossariesInFolder
8. Go to QuickFix, select, edit (by typing at least one character), and save the glossary.
Calling the macro will now get the desired list of glossary files.
I'd be happy to post the entire macro if you are unable to reproduce the problem. This is the only instance in which the macro goes not present the expected list of glossaries. The same problem occurs if you create and save a new glossary file in QuickFix without adding at least one entry.
Cliff Bender