Note.setcategory changes some characters of the category name to underscores to keep out funny characters from the note folder (category) name. However, when the category name matches an application caption, for example !=notepad, I think it would be desirable to leave the category name unchanged, and rely on the user to specify all valid characters. Otherwise it is nearly impossible to match multiple applications, that is to link the same note to multiple applications.
For example, I want to link the same note with notepad.exe and notepad2.exe, so I run note.setcategory(handle, "!=notepad,=notepad2") which sets the note category "!=notepad_=" instead of "!=notepad,=notepad2". Explorer allows renaming the note folder "!=notepad,=notepad2". When I do, and run notepad2, powerpro opens the note inside that folder. Bruce, would you consider such change?
