title: How to run LotusScript agent from Xpages without saving document
body: <p>is it possible to run a lotusscript agent from a Xpages form which is not saved yet? I have <code>"xspFrmTest.xsp"</code> page,  lotusscript agent name <code>(wsAgent)</code></p>
  
  <p>When i open <code>/xspFrmTest.xsp?action?newDocument</code>  then with a button i call Lotusscript agent but as far as i know I can not call agent without savind document? is it possible to call it from new Xpages document(Xpages form)</p>
  
  <p>Just wondering its possibility. 
  <br>Regards<br>
  C.A.</p>
  
  <p><strong>UPDATE</strong> </p>
  
  <pre><code>Dim rtitem As NotesRichTextItem
  Set rtitem = doc.GetFirstItem("Body")
  If (rtitem.Type = RICHTEXT ) Then
  ForAll o In rtitem.EmbeddedObjects
  If ( o.Type = EMBED_ATTACHMENT ) Then
  sFilePath = "E:\AttachFolder\" + o.Name
  Call o.ExtractFile(sFilePath)
  End If
  End ForAll
  End If
  </code></pre>