<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Free Add-a-Page Script</title>
	<atom:link href="http://indesignsecrets.com/free-add-a-page-script.php/feed" rel="self" type="application/rss+xml" />
	<link>http://indesignsecrets.com/free-add-a-page-script.php</link>
	<description>InDesignSecrets Blog and Podcast</description>
	<lastBuildDate>Thu, 11 Mar 2010 15:53:03 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gavin Anderson</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-474698</link>
		<dc:creator>Gavin Anderson</dc:creator>
		<pubDate>Tue, 07 Apr 2009 18:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-474698</guid>
		<description>Sweet script! As a Graphic Designer, this one will come in very handy. I&#039;ve added a Keyboard Shortcut for this: Option + Shift + P (on the Mac), since Command + Shift + P is the built in Add Page feature (but does not include the addition of a link text box).</description>
		<content:encoded><![CDATA[<p>Sweet script! As a Graphic Designer, this one will come in very handy. I&#8217;ve added a Keyboard Shortcut for this: Option + Shift + P (on the Mac), since Command + Shift + P is the built in Add Page feature (but does not include the addition of a link text box).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-56147</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 13 May 2007 08:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-56147</guid>
		<description>Your site is perfect!</description>
		<content:encoded><![CDATA[<p>Your site is perfect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Race</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-3269</link>
		<dc:creator>Peter Race</dc:creator>
		<pubDate>Tue, 10 Oct 2006 16:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-3269</guid>
		<description>Using windows version CS1, renaming the .jsx file to a .js file lets the script work perfect.  Just wanted to let those of you know who were still unclear.  Thank you!!</description>
		<content:encoded><![CDATA[<p>Using windows version CS1, renaming the .jsx file to a .js file lets the script work perfect.  Just wanted to let those of you know who were still unclear.  Thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne-Marie</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-1318</link>
		<dc:creator>Anne-Marie</dc:creator>
		<pubDate>Tue, 05 Sep 2006 04:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-1318</guid>
		<description>Ralph, it did that because the .jsx file is actually a text file and your browser is set to open those in a browser window. (mine downloads text files.) Try right-clicking on the link and choosing Download Linked File. Or you can copy/paste the content that appears in the browser window into a new plaintext document and save it with a .jsx extension.</description>
		<content:encoded><![CDATA[<p>Ralph, it did that because the .jsx file is actually a text file and your browser is set to open those in a browser window. (mine downloads text files.) Try right-clicking on the link and choosing Download Linked File. Or you can copy/paste the content that appears in the browser window into a new plaintext document and save it with a .jsx extension.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralph Beach</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-1317</link>
		<dc:creator>Ralph Beach</dc:creator>
		<pubDate>Tue, 05 Sep 2006 04:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-1317</guid>
		<description>When I clicked on the link I got this.

// add a page at the end of the current document,
// place a text frame on it, and link the text frame

doc = app.activeDocument
np = doc.pages.add();
marg = np.marginPreferences;
gb = [marg.top, marg.left,
	doc.documentPreferences.pageHeight - marg.bottom,
	doc.documentPreferences.pageWidth - marg.right];
oldRuler = doc.viewPreferences.rulerOrigin
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
with( doc.pages[-1].textFrames.add() )
	{
	geometricBounds = gb;
	previousTextFrame = doc.pages[-2].textFrames[0];
	}
doc.viewPreferences.rulerOrigin = oldRuler

 the script opened in a browser window. How do I drag that into a indesign package?</description>
		<content:encoded><![CDATA[<p>When I clicked on the link I got this.</p>
<p>// add a page at the end of the current document,<br />
// place a text frame on it, and link the text frame</p>
<p>doc = app.activeDocument<br />
np = doc.pages.add();<br />
marg = np.marginPreferences;<br />
gb = [marg.top, marg.left,<br />
	doc.documentPreferences.pageHeight - marg.bottom,<br />
	doc.documentPreferences.pageWidth - marg.right];<br />
oldRuler = doc.viewPreferences.rulerOrigin<br />
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;<br />
with( doc.pages[-1].textFrames.add() )<br />
	{<br />
	geometricBounds = gb;<br />
	previousTextFrame = doc.pages[-2].textFrames[0];<br />
	}<br />
doc.viewPreferences.rulerOrigin = oldRuler</p>
<p> the script opened in a browser window. How do I drag that into a indesign package?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Stoneman</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-699</link>
		<dc:creator>Oscar Stoneman</dc:creator>
		<pubDate>Sun, 06 Aug 2006 19:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-699</guid>
		<description>To distinguish between even and odd pages fo double sided spreads you need something like this:

===================
// add a page at the end of the current document,
// place a text frame on it, and link the text frame

doc = app.activeDocument
np = doc.pages.add();
marg = np.marginPreferences;
if (np.documentOffset%2) // margin of even or odd page
{
	theLeftMargin = marg.left;
	theRightMargin = marg.right;
}
else	
{
	theLeftMargin = marg.right;
	theRightMargin = marg.left;
}
gb = [marg.top, theLeftMargin,
	doc.documentPreferences.pageHeight - marg.bottom,
	doc.documentPreferences.pageWidth - theRightMargin];

oldRuler = doc.viewPreferences.rulerOrigin
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
with( doc.pages[-1].textFrames.add() )
	{
	geometricBounds = gb;
	previousTextFrame = doc.pages[-2].textFrames[0];
	}
doc.viewPreferences.rulerOrigin = oldRuler
===================
Oscar</description>
		<content:encoded><![CDATA[<p>To distinguish between even and odd pages fo double sided spreads you need something like this:</p>
<p>===================<br />
// add a page at the end of the current document,<br />
// place a text frame on it, and link the text frame</p>
<p>doc = app.activeDocument<br />
np = doc.pages.add();<br />
marg = np.marginPreferences;<br />
if (np.documentOffset%2) // margin of even or odd page<br />
{<br />
	theLeftMargin = marg.left;<br />
	theRightMargin = marg.right;<br />
}<br />
else<br />
{<br />
	theLeftMargin = marg.right;<br />
	theRightMargin = marg.left;<br />
}<br />
gb = [marg.top, theLeftMargin,<br />
	doc.documentPreferences.pageHeight - marg.bottom,<br />
	doc.documentPreferences.pageWidth - theRightMargin];</p>
<p>oldRuler = doc.viewPreferences.rulerOrigin<br />
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;<br />
with( doc.pages[-1].textFrames.add() )<br />
	{<br />
	geometricBounds = gb;<br />
	previousTextFrame = doc.pages[-2].textFrames[0];<br />
	}<br />
doc.viewPreferences.rulerOrigin = oldRuler<br />
===================<br />
Oscar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Stoneman</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-698</link>
		<dc:creator>Oscar Stoneman</dc:creator>
		<pubDate>Sun, 06 Aug 2006 19:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-698</guid>
		<description>Seems that the script ignores margin preferences of even pages of double sided spreads. The left margin alway is the left margin of odd pages.

Thanks for the Script anyway.
Oscar</description>
		<content:encoded><![CDATA[<p>Seems that the script ignores margin preferences of even pages of double sided spreads. The left margin alway is the left margin of odd pages.</p>
<p>Thanks for the Script anyway.<br />
Oscar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fontecchio</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-373</link>
		<dc:creator>Mike Fontecchio</dc:creator>
		<pubDate>Wed, 05 Jul 2006 21:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-373</guid>
		<description>Tricia, try renaming the file .js and see if that works.</description>
		<content:encoded><![CDATA[<p>Tricia, try renaming the file .js and see if that works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tricia</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-341</link>
		<dc:creator>Tricia</dc:creator>
		<pubDate>Mon, 03 Jul 2006 02:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-341</guid>
		<description>I see. I guess I&#039;ll probably have to upgrade to CS2 then. Which is probably a good thing. =)</description>
		<content:encoded><![CDATA[<p>I see. I guess I&#8217;ll probably have to upgrade to CS2 then. Which is probably a good thing. =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne-Marie</title>
		<link>http://indesignsecrets.com/free-add-a-page-script.php/comment-page-1#comment-339</link>
		<dc:creator>Anne-Marie</dc:creator>
		<pubDate>Sun, 02 Jul 2006 23:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/free-add-a-page-script.php#comment-339</guid>
		<description>Mayra, the script is an uncompressed text file so downloading it does what your browser normally does with uncompressed text files ... suppose we should .zip it or something. But if you right-click on it you can choose Download Linked File which should work. Even so, my browser downloaded it with a .txt extension added after the .jsx, so I had to delete the extraneous extension.

Tricia, all I know is that it definitely works on Mac InDesign CS2, haven&#039;t tested it on Windows CS2 but it should work there too. When you say &quot;no drama&quot; is that good or bad. :-)  As far as compatibility w/CS1, there may be something new in the javascript that CS1 doesn&#039;t recognize.</description>
		<content:encoded><![CDATA[<p>Mayra, the script is an uncompressed text file so downloading it does what your browser normally does with uncompressed text files &#8230; suppose we should .zip it or something. But if you right-click on it you can choose Download Linked File which should work. Even so, my browser downloaded it with a .txt extension added after the .jsx, so I had to delete the extraneous extension.</p>
<p>Tricia, all I know is that it definitely works on Mac InDesign CS2, haven&#8217;t tested it on Windows CS2 but it should work there too. When you say &#8220;no drama&#8221; is that good or bad. <img src='http://indesignsecrets.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   As far as compatibility w/CS1, there may be something new in the javascript that CS1 doesn&#8217;t recognize.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
