No, I mean to check in the scripter whether the name of the Scribus document that the scripter is working on includes a given string.  There is a getDocName patch for v 1.5.0 <a href="http://bugs.scribus.net/view.php?id=8597">http://bugs.scribus.net/view.php?id=8597</a> but I am hoping for another approach that will work in 1.4.0 rc5.  There are os.path.split and os.path.basename commands in python (import os) but I can't get them to work.<br>

<br><div class="gmail_quote">On Mon, Sep 19, 2011 at 15:41, john Culleton <span dir="ltr"><<a href="mailto:john@wexfordpress.com">john@wexfordpress.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Mon, 19 Sep 2011 13:09:30 -0400<br>
Fred Zimmerman <<a href="mailto:wfz@nimblebooks.com">wfz@nimblebooks.com</a>> wrote:<br>
<br>
> How can I check whether the current document name contains a given<br>
> string?<br>
><br>
> -----------------------------------------------------<br>
> Subscribe to the Nimble Books Mailing List  <a href="http://eepurl.com/czS-" target="_blank">http://eepurl.com/czS-</a> for<br>
> monthly updates<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <<a href="http://lists.scribus.net/pipermail/scribus/attachments/20110919/150dc9c7/attachment.html" target="_blank">http://lists.scribus.net/pipermail/scribus/attachments/20110919/150dc9c7/attachment.html</a>><br>


> ___ Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net">scribus@lists.scribus.net</a><br>
> Edit your options or unsubscribe:<br>
> <a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus</a><br>
> See also:<br>
> <a href="http://wiki.scribus.net" target="_blank">http://wiki.scribus.net</a><br>
> <a href="http://forums.scribus.net" target="_blank">http://forums.scribus.net</a><br>
><br>
> _______________________________________________________<br>
> Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting<br>
>               <a href="http://www.doteasy.com" target="_blank">http://www.doteasy.com</a><br>
<br>
Do you mean in the body of the document or just in the  name? If in the<br>
body of the document I would open the sla file in gvim and do a simple<br>
string search:<br>
<esc><br>
followed by<br>
/string name<br>
<br>
If you have a Linux OS then it becomes even simpler:<br>
grep 'string to search for' docname.sla<br>
<br>
--<br>
John Culleton<br>
Wexford Press<br>
"Create Book Covers with Scribus"<br>
<a href="http://www.booklocker.com/books/4055.html" target="_blank">http://www.booklocker.com/books/4055.html</a><br>
<br>
___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net">scribus@lists.scribus.net</a><br>
Edit your options or unsubscribe:<br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus</a><br>
See also:<br>
<a href="http://wiki.scribus.net" target="_blank">http://wiki.scribus.net</a><br>
<a href="http://forums.scribus.net" target="_blank">http://forums.scribus.net</a><br>
</blockquote></div><br>