Hi Hussein, Absolutely great!
Thanks, Roman -----Urspr?ngliche Nachricht----- Von: Hussein Shafie [mailto:hussein at xmlmind.com] Gesendet: Dienstag, 25. M?rz 2008 10:51 An: Huditsch, Roman (LNG-VIE) Cc: xmleditor-support at xmlmind.com Betreff: Re: [XXE] copy content of clipboard to systemSelection or external file Huditsch, Roman (LNG-VIE) wrote: > > Within one of my command sequences I need to do some copy/cut/past > actions, which - of course - lead to the loss of all content stored in > the clipboard. > Is there a way to write the clipboard content to the "systemSelection" > or an external file at the begining of my command sequence? > If that would be possible, I could write this content again into the > clipboard at the end of my process. > May be suffice to store the contents of the clipboard in a *variable* using: <set variable="v:saved" expression="$clipboard" xmlns:v="http://www.xmlmind.com/xmleditor/namespace/scope/view" /> Later, restore the contents of the clipboard this way: <set variable="clipboard" expression="$v:saved" xmlns:v="http://www.xmlmind.com/xmleditor/namespace/scope/view" /> Note that the scope of the "v:saved" is the current view of the document being edited. That is, this variable can be shared between two different macros evaluated in the context of the same document view. This variable cannot be shared between different views of the document being edited, and even less, between different documents. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpath_vars.html

