<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>IndiSnip [InDesign® Snippets]</title>
	<atom:link href="http://indisnip.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://indisnip.wordpress.com</link>
	<description>Adobe® InDesign® Scripting Snippets</description>
	<lastBuildDate>Thu, 14 Feb 2013 18:02:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='indisnip.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/76465a3a9e3c5d4d8136c3ece49cecca?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>IndiSnip [InDesign® Snippets]</title>
		<link>http://indisnip.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://indisnip.wordpress.com/osd.xml" title="IndiSnip [InDesign® Snippets]" />
	<atom:link rel='hub' href='http://indisnip.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ann: Moving all to tomaxxi.com!</title>
		<link>http://indisnip.wordpress.com/2012/02/03/ann-moving-all-to-tomaxxi-com/</link>
		<comments>http://indisnip.wordpress.com/2012/02/03/ann-moving-all-to-tomaxxi-com/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 14:21:39 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[General info]]></category>
		<category><![CDATA[News!]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=1192</guid>
		<description><![CDATA[Filed under: General info, News!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1192&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://tomaxxi.com"><img src="http://indisnip.files.wordpress.com/2012/02/movingtotomaxxi.jpg?w=595" alt="Slowing down and moving all to www.tomaxxi.com" title="Slowing down and moving all to new webpage! www.tomaxxi.com"   class="size-full wp-image-1193" /></a></p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/general-info/'>General info</a>, <a href='http://indisnip.wordpress.com/category/news/'>News!</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/1192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/1192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1192&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2012/02/03/ann-moving-all-to-tomaxxi-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2012/02/movingtotomaxxi.jpg" medium="image">
			<media:title type="html">Slowing down and moving all to new webpage! www.tomaxxi.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Selection order is back in CS5.5!</title>
		<link>http://indisnip.wordpress.com/2011/04/25/selection-order-is-back-in-cs5-5/</link>
		<comments>http://indisnip.wordpress.com/2011/04/25/selection-order-is-back-in-cs5-5/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 20:32:34 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[HOT Posts!]]></category>
		<category><![CDATA[InDesign Scripts]]></category>
		<category><![CDATA[InDesign CS5.5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=1164</guid>
		<description><![CDATA[When I started scripting, about a year ago, I was really frustrated that app.selection didn&#8217;t returned correct selection order I used while selecting objects, instead, it returned sorted selection by object ID&#8217;s. To make things even worse, just few versions back, app.selection DID returned correct selection order! So, somebody messed things really bad! Few people [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1164&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1167" src="http://indisnip.files.wordpress.com/2011/04/selectionorder21.png?w=595" alt="" />When I started scripting, about a year ago, I was really frustrated that <em>app.selection</em> didn&#8217;t returned correct selection order I used while selecting objects, instead, it returned sorted selection by object <em>ID&#8217;s</em>. To make things even worse, just few versions back, <em>app.selection</em> DID returned correct selection order! So, somebody messed things really bad! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
<span id="more-1164"></span><br />
Few people did some workarounds, but they were based on <em>top to bottom</em> and/or <em>left to right</em> selection structure. Also, I think that <strong>APID ToolAssistant</strong> by <a href="http://www.rorohiko.com/wordpress/indesign-downloads/apid-toolassistant/" target="_blank">Rorohiko</a> is able to return correct order of selected objects, but I&#8217;m not quite sure.</p>
<p>BUT, <strong>I&#8217;m really happy to say that this bug is fixed in CS5.5!</strong> I was really excited when I found it working like it should! I felt young again! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' />  It opens so many doors for doing some cool automation things! So, I had put together a simple document and did few tests.</p>
<p><strong>Test script:</strong><br />
<pre class="brush: jscript; wrap-lines: false;">
alert(
    function(){
        var p = [];
        for(var i = 0; i &lt; app.selection.length; i++)
            p.push(&quot;Object: &quot; + app.selection[i].toSource() + &quot; | Contents: &quot; + app.selection[i].contents)
        return p;
    }().join('\r'), &quot;Adobe InDesign ver. (&quot; + app.version + &quot;)&quot;
);
</pre></p>
<p>&nbsp;</p>
<p><strong>Horizontal order:</strong><br />
<a href="http://indisnip.files.wordpress.com/2011/04/selectionorder0.png"><img src="http://indisnip.files.wordpress.com/2011/04/selectionorder0.png?w=595" alt="" title="selectionOrder0"   class="aligncenter size-full wp-image-1165" /></a><br />
<em>Red line represents selection order.</em></p>
<p>&nbsp;</p>
<p><strong>Vertical order:</strong><br />
<a href="http://indisnip.files.wordpress.com/2011/04/selectionorder1.png"><img src="http://indisnip.files.wordpress.com/2011/04/selectionorder1.png?w=595" alt="" title="selectionOrder1"   class="aligncenter size-full wp-image-1166" /></a><br />
<em>Red line represents selection order.</em></p>
<p>&nbsp;</p>
<p>Notice how order of object <strong>ID</strong> change between horizontal and vertical selection order! This is really awesome! Thank you <strong>Adobe</strong> for fixing this!</p>
<p>Now, all you need to do is to wait till <strong>CS5.5</strong> hit the market! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/hot-posts/'>HOT Posts!</a>, <a href='http://indisnip.wordpress.com/category/indesign-scripts/'>InDesign Scripts</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/1164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/1164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1164&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/04/25/selection-order-is-back-in-cs5-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/04/selectionorder21.png" medium="image" />

		<media:content url="http://indisnip.files.wordpress.com/2011/04/selectionorder0.png" medium="image">
			<media:title type="html">selectionOrder0</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/04/selectionorder1.png" medium="image">
			<media:title type="html">selectionOrder1</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Announced Creative Suite 5.5!</title>
		<link>http://indisnip.wordpress.com/2011/04/11/adobe-announced-creative-suite-5-5/</link>
		<comments>http://indisnip.wordpress.com/2011/04/11/adobe-announced-creative-suite-5-5/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 07:25:20 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[HOT Posts!]]></category>
		<category><![CDATA[News!]]></category>
		<category><![CDATA[Creative Suite]]></category>
		<category><![CDATA[InDesign CS5.5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=1151</guid>
		<description><![CDATA[This is wonderful news especially for InDesign users! So, what&#8217;s new in this mid-cycle release?! Let&#8217;s list most important ones: EPUB Export Improvements Style Mapping Articles Panel Linked Stories Object Export Options DPS Tablet Features Easier Anchored Objects Also, bunch of old bugs from previous releases are corrected! But, that&#8217;s not all! Some CS5 users [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1151&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1152" src="http://indisnip.files.wordpress.com/2011/04/215104_10150160100539548_312042524547_6495466_5262497_n.jpg?w=595" alt=""   />This is wonderful news especially for <strong>InDesign</strong> users! So, what&#8217;s new in this <em>mid-cycle</em> release?!</p>
<p>Let&#8217;s list most important ones:</p>
<p><strong> </strong></p>
<ul><strong></p>
<li>EPUB Export Improvements</li>
<li>Style Mapping</li>
<li>Articles Panel</li>
<li>Linked Stories</li>
<li>Object Export Options</li>
<li>DPS Tablet Features</li>
<li>Easier Anchored Objects</li>
<p></strong></ul>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p>Also, bunch of old bugs from previous releases are corrected! But, that&#8217;s not all! Some <strong>CS5</strong> users were frustrated with frame edge highlighting! Now in <strong>CS5.5</strong> you are <strong>CAN</strong> turn it <strong>OFF</strong>! Woohoo! I will not go into details about features and stuff, because there is so many places where you can find info and I&#8217;ll list some of them:</p>
<ul>
<li><a href="http://blogs.adobe.com/conversations/2011/04/introducing-adobe-creative-suite-5-5-product-family.html" target="_blank">Introducing Adobe Creative Suite 5.5 Product Family</a> <em>by Adobe</em></li>
<li><a href="http://tv.adobe.com/channel/whats-new-in-cs55/" target="_blank">What&#8217;s new in CS5.5</a> <em>by Adobe TV</em></li>
<li><a href="http://terrywhite.com/techblog/archives/7490" target="_blank">Adobe CS5 Evolves: Digital Publishing from InDesign to Tablets Gets Better</a> <em>by Terry White, Worldwide Creative Suite Design Evangelist for Adobe</em></li>
<li><a></a><a href="http://indesignsecrets.com/indesign-cs-5-5-announced.php" target="_blank">InDesign CS 5.5 Announced: New Features, Subscription Pricing</a> <em>by InDesignSecrets.com</em></li>
<li><a href="http://www.creativepro.com/article/adobe-upgrades-eight-products-cs55" target="_blank">Adobe Upgrades Nine Products to CS5.5</a> <em>by CreativePro.com</em></li>
<li><a href="http://carijansen.com/2011/04/11/cs5-5-any-screen/" target="_blank">CS5.5 &amp; Any Screen</a> <em>by Cari Jansen</em></li>
</ul>
<blockquote>
<p style="text-align:center;"><strong>Thank you Adobe for making our creative work easier<br />with such a awesome and creative tools!</strong></p>
</blockquote>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/hot-posts/'>HOT Posts!</a>, <a href='http://indisnip.wordpress.com/category/news/'>News!</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/1151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1151&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/04/11/adobe-announced-creative-suite-5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/04/215104_10150160100539548_312042524547_6495466_5262497_n.jpg" medium="image" />
	</item>
		<item>
		<title>Script: tomaxxiLAYERS® / Add Layer Sets to Document [UPDATED]</title>
		<link>http://indisnip.wordpress.com/2011/02/25/script-tomaxxilayers%c2%ae-add-layer-sets-to-document/</link>
		<comments>http://indisnip.wordpress.com/2011/02/25/script-tomaxxilayers%c2%ae-add-layer-sets-to-document/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 14:07:43 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[InDesign Scripts]]></category>
		<category><![CDATA[InDesign CS4]]></category>
		<category><![CDATA[InDesign CS5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=1104</guid>
		<description><![CDATA[As you probably know, layers really important when creating complex layouts. Layers in last version of InDesign (CS5) are radically improved! Till now, you could just manage top-level layers, but starting with CS5, top-level layers can be expanded and you can see complete object structure! (for more info about layers in CS5, read great article [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1104&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1109" src="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers0.png?w=595" alt=""   />As you probably know, layers really important when creating complex layouts. Layers in last version of <em>InDesign</em> (<strong>CS5</strong>) are radically improved! Till now, you could just manage top-level layers, but starting with <strong>CS5</strong>, top-level layers can be expanded and you can see complete object structure! <em>(for more info about layers in <strong>CS5</strong>, read great article written by <strong>Steve Werner</strong> on <strong>InDesignSecrets</strong> [<a href="http://indesignsecrets.com/hidden-gems-the-layers-panel-in-cs5.php" target="_blank"><strong>Hidden Gems: The Layers Panel in CS5</strong>]</a>)</em> That&#8217;s really great! But, main limitation is that we are not able to set &#8220;default&#8221; layers for every new document. But! That&#8217;s why we have scripts! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><span id="more-1104"></span><br />
I have to say that this is not my original idea. <a href="http://www.dinform.at/" target="_blank"><strong>Manuel Hollert</strong></a> published script like this (<a href="http://www.dinform.at/en/2009/08/automatic-layer-set/" target="_blank">Automatic set of layers in new documents</a>) one and a half years ago for <em>InDesign CS4</em>. He also mentioned version for <strong>CS5</strong> but I couldn&#8217;t find download link. So, I decided to write new script from scratch!</p>
<p><img class="alignright size-full wp-image-1107" title="tomaxxiLAYERS2" src="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers2.png?w=595" alt=""   />Let me explain how script works. After you install script and containing files in &#8220;startup scripts&#8221; folder and restart <em>InDesign</em>. You probably noticed &#8220;<strong>txt</strong>&#8221; files. Each &#8220;<strong>txt</strong>&#8221; file is <em>Layer Set</em> which contains layer names. You can manually create as many <em>Layer Set</em> files as you want (<em>ex:</em> &#8220;layerSet_<em>My Special Set</em>.txt&#8221; (without quotes)). Each line in <em>Layer Set</em> file represents one layer that will be created. Keep in mind that <em>Layer Set</em> files have to be in same folder as <strong>JSX</strong> file. Next, go to <strong><em>Layers panel pop-up menu</em></strong> and at the bottom you can &#8220;<strong><em>Enable tomaxxiLAYERS</em></strong>&#8220;. Now, start creating new document. <strong>tomaxxiLAYERS</strong> will pop-up. Simply select <em>Layer Set</em> from drop-down and click <em>Select Set</em>. Next you will see is <em>New Document</em> dialog, and when you confirm it, script will automatically add layers defined in <em>Layer Set</em> to the new document. It sounds complicated, but when you try it once, you will love it! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><img class="aligncenter size-full wp-image-1122" src="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers5.png?w=595" alt=""   /></p>
<p><img class="alignright size-full wp-image-1108" src="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers1.png?w=595" alt=""   />One of new features I added is ability to add <em>Layer Set</em>&#8216;s not just to new documents. Simply open already created document, go to <strong><em>Layers panel pop-up menu</em></strong> and at the bottom click &#8220;<strong><em>Apply tomaxxiLAYERS</em></strong>&#8220;. When <strong>tomaxxiLAYERS</strong> pops-up simply select <em>Layer Set</em> from drop-down and click <em>Select Set</em>. Layers defined in <em>Layer Set</em> will be added to the current document.</p>
<p>There are also few optional tweaks that you can do while creating <em>Layer Set</em> file. You can define Layer options (Show Layer, Lock Layer, Print Layer, Suppress Text Wrap When Layer is Hidden, Show Guides, Lock Guides) for each layer in <em>Layer Set</em>! For more info make sure you read <strong>Quick Start Guide</strong>. <em>(<strong>&#8220;tomaxxiLAYERS_QuickStart.txt&#8221;</strong>)</em> And the the last one is ability to set which layer will be active after all layers are added. Simply add &#8220;<strong>#</strong>&#8221; <em>(without quotes)</em> and the beginning of the layer name in <em>Layer Set</em> file!</p>
<p>That&#8217;s it! Don&#8217;t be scared with this detailed description! Have fun! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h3>[UPDATED]</h3>
<blockquote>
<p style="text-align:center;"><span style="color:#ff0000;"><strong>WARNING!</strong></span><br />
In version 1.0 I found <strong>BUG</strong> that throws error when Re-linking files!<br />
<strong>PLEASE, UPDATE</strong> to version <strong>1.1</strong>!</p>
<p style="text-align:center;">Also, <strong>new </strong>version has been <strong>translated </strong>to five languages and it also works with <strong>CS4</strong>!<br />
Special thanks to <strong>Frans van der Geest</strong> [NL], <strong>Loic Aigon</strong> [FR], <strong>Jan Kampling</strong> [DE], <strong>Rufus Deuchler</strong> [IT] and <strong>Vladislav Ossipov</strong> [RU] for translation!</p>
</blockquote>
<h2>Download</h2>
<p><em>Version <strong>1.1</strong>, 25/02/2011, InDesign CS4 &amp; CS5!</em></p>
<p><a href="http://tomaxxi.com/downloads/"><img class="size-full wp-image-723 alignnone" title="Download tomaxxiLAYERS.zip" src="http://indisnip.files.wordpress.com/2010/09/indisnipjsxbinsmall.png?w=595" alt=""   /></a></p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/indesign-scripts/'>InDesign Scripts</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/1104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/1104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1104&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/02/25/script-tomaxxilayers%c2%ae-add-layer-sets-to-document/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers0.png" medium="image" />

		<media:content url="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers2.png" medium="image">
			<media:title type="html">tomaxxiLAYERS2</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers5.png" medium="image" />

		<media:content url="http://indisnip.files.wordpress.com/2011/02/tomaxxilayers1.png" medium="image" />

		<media:content url="http://indisnip.files.wordpress.com/2010/09/indisnipjsxbinsmall.png" medium="image">
			<media:title type="html">Download tomaxxiLAYERS.zip</media:title>
		</media:content>
	</item>
		<item>
		<title>Easy way to UnEmbed all Embedded links</title>
		<link>http://indisnip.wordpress.com/2011/02/21/easy-way-to-unembed-all-embedded-links/</link>
		<comments>http://indisnip.wordpress.com/2011/02/21/easy-way-to-unembed-all-embedded-links/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 15:01:16 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[InDesign Scripts]]></category>
		<category><![CDATA[InDesign CS]]></category>
		<category><![CDATA[InDesign CS2]]></category>
		<category><![CDATA[InDesign CS3]]></category>
		<category><![CDATA[InDesign CS4]]></category>
		<category><![CDATA[InDesign CS5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=1085</guid>
		<description><![CDATA[Have you ever received document with all links embedded into it? It&#8217;s not everyday scene, but it happens, and InDesign has option to unembed link(s) to folder. But, if you have bunch of links, you need to sort them first, select just embedded ones and then click Unembed Link from Links panel menu, or from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1085&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://indisnip.files.wordpress.com/2011/02/tomaxxiunembed.jpg"><img src="http://indisnip.files.wordpress.com/2011/02/tomaxxiunembed.jpg?w=300&#038;h=190" alt="" title="tomaxxiUnEmbed" width="300" height="190" class="alignright size-medium wp-image-1087" /></a>Have you ever received document with all links embedded into it? It&#8217;s not everyday scene, but it happens, and <em>InDesign</em> has option to unembed link(s) to folder.</p>
<p>But, if you have bunch of links, you need to sort them first, select just embedded ones and then click <strong><em>Unembed Link</em></strong> from <strong><em>Links</em></strong> panel menu, or from context menu. But, it can be done much more easily with help of short script! Let&#8217;s see how! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-1085"></span><br />
<strong><em>Link</em></strong> <em>Class</em> has <em>unembed()</em> method which allows us to extract link from <em>InDesign</em> document and save/relink it to new/existing file. Yes, if file doesn&#8217;t exist in folder we selected as destination, <em>InDesgn</em> will also create file <em>(extract from <strong>INDD</strong> file)</em>! That&#8217;s really great! The fact is that <em>InDesign</em> stores complete files inside <strong>INDD</strong> file when you embed it! That means, if you embed <strong>PSD</strong> file that contains layers, and you unembed it on different computer, you will get original <strong>PSD</strong>! <strong>But, I DON&#8217;T suggest you to use this technique to pack all links, especially high-res images inside <em>INDD</em> file! It will just blowup your file!</strong> Small logos and graphics are OK, but nothing bigger!</p>
<p>Let&#8217;s see how <em>unembed()</em> works:</p>
<p><pre class="brush: jscript; wrap-lines: false;">
// first link in document
var myLink = app.activeDocument.links[0];

// check embedded status
$.writeln(myLink.status == LinkStatus.LINK_EMBEDDED);

// unembed to default location
myLink.unembed();

// unembed to new location
// if file exists it will be overwritten with the extracted one
var myDest = Folder(&quot;/c/myDestination&quot;);
myLink.unembed(myDest);
</pre></p>
<p>So, here is simple script which will ask you where you want to save all embedded and if some of files already exists in destination folder, they will be automatically relinked instead of overwriting <em>(default <strong>unembed()</strong> action)</em>. Simple and easy!</p>
<p><pre class="brush: jscript; wrap-lines: false;">
var myDoc = (app.documents.length &amp;&amp; app.activeDocument),
    myLinks = (myDoc) ? myDoc.links : false,
    hasEmbedded = (myLinks &amp;&amp; String(app.activeDocument.links.everyItem().status).indexOf(&quot;EMBEDDED&quot;) != -1) ? true : false;
    myDoc ? undefined : alert(&quot;No Documents opened!&quot;, &quot;tomaxxiUnEmbed&quot;);
    (!hasEmbedded &amp;&amp; myDoc) ? alert(&quot;No Embedded links found!&quot;, &quot;tomaxxiUnEmbed&quot;) : undefined;

if(myDoc &amp;&amp; myLinks.length != 0 &amp;&amp; hasEmbedded){
    var myFolder = Folder.selectDialog(&quot;Select folder where Embedded links will be extracted:&quot;);
    if(myFolder != null){
        for(var i = 0; i &lt; myLinks.length; i++)
            if(myLinks[i].status == LinkStatus.LINK_EMBEDDED)
                if(File(myFolder + &quot;/&quot; + myLinks[i].name).exists)
                    myLinks[i].relink(File(myFolder + &quot;/&quot; + myLinks[i].name));
                else
                    myLinks[i].unembed(myFolder);
        alert(&quot;Done!&quot;, &quot;tomaxxiUnEmbed&quot;);
    }
}
</pre></p>
<p>That&#8217;s it!</p>
<p>Have fun! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/indesign-scripts/'>InDesign Scripts</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/1085/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/1085/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1085&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/02/21/easy-way-to-unembed-all-embedded-links/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/tomaxxiunembed.jpg?w=300" medium="image">
			<media:title type="html">tomaxxiUnEmbed</media:title>
		</media:content>
	</item>
		<item>
		<title>Interactive Shortcuts Guide for InDesign CS5</title>
		<link>http://indisnip.wordpress.com/2011/02/15/interactive-shortcuts-guide-for-indesign-cs5/</link>
		<comments>http://indisnip.wordpress.com/2011/02/15/interactive-shortcuts-guide-for-indesign-cs5/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 00:39:18 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[General info]]></category>
		<category><![CDATA[HOT Posts!]]></category>
		<category><![CDATA[News!]]></category>
		<category><![CDATA[InDesign CS5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=1031</guid>
		<description><![CDATA[Keyboard shortcuts are a big time saver! And when I say big, I mean BIG! I love shortcuts, and by time, they become part of you, and your everyday workflow! But! It&#8217;s becoming difficult to remember all shortcuts when you use more than one program, and I know you do! So, I decided to create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1031&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1032" title="IndiGuide" src="http://indisnip.files.wordpress.com/2011/02/indiguide1.jpg?w=595" alt=""   /><br />
Keyboard shortcuts are a big time saver! And when I say big, I mean <strong>BIG</strong>! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  I love shortcuts, and by time, they become part of you, and your everyday workflow! But! It&#8217;s becoming difficult to remember all shortcuts when you use more than one program, and I know you do! So, I decided to create nice little <em>interactive shortcuts guide</em> and to be even better, I wanted to use <strong>just</strong> <em>InDesign</em>&#8216;s interactive features!<br />
<span id="more-1031"></span><br />
<a href="http://indisnip.files.wordpress.com/2011/02/indesignkeylayout.jpg"><img class="alignright size-medium wp-image-1039" title="Final InDesign Keyboard Layout" src="http://indisnip.files.wordpress.com/2011/02/indesignkeylayout.jpg?w=300&#038;h=145" alt="" width="300" height="145" /></a><a href="http://indisnip.files.wordpress.com/2011/02/toolslayout.jpg"><img class="alignright size-medium wp-image-1041" title="Tools, Panels and Most Used Shortcuts layout" src="http://indisnip.files.wordpress.com/2011/02/toolslayout.jpg?w=300&#038;h=145" alt="" width="300" height="145" /></a>It was quite a challenge for me even though I knew how to use <em>InDesign</em> and <em>InDesign</em>&#8216;s interactive features. I know, it sounds crazy, but <em>InDesign</em> is really awesome for creating interactive content too! To be honest, I was quite skeptic about interactivity inside such awesome typographic software, but I&#8217;m really blown away! <em>Flash</em> is powerful, and you can do a way more and have much more control, but <em>InDesign</em> is just simple and effective! Here are few screen shots that were made from finished <em>InDesign</em> layout before exporting.</p>
<p>So, you might be wondering how this is really created. Here is short outline of workflow I&#8217;ve used to create this interactive guide. Remember, I&#8217;ve used just <strong>InDesign</strong>!</p>
<ul>
<li>Collect all shortcuts PC and Mac</li>
<li>Create InDesign Keyboard Layout</li>
<li>Create Object Styles for Normal/Over/Click keys</li>
<li>Input all shortcuts to tables (every key to separate page)</li>
<li>Merge shortcuts page to Multi-State Object with script</li>
<li>Assign every key to Multi-State Object state</li>
<li>Export to SWF</li>
</ul>
<p>I think there is no need to explain how to use this guide. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Simply start it and explore! In case you still need some help, there is short <em>Quick Start Guide</em>. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>That&#8217;s it! I hope that you will find this guide useful and helpful! Please, if you have any suggestions, feedback, and even if you find errors, do not hesitate to send me an email!</p>
<p><a href="http://tomaxxi.com/2011/02/interactive-shortcuts-guide-for-indesign-cs5/"><img class="aligncenter size-full wp-image-1043" title="Launch Interactive Shortcuts Guide" src="http://indisnip.files.wordpress.com/2011/02/launchguide.png?w=595" alt="Launch Interactive Shortcuts Guide"   /></a></p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/general-info/'>General info</a>, <a href='http://indisnip.wordpress.com/category/hot-posts/'>HOT Posts!</a>, <a href='http://indisnip.wordpress.com/category/news/'>News!</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/1031/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/1031/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=1031&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/02/15/interactive-shortcuts-guide-for-indesign-cs5/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/indiguide1.jpg" medium="image">
			<media:title type="html">IndiGuide</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/indesignkeylayout.jpg?w=300" medium="image">
			<media:title type="html">Final InDesign Keyboard Layout</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/toolslayout.jpg?w=300" medium="image">
			<media:title type="html">Tools, Panels and Most Used Shortcuts layout</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/02/launchguide.png" medium="image">
			<media:title type="html">Launch Interactive Shortcuts Guide</media:title>
		</media:content>
	</item>
		<item>
		<title>Script: tomaxxiPLACE® 2 / Choose Object Style while Placing</title>
		<link>http://indisnip.wordpress.com/2011/01/13/script-tomaxxiplace2/</link>
		<comments>http://indisnip.wordpress.com/2011/01/13/script-tomaxxiplace2/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 09:18:46 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[HOT Posts!]]></category>
		<category><![CDATA[InDesign Scripts]]></category>
		<category><![CDATA[InDesign CS5]]></category>
		<category><![CDATA[object style]]></category>
		<category><![CDATA[place]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=960</guid>
		<description><![CDATA[Well, just two days after releasing tomaxxiPLACE® I realized that it can be done way more easily and efficiently! So, here it comes, new version of tomaxxiPLACE®! So, what&#8217;s so special about this &#8220;new version&#8221;? First, there is no more floating palette with list of Object Styles! Woohoo! Now, there is menu item where you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=960&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2.jpg"><img class="alignright size-medium wp-image-961" title="tomaxxiPLACE2" src="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2.jpg?w=300&#038;h=272" alt="" width="300" height="272" /></a>Well, just two days after releasing <strong>tomaxxiPLACE®</strong> I realized that it can be done way more easily and efficiently! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  So, here it comes, new version of <strong>tomaxxiPLACE®</strong>!</p>
<p>So, what&#8217;s so special about this <em>&#8220;new version&#8221;</em>?<br />
<span id="more-960"></span><br />
First, there is no more <strong>floating palette</strong> with list of <em>Object Styles</em>! Woohoo! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Now, there is menu item where you <em>Enable</em> or <em>Disable</em> <strong>tomaxxiPLACE®</strong> and it will also remember enable/disable state even after restarting! The script is now <strong>StartUp</strong> type, so you need to copy it to <strong>Startup scripts</strong> folder. Menu item will appear in <em>Object</em> and <em>Object Styles</em> panel menu <em>(see screenshots)</em> and it&#8217;s totally localized! Next, you can use any style from <em>Object Styles</em>, not just <em>top-level</em> ones!<br />
<a href="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2_objmenu.jpg"><img class="alignright size-thumbnail wp-image-962" title="tomaxxiPLACE2_objMenu" src="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2_objmenu.jpg?w=117&#038;h=150" alt="" width="117" height="150" /></a><a href="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2_stymenu.jpg"><img class="alignright size-thumbnail wp-image-963" title="tomaxxiPLACE2_styMenu" src="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2_stymenu.jpg?w=150&#038;h=93" alt="" width="150" height="93" /></a></p>
<h3>How to use/install?</h3>
<ul>
<li>Download the script</li>
<li>Copy script to <strong>Startup scripts</strong> folder</li>
<li>Start or restart InDesign</li>
<li>Locate menu item in <em>Object</em> or <em>Object Styles</em> panel menu</li>
<li>Click <strong>Enable tomaxxiPLACE®</strong></li>
<li>Load PlaceGun with files</li>
<li>Select desired <em>Object Style</em></li>
<li>Place</li>
</ul>
<p>So easy and effective! <strong>Remember, you can change <em>Object Style</em> while placing!</strong></p>
<p>Have fun! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h3>Download</h3>
<p><em>Version 2.3, 14/01/2011, InDesign CS5 only!</em></p>
<blockquote><p><strong>New updated version available! Fixed some localization typos.</strong></p></blockquote>
<p><a href="http://tomaxxi.com/downloads/"><img class="size-full wp-image-723 alignnone" title="Download tomaxxiPLACE2.jsxbin" src="http://indisnip.files.wordpress.com/2010/09/indisnipjsxbinsmall.png?w=595" alt=""   /></a></p>
<blockquote><p>Special thanks goes to <a href="http://expertsgraphiques.free.fr/" target="_blank"><strong>Pierre Labbe</strong></a> and <a href="http://www.proficiografik.com/" target="_blank"><strong>Jean-Claude Tremblay</strong></a> for script testing and also for menu items localization suggestion! Thank you!</p></blockquote>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/hot-posts/'>HOT Posts!</a>, <a href='http://indisnip.wordpress.com/category/indesign-scripts/'>InDesign Scripts</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/960/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=960&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/01/13/script-tomaxxiplace2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2.jpg?w=300" medium="image">
			<media:title type="html">tomaxxiPLACE2</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2_objmenu.jpg?w=117" medium="image">
			<media:title type="html">tomaxxiPLACE2_objMenu</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace2_stymenu.jpg?w=150" medium="image">
			<media:title type="html">tomaxxiPLACE2_styMenu</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2010/09/indisnipjsxbinsmall.png" medium="image">
			<media:title type="html">Download tomaxxiPLACE2.jsxbin</media:title>
		</media:content>
	</item>
		<item>
		<title>Script: tomaxxiPLACE® / Choose Object Style while Placing</title>
		<link>http://indisnip.wordpress.com/2011/01/11/script-tomaxxiplace%c2%ae-choose-object-style-while-placing/</link>
		<comments>http://indisnip.wordpress.com/2011/01/11/script-tomaxxiplace%c2%ae-choose-object-style-while-placing/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 15:47:31 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[HOT Posts!]]></category>
		<category><![CDATA[InDesign Scripts]]></category>
		<category><![CDATA[InDesign CS5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=936</guid>
		<description><![CDATA[Like I said, it&#8217;s new year, new beginning, I&#8217;m full with new ideas, and I hope that this year will be awesome like last was, so, here is another really cool script that will help you overcome BUG which was mentioned here: Auto Apply Object Style to Placed Image. Also, you will not need special [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=936&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-937" title="tomaxxiPLACE" src="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace.jpg?w=595" alt=""   />Like I said, it&#8217;s new year, new beginning, I&#8217;m full with new ideas, and I hope that this year will be awesome like last was, so, here is another really cool script that will help you overcome <strong>BUG</strong> which was mentioned here: <a href="http://inditip.wordpress.com/2011/01/04/auto-apply-object-style-to-placed-image/" target="_blank"><strong>Auto Apply Object Style to Placed Image</strong></a>. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Also, you will not need special <strong>&#8220;Place Fun Frame&#8221;</strong> <em>Object Style</em> to apply desired object style while placing objects, and you will be able to even select different while placing multiple objects. Really?! Well, yes, I hope so! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><span id="more-936"></span></p>
<p>It&#8217;s really simple script, but I deside to encrypt it to make it untouchable for unexperienced scripters. But, the core is simple. <em>Event Listener</em> that catches <em>Place</em> event and applies selected <em>object style</em>. Notice that this script will remember selected <em>object style</em> across documents, and even if you close document, and open it again, your last time used style will be selected <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  InDesign lacks few event listeners to be able to detect when new styles are added, so you will have to click that <strong>&#8220;Refresh&#8221;</strong> button to refresh <em>object style</em> list. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>DISCLAMER AND LIMITATIONS</strong></p>
<ul>
<li>Info about selected object style in document via <em>insertLabel()</em></li>
<li>Script will not detect <em>Object Styles</em> in <em>Style Groups</em></li>
<li>It&#8217;s <em>InDesign CS5</em> only!</li>
</ul>
<p>If you find <strong>BUG</strong> please report it to my email address! Also, if you have suggestion, fell free to contact me!</p>
<p><strong>You can download the script here:</strong><br />
<em>Version 1.5, 14/01/2011, InDesign CS5 only!</em></p>
<blockquote><p><strong>I want to apologize to all who downloaded this script on 14th January 2011 between 1PM and 7PM GMT+1! This script wasn&#8217;t working! Version 1.5 is good one! Thank you! I also want to thank Pierre Labbe for noticing the error!</strong></p></blockquote>
<p><a href="http://tomaxxi.com/downloads/"><img class="size-full wp-image-723 alignnone" title="Download tomaxxiPLACE.jsxbin" src="http://indisnip.files.wordpress.com/2010/09/indisnipjsxbinsmall.png?w=595" alt=""   /></a></p>
<blockquote><p>Special thanks and credits goes to <strong>Loic Aigon</strong>, <strong>Marc Autret</strong>, <strong>Tim Gouder</strong>, <strong>Jean-Claude Tremblay</strong> and <strong>Sigurdur Armannsson</strong> for great suggestions and script testing! Thank you guys!</p></blockquote>
<p>That&#8217;s it!</p>
<p>Have fun! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/hot-posts/'>HOT Posts!</a>, <a href='http://indisnip.wordpress.com/category/indesign-scripts/'>InDesign Scripts</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/936/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=936&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/01/11/script-tomaxxiplace%c2%ae-choose-object-style-while-placing/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/01/tomaxxiplace.jpg" medium="image">
			<media:title type="html">tomaxxiPLACE</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2010/09/indisnipjsxbinsmall.png" medium="image">
			<media:title type="html">Download tomaxxiPLACE.jsxbin</media:title>
		</media:content>
	</item>
		<item>
		<title>NEW BLOG: InDesign Tips &amp; Tricks</title>
		<link>http://indisnip.wordpress.com/2011/01/03/new-blog-indesign-tips-tricks/</link>
		<comments>http://indisnip.wordpress.com/2011/01/03/new-blog-indesign-tips-tricks/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 21:33:17 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[General info]]></category>
		<category><![CDATA[News!]]></category>
		<category><![CDATA[InDesign]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=921</guid>
		<description><![CDATA[What you can expect from IndiTip blog? I will post short and interesting tips&#38;tricks mostly for InDesign CS5. As I work and find some useful tip, I will post it as soon as possible So, stay tuned and enjoy! Filed under: General info, News!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=921&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3><a href="http://inditip.wordpress.com/"><img class="aligncenter size-full wp-image-922" title="IndiTip - NEW Blog!" src="http://indisnip.files.wordpress.com/2011/01/inditip-new-blog.jpg?w=595" alt=""   /></a><br /><span id="more-921"></span>What you can expect from IndiTip blog?</h3>
<p>I will post short and interesting tips&amp;tricks mostly for InDesign CS5. As I work and find some useful tip, I will post it as soon as possible <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So, stay tuned and enjoy!</p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/general-info/'>General info</a>, <a href='http://indisnip.wordpress.com/category/news/'>News!</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/921/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=921&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2011/01/03/new-blog-indesign-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2011/01/inditip-new-blog.jpg" medium="image">
			<media:title type="html">IndiTip - NEW Blog!</media:title>
		</media:content>
	</item>
		<item>
		<title>Saving Script Data using JSON [Part 2]</title>
		<link>http://indisnip.wordpress.com/2010/12/31/saving-script-data-using-json-part-2/</link>
		<comments>http://indisnip.wordpress.com/2010/12/31/saving-script-data-using-json-part-2/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 00:45:30 +0000</pubDate>
		<dc:creator>Marijan Tompa (tomaxxi)</dc:creator>
				<category><![CDATA[InDesign Scripts]]></category>
		<category><![CDATA[InDesign CS3]]></category>
		<category><![CDATA[InDesign CS4]]></category>
		<category><![CDATA[InDesign CS5]]></category>

		<guid isPermaLink="false">http://indisnip.wordpress.com/?p=893</guid>
		<description><![CDATA[When building complex scripts with lot of options that user can choose, it&#8217;s always great to allow user to also save selected settings and reuse them on next launch. We already discussed about this topic in earlier post [Saving script data within document] but I recently found better way for serializing and storing data. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=893&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img src="http://indisnip.files.wordpress.com/2010/12/savesettings0.jpg?w=595" alt="" title="saveSettings0"   class="alignright size-full wp-image-895" />When building complex scripts with lot of options that user can choose, it&#8217;s always great to allow user to also save selected settings and reuse them on next launch. We already discussed about this topic in earlier post <a href="http://indisnip.wordpress.com/2010/07/31/saving-script-data-within-document/" target="_blank"><strong>[Saving script data within document]</strong></a> but I recently found better way for serializing and storing data.</p>
<p>In first post, I used simple &#8220;<strong>*</strong>&#8221; to separate multiple values, and at load time used <em>split(*)</em> to separate values back to <em>Array</em>. That&#8217;s not bad, and it&#8217;s working fine, but there is another much more elegant solution!</p>
<p>What is <strong>JSON</strong>? <strong>JSON</strong> (JavaScript Object Notation) is a lightweight data-interchange format in other words it&#8217;s <em>Associative array</em>. It is, among other things, a faster, simpler, easier-to-use alternative to <em>XML</em>. More info about JSON can be found here: <a href="http://www.json.org/" target="_blank"><strong>Introducing JSON</strong></a>. That&#8217;s great, but how to use it in InDesign?! How to save/load values?</p>
<p>I created short sample to demonstrate usage and shortly explain how it works. Of course, you can extend it as you wish! So, let&#8217;s get started! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><span id="more-893"></span><br />
First, let&#8217;s take a look at simple JSON <em>(Associative array)</em> object:</p>
<p><pre class="brush: jscript;">
var myJSON = { myText: &quot;My First Text&quot;, myValue: 1 };

// displaying values
alert(myJSON.myText); // My First Text
alert(myJSON.myValue); // 1
</pre></p>
<p>So, the main idea is to populate simply populate JSON object with dialog values and save them into <em>app</em> or <em>document</em> label. But, label is <em>String</em> value, and JSON is object, so before saving we need to convert JSON to string. Easiest way to do that is to use <em>toSource()</em> which will generate <em>String</em> from JSON object.</p>
<p><pre class="brush: jscript;">
alert(myJSON.toSource()); // ({myText:&quot;My First Text&quot;, myValue:1})
</pre></p>
<p>Another great thing is that we don&#8217;t have to think about escaping reserved characters, they are automatically escaped during conversion to string!</p>
<p>So, let&#8217;s build really simple example! First we need simple dialog. As you see on image, it will contain three text boxes, two check boxes and one dropdown:</p>
<p><pre class="brush: jscript; wrap-lines: false;">
// loading saved settings
var loadSettings = eval(app.activeDocument.extractLabel(&quot;mySettings&quot;));

// function which assigns values to elements
var myValues = function(setObj, defValue){
    if(loadSettings != undefined){
        if(loadSettings[setObj]){
            return loadSettings[setObj];
        }
    }else{
        return defValue;
    }
};

// array for dropdown element
var myArray = [&quot;Level 1&quot;, &quot;Level 2&quot;, &quot;Level 3&quot;, &quot;Level 4&quot;, &quot;Level 5&quot;];

// dialog
var myWin = new Window('dialog', &quot;Save Settings / by IndiSnip&quot;);

// elements
var myT1 = myWin.add('edittext', undefined, myValues(&quot;myT1&quot;, &quot;Name&quot;));
    myT1.characters = 20;
var myT2 = myWin.add('edittext', undefined, myValues(&quot;myT2&quot;, &quot;Company&quot;));
    myT2.characters = 20;
var myT3 = myWin.add('edittext', undefined, myValues(&quot;myT3&quot;, &quot;E-mail&quot;));
    myT3.characters = 20;
var myC1 = myWin.add('checkbox', undefined, &quot;Newsletter&quot;);
    myC1.value = myValues(&quot;myC1&quot;, true);
var myC2 = myWin.add('checkbox', undefined, &quot;Support&quot;);
    myC2.value = myValues(&quot;myC2&quot;, false);
var myD1 = myWin.add('dropdownlist', undefined, myArray);
    myD1.selection = myValues(&quot;myD1&quot;, 0);
var myOK = myWin.add('button', undefined, &quot;OK&quot;);

// this is more like bonus element
// which enables you to reset values to default
var myReset = myWin.add('button', undefined, &quot;Reset&quot;);
    myReset.onClick = function(){myWin.close(3);};
    loadSettings != undefined ? myReset.enabled = true : myReset.enabled = false;

// center dialog [optional]
myWin.center();

// show dialog
var myRes = myWin.show();

// switch dialog close value
if(myRes == 1){ // OK is clicked
    var mySettings = {}; // new JSON
    // adds values from dialog to JSON
    mySettings['myT1'] = myT1.text;
    mySettings['myT2'] = myT2.text;
    mySettings['myT3'] = myT3.text;
    mySettings['myC1'] = myC1.value;
    mySettings['myC2'] = myC2.value;
    mySettings['myD1'] = myD1.selection.index;
    // saves JSON which is converted to string to activeDocument label
    app.activeDocument.insertLabel(&quot;mySettings&quot;, mySettings.toSource());
}else if(myRes == 3){ // Reset is clicked
    // clears activeDocument label
    app.activeDocument.insertLabel(&quot;mySettings&quot;, &quot;&quot;);
}
</pre></p>
<p>OK, let&#8217;s explain this a little bit <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Key part is in <em>myValues(setObj, defValue)</em> function which loads saved data if any, or assigns <em>default data</em> if no data stored. Keep in mind that <em>setObj</em> has to be the same when saving data (line 52), if not, data will not match! String which is loaded from <em>label</em> has to be converted to JSON object using <em>eval()</em> to make it accessible!</p>
<p>Here you can see how JSON from example above looks like when filled with data and converted to <em>String</em>:</p>
<p><a href="http://indisnip.files.wordpress.com/2010/12/savesettings_json.jpg"><img src="http://indisnip.files.wordpress.com/2010/12/savesettings_json.jpg?w=595" alt="" title="saveSettings_JSON"   class="aligncenter size-full wp-image-910" /></a></p>
<p>And here is dialog which is loaded with already saved data:</p>
<p><a href="http://indisnip.files.wordpress.com/2010/12/savesettings1.jpg"><img src="http://indisnip.files.wordpress.com/2010/12/savesettings1.jpg?w=187&#038;h=300" alt="" title="saveSettings1" width="187" height="300" class="aligncenter size-medium wp-image-894" /></a></p>
<p>Maybe you can make this more efficient if you build your own ScriptUI widgets. You can implement this technique directly into widgets and add more control over content/values of your dialog elements.</p>
<p>That&#8217;s it!</p>
<p>Happy coding! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://indisnip.wordpress.com/category/indesign-scripts/'>InDesign Scripts</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/indisnip.wordpress.com/893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/indisnip.wordpress.com/893/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=indisnip.wordpress.com&#038;blog=14838712&#038;post=893&#038;subd=indisnip&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://indisnip.wordpress.com/2010/12/31/saving-script-data-using-json-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b1cc744fbddc2d8fdb89fd53e99245e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tomaxxi</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2010/12/savesettings0.jpg" medium="image">
			<media:title type="html">saveSettings0</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2010/12/savesettings_json.jpg" medium="image">
			<media:title type="html">saveSettings_JSON</media:title>
		</media:content>

		<media:content url="http://indisnip.files.wordpress.com/2010/12/savesettings1.jpg?w=187" medium="image">
			<media:title type="html">saveSettings1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
