<font face="arial,helvetica,sans-serif">Hello Mark, ale,</font><div><font face="arial,helvetica,sans-serif"><br></font></div><div><font face="arial,helvetica,sans-serif">I've added an attribute in document api which will return a list of pages in a document. You may try out <b>Scripter.activeDocument.pages</b> for getting this.</font></div>
<div><font face="arial,helvetica,sans-serif"><br></font></div><div><font face="arial,helvetica,sans-serif">Regarding the number attribute in page api, I've fixed it as follows:</font></div><div><br></div><div><font face="arial, helvetica, sans-serif"><b>page = Scripter.activeDocument.activePage</b></font></div>
<div><font face="arial, helvetica, sans-serif"><b>page.number</b> #this will give the page number.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">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:</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><b>Scripter.activeDocument.setActivePage(2)</b></font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif">Thanks & Regards,</font></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 12:49 AM, Mark Heieis <span dir="ltr"><<a href="mailto:mheieis@alois.ca" target="_blank">mheieis@alois.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I agree.<div class="HOEnZb"><div class="h5"><br>
<br>
On 2012-12-04 11:16, ale rimoldi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 04 Dec 2012 11:15:25 -0800<br>
Mark Heieis <<a href="mailto:mheieis@alois.ca" target="_blank">mheieis@alois.ca</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi A.l.e.<br>
<br>
You don't like it where?<br>
</blockquote>
in page :-)<br>
<br>
not 100% sure, though...<br>
<br>
but i don't like to get a "page" object and set through it the active<br>
page...<br>
i think i'd prefer to set the default page in the document object...<br>
<br>
to be discussed...<br>
<br>
ciao<br>
a.l.e<br>
<br>
___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net" target="_blank">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/<u></u>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>
<br>
<br>
___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net" target="_blank">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/<u></u>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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="courier new, monospace"><b>JAIN BASIL ALIYAS</b></font><div><div><div><div><font face="trebuchet ms, sans-serif"><br></font></div><div>
<font face="trebuchet ms, sans-serif">email : <a href="mailto:jainbasil@gmail.com" target="_blank">jainbasil@gmail.com</a></font></div><div><font face="trebuchet ms, sans-serif">blog : <a href="http://www.jainbasil.net" target="_blank">http://www.jainbasil.net</a></font></div>
</div></div></div><br>
</div>