Hi Hussein,
First, referring to version 4.4.1, is XXE.setReadOnly still a current command? It's in the commands.pdf document but not available from the Tools > Execute Command window. Second, can you see any reason why this shouldn't close and reopen the current file? <command name="openReadOnlyFileForEditing"> <macro> <sequence> <set variable="document" expression="%d"/> <command name="XXE.close" /> <command name="XXE.open" parameter="$document"/> </sequence> </macro> </command> As it stands, when I've opened a file in readOnly mode from my repository, simply using "reopen" fails to check it out of the repository. Instead, I'm attempting to close the document and reopen it without the [readOnly] switch. As I understand, %d should be the url of the current file, so I'm trying to set it to a variable, close the current file, then reopen it using the variable. I get the distinct impression I've misunderstood either how "set" works or what %d is. If I strip the <set from the command, it successfully closes the file but of course fails to reopen it. Thanks, Jeff. Jeff Hooker, Technical Leader, Technical Communications PMC-Sierra, Inc., 8555 Baxter Way, Burnaby BC V5A 4V7 (Tel) 604.415.6000 x 2625 (Cell) 778-855-7406
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support