[scribus] Scripter2: Iteration of pages and setting activePage

Jain Basil Aliyas jainbasil at gmail.com
Wed Dec 5 12:49:36 UTC 2012


Hello Mark, ale,

I've added an attribute in document api which will return a list of pages
in a document. You may try out *Scripter.activeDocument.pages* for getting
this.

Regarding the number attribute in page api, I've fixed it as follows:

*page = Scripter.activeDocument.activePage*
*page.number* #this will give the page number.

The setNumber method was actually meant to set the page as active. As you
mentioned, it makes more sense to place it in document api. Hence, I've
moved it there:

*Scripter.activeDocument.setActivePage(2)*

Thanks & Regards,


On Wed, Dec 5, 2012 at 12:49 AM, Mark Heieis <mheieis at alois.ca> wrote:

> I agree.
>
>
> On 2012-12-04 11:16, ale rimoldi wrote:
>
>> On Tue, 04 Dec 2012 11:15:25 -0800
>> Mark Heieis <mheieis at alois.ca> wrote:
>>
>>  Hi A.l.e.
>>>
>>> You don't like it where?
>>>
>> in page :-)
>>
>> not 100% sure, though...
>>
>> but i don't like to get a "page" object and set through it the active
>> page...
>> i think i'd prefer to set the default page in the document object...
>>
>> to be discussed...
>>
>> ciao
>> a.l.e
>>
>> ___
>> Scribus Mailing List: scribus at lists.scribus.net
>> Edit your options or unsubscribe:
>> http://lists.scribus.net/**mailman/listinfo/scribus<http://lists.scribus.net/mailman/listinfo/scribus>
>> See also:
>> http://wiki.scribus.net
>> http://forums.scribus.net
>>
>
>
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/**mailman/listinfo/scribus<http://lists.scribus.net/mailman/listinfo/scribus>
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net
>



-- 
*JAIN BASIL ALIYAS*

email : jainbasil at gmail.com
blog   : http://www.jainbasil.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20121205/8bd1a2a7/attachment.html>


More information about the scribus mailing list