[scribus] checking whether current document name contains a string

Fred Zimmerman wfz at nimblebooks.com
Mon Sep 19 19:44:40 UTC 2011


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 http://bugs.scribus.net/view.php?id=8597 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.

On Mon, Sep 19, 2011 at 15:41, john Culleton <john at wexfordpress.com> wrote:

> On Mon, 19 Sep 2011 13:09:30 -0400
> Fred Zimmerman <wfz at nimblebooks.com> wrote:
>
> > How can I check whether the current document name contains a given
> > string?
> >
> > -----------------------------------------------------
> > Subscribe to the Nimble Books Mailing List  http://eepurl.com/czS- for
> > monthly updates
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> > <
> http://lists.scribus.net/pipermail/scribus/attachments/20110919/150dc9c7/attachment.html
> >
> > ___ Scribus Mailing List: scribus at lists.scribus.net
> > Edit your options or unsubscribe:
> > http://lists.scribus.net/mailman/listinfo/scribus
> > See also:
> > http://wiki.scribus.net
> > http://forums.scribus.net
> >
> > _______________________________________________________
> > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting
> >               http://www.doteasy.com
>
> Do you mean in the body of the document or just in the  name? If in the
> body of the document I would open the sla file in gvim and do a simple
> string search:
> <esc>
> followed by
> /string name
>
> If you have a Linux OS then it becomes even simpler:
> grep 'string to search for' docname.sla
>
> --
> John Culleton
> Wexford Press
> "Create Book Covers with Scribus"
> http://www.booklocker.com/books/4055.html
>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20110919/ccadce87/attachment.html>


More information about the scribus mailing list