<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello<br><br>I am looking for some help writing a simple script.<br><br>With scribus running and a document open, the script will simply create a text box on a page of the open document, and then write the name of the document into the text box.<br><br>What python command can I use to automatically get the name of the currently open document?<br><br>All I've been able to get so far is the name of the python script that I run from the document.<br><br>Any help appreciated.<br><br>Thanks<br><br>Mike<br><br><br><br><br>                                               </body>
</html>