Registering and logging in removes this ad.
Registering and logging in removes this ad.
Can only edit a unimacro grammar once
I am quite new to unimacro, please excuse me if this is a known issue.
The command to edit grammars does not work for me. After restarting my computer/Dragon , I could edit the folders grammar once by issuing the command "edit grammar folder". The next time I try to edit the grammar, the command is recognized, but the file does not open. The error message is:
open for edit file: \\File-se\Users$\perh\NatLink\unimacro\_folders.py
Traceback (most recent call last):
File "\\File-se\Users$\perh\NatLink\unimacro\natlinkutilsbj.py", line 1032, in resultsCallback
self.__inherited.resultsCallback(self, wordsAndNums, resObj)
File "C:\PROGRA~1\NatLink\macrosystem\core\natlinkutils.py", line 514, in resultsCallback
self.callIfExists( 'gotResults_'+x[1], (x[0], fullResults) )
File "C:\PROGRA~1\NatLink\macrosystem\core\natlinkutils.py", line 213, in callIfExists
else: apply(func, argList)
File "\\File-se\Users$\perh\NatLink\unimacro\_control.py", line 362, in gotResults_edit
self.openFileDefault(filename, mode="edit", name='edit grammar %s'% gramName)
File "\\File-se\Users$\perh\NatLink\unimacro\natlinkutilsbj.py", line 1837, in openFileDefault
win32api.ShellExecute(0, mode, filename, None, "", 1)
pywintypes.error: (31, 'ShellExecute', 'A device attached to the system is not functioning.')



Hello, This is a minor issue
Hello,
This is a minor issue which should be of course avoided, but only can if more people co-operate and mention their experiences, so thanks for your feedback.
1. The call to "edit grammar folders" sets a flag that the checking of grammar files is going to take place at each utterance (default only at each microphone toggle). This setting is done for performance reasons).
2. The Windows interface to edit a python module subsequently doesn't work. If you start Pythonwin or another IDE or TextPad/notepad... program to edit the grammar file, you can make changes and see what happens.
3. If you want to configure websites/files/folders that you can call with this grammar it is more appropriate to call "edit folders". I hope the Windows interface to the configuration files (inifile's) works better.
See also remarks on checking grammar file changes.
Greetings, Quintijn
Thanks for your prompt
Thanks for your prompt reply, it works like you said.