<?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: Swapping Color Swatches with Swatch Switcher</title>
	<atom:link href="http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/feed" rel="self" type="application/rss+xml" />
	<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.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: Uwe Laubender</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-476797</link>
		<dc:creator>Uwe Laubender</dc:creator>
		<pubDate>Sat, 25 Jul 2009 09:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-476797</guid>
		<description>Thank you Steve for contributing that script. However, if you are not working with an english version of InDesign the script will fail detecting the &quot;copy&quot; status of the swatch you want to apply.
Still I have not found an universal method for all localized version of InDesign, but I came to a solution for my german version:
1. step:
instead of &quot;copy&quot; just write &quot;Kopie&quot; in the following line of code. For the german version from:
if (myTempStringSlice == &#039;copy&#039;)
to:
if (myTempStringSlice == &#039;Kopie&#039;)
2. step:
because the new word &quot;Kopie&quot; has a character count of 5 instead of 4 you have to change the following line of code accordingly from:
myTempStringSlice = myTempString.slice((myTempString.length-4), myTempString.length);
to:
myTempStringSlice = myTempString.slice((myTempString.length-5), myTempString.length);
3. step:
The same is true for the next line of code.
From:
myTempStringSlice = myTempString.slice((myTempString.length-5), myTempString.length);
to:
myTempStringSlice = myTempString.slice((myTempString.length-6), myTempString.length);
Just save the script under a new name like &quot;swatch_switch_DE.jsx&quot;.</description>
		<content:encoded><![CDATA[<p>Thank you Steve for contributing that script. However, if you are not working with an english version of InDesign the script will fail detecting the &#8220;copy&#8221; status of the swatch you want to apply.<br />
Still I have not found an universal method for all localized version of InDesign, but I came to a solution for my german version:<br />
1. step:<br />
instead of &#8220;copy&#8221; just write &#8220;Kopie&#8221; in the following line of code. For the german version from:<br />
if (myTempStringSlice == &#8216;copy&#8217;)<br />
to:<br />
if (myTempStringSlice == &#8216;Kopie&#8217;)<br />
2. step:<br />
because the new word &#8220;Kopie&#8221; has a character count of 5 instead of 4 you have to change the following line of code accordingly from:<br />
myTempStringSlice = myTempString.slice((myTempString.length-4), myTempString.length);<br />
to:<br />
myTempStringSlice = myTempString.slice((myTempString.length-5), myTempString.length);<br />
3. step:<br />
The same is true for the next line of code.<br />
From:<br />
myTempStringSlice = myTempString.slice((myTempString.length-5), myTempString.length);<br />
to:<br />
myTempStringSlice = myTempString.slice((myTempString.length-6), myTempString.length);<br />
Just save the script under a new name like &#8220;swatch_switch_DE.jsx&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Richardson</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-476133</link>
		<dc:creator>Sam Richardson</dc:creator>
		<pubDate>Thu, 11 Jun 2009 20:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-476133</guid>
		<description>Thanks for the helpful tip.  Have an unusual situation that maybe someone can help me with.
I inherited a template for a client that uses only spot colors and will stay that way.  This template will be repurposed for a number of projects that will have various color schemes,  also only using spot colors (btw,  all will be Pantone Standard).
All the Paragraph, Character, and Object Styles use these colors,  as well as Master Pages.
Question,  Can I use this to swap out one swatch (using a Pantone Spot color) for another (also using a Panton Spot)?
thanks
Sam</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful tip.  Have an unusual situation that maybe someone can help me with.<br />
I inherited a template for a client that uses only spot colors and will stay that way.  This template will be repurposed for a number of projects that will have various color schemes,  also only using spot colors (btw,  all will be Pantone Standard).<br />
All the Paragraph, Character, and Object Styles use these colors,  as well as Master Pages.<br />
Question,  Can I use this to swap out one swatch (using a Pantone Spot color) for another (also using a Panton Spot)?<br />
thanks<br />
Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: InDesignSecrets &#187; Blog Archive &#187; InDesignSecrets Podcast 081</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-466378</link>
		<dc:creator>InDesignSecrets &#187; Blog Archive &#187; InDesignSecrets Podcast 081</dc:creator>
		<pubDate>Wed, 09 Jul 2008 21:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-466378</guid>
		<description>[...] New design for InDesignSecrets.com blog * Free script extravaganza: Swatch Switcher, Label Graphics, Swap Object Positions, IndexMatic (beta) to index on character styles, Select [...]</description>
		<content:encoded><![CDATA[<p>[...] New design for InDesignSecrets.com blog * Free script extravaganza: Swatch Switcher, Label Graphics, Swap Object Positions, IndexMatic (beta) to index on character styles, Select [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne-Marie</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-422591</link>
		<dc:creator>Anne-Marie</dc:creator>
		<pubDate>Tue, 03 Jun 2008 03:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-422591</guid>
		<description>Or you can see what he looks like about 1:10 into the &lt;a href=&quot;http://www.youtube.com/watch?v=LPmsXTMVxps&quot; rel=&quot;nofollow&quot;&gt;Transparencide video.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Or you can see what he looks like about 1:10 into the <a href="http://www.youtube.com/watch?v=LPmsXTMVxps" rel="nofollow">Transparencide video.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Blatner</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-418453</link>
		<dc:creator>David Blatner</dc:creator>
		<pubDate>Fri, 30 May 2008 12:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-418453</guid>
		<description>Regular readers of InDesign secrets who don&#039;t know Russell will quickly become acquainted with his particularly sharp sense of humor (thus his comments about paypal and so on... just a joke! Really!).

For more on Russell&#039;s humor, you (and everyone you know) should visit &lt;a href=&quot;http://www.yabb-adobe-doo.com/yabstuff.html&quot; target=_&quot;blank&quot; rel=&quot;nofollow&quot;&gt;yabb-adobe-doo.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Regular readers of InDesign secrets who don&#8217;t know Russell will quickly become acquainted with his particularly sharp sense of humor (thus his comments about paypal and so on&#8230; just a joke! Really!).</p>
<p>For more on Russell&#8217;s humor, you (and everyone you know) should visit <a href="http://www.yabb-adobe-doo.com/yabstuff.html" target=_"blank" rel="nofollow">yabb-adobe-doo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russell Viers</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-417245</link>
		<dc:creator>Russell Viers</dc:creator>
		<pubDate>Thu, 29 May 2008 13:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-417245</guid>
		<description>Thanks for the kind words, Pat. What you don&#039;t know is that the script also pings your PayPal account for $7.34 every time you use it...and sends it to me.
Feel free to use the script regularly and tell your friends, as well.</description>
		<content:encoded><![CDATA[<p>Thanks for the kind words, Pat. What you don&#8217;t know is that the script also pings your PayPal account for $7.34 every time you use it&#8230;and sends it to me.<br />
Feel free to use the script regularly and tell your friends, as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-417240</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Thu, 29 May 2008 13:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-417240</guid>
		<description>Just tried this script out and it works great! Thanks a lot guys. This site is great, it explains everything about InDesign and when InDesign can&#039;t do something, you get that featured added. Awesome.</description>
		<content:encoded><![CDATA[<p>Just tried this script out and it works great! Thanks a lot guys. This site is great, it explains everything about InDesign and when InDesign can&#8217;t do something, you get that featured added. Awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerome</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-417170</link>
		<dc:creator>jerome</dc:creator>
		<pubDate>Thu, 29 May 2008 12:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-417170</guid>
		<description>I started with AppleScript before JavaScript was supported by Adobe. It is an easier language to program in because it is closer to the spoken language and allows for greater integration the computing environment that it is working on including other programs such as e-mail, word processors, spreadsheets, databases, etc. You can also run (Unix/OS X) shell scripts and in certain programs JavaScript. I can also build a full blown user interface with Apple&#039;s free development environment. 

AppleScript&#039;s can be attached to a folder so that they are triggered whenever a file is added, or stay open and watch a folder or series of folders for some event. You can set up rules in an e-mail program to run an AppleScript whenever you receive a message with the subject &quot;ADD THIS.&quot;

JavaScript does have it&#039;s place, it is great for dual platform scripts such as this which are just working inside of ID. It makes it a nice way for a developer to add functions to ID (or PS, ILL, etc) and deploy it to as many users as possible. However, if you want to build a robust work flow then that integrates well into your system then VB Script or AppleScript is probably a better choice.</description>
		<content:encoded><![CDATA[<p>I started with AppleScript before JavaScript was supported by Adobe. It is an easier language to program in because it is closer to the spoken language and allows for greater integration the computing environment that it is working on including other programs such as e-mail, word processors, spreadsheets, databases, etc. You can also run (Unix/OS X) shell scripts and in certain programs JavaScript. I can also build a full blown user interface with Apple&#8217;s free development environment. </p>
<p>AppleScript&#8217;s can be attached to a folder so that they are triggered whenever a file is added, or stay open and watch a folder or series of folders for some event. You can set up rules in an e-mail program to run an AppleScript whenever you receive a message with the subject &#8220;ADD THIS.&#8221;</p>
<p>JavaScript does have it&#8217;s place, it is great for dual platform scripts such as this which are just working inside of ID. It makes it a nice way for a developer to add functions to ID (or PS, ILL, etc) and deploy it to as many users as possible. However, if you want to build a robust work flow then that integrates well into your system then VB Script or AppleScript is probably a better choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaus Nordby</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-417122</link>
		<dc:creator>Klaus Nordby</dc:creator>
		<pubDate>Thu, 29 May 2008 12:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-417122</guid>
		<description>jerome, thanks. But I&#039;m on Win, so Applescript isn on my menu. (I don&#039;t really get why people bother with Applescript and the Win-only VB script, when JavaScript is dual platform?)</description>
		<content:encoded><![CDATA[<p>jerome, thanks. But I&#8217;m on Win, so Applescript isn on my menu. (I don&#8217;t really get why people bother with Applescript and the Win-only VB script, when JavaScript is dual platform?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jerome</title>
		<link>http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php/comment-page-1#comment-416794</link>
		<dc:creator>jerome</dc:creator>
		<pubDate>Thu, 29 May 2008 03:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://indesignsecrets.com/swapping-color-swatches-with-swatch-switcher.php#comment-416794</guid>
		<description>I assume that you are talking about hyperlinks Klaus. If you are on a Mac you should be able to use an applescript like this:

set OldDelim to AppleScript&#039;s text item delimiters

tell application &quot;Adobe InDesign CS3&quot;
	set theHyperlinks to every hyperlink of document 1
	repeat with aHyperlink in theHyperlinks
		set AppleScript&#039;s text item delimiters to &quot; copy&quot;
		set newName to name of aHyperlink
		try
			set name of aHyperlink to text item 1 of (newName)
		on error
			display dialog &quot;Could not rename hyperlink &quot; &amp; (name of aHyperlink)
		end try
	end repeat
end tell

This is pretty simple and takes the name of the hyperlink up to the first instance of &quot; copy&quot; and uses that for the name and displays an alert to the user for duplicates.</description>
		<content:encoded><![CDATA[<p>I assume that you are talking about hyperlinks Klaus. If you are on a Mac you should be able to use an applescript like this:</p>
<p>set OldDelim to AppleScript&#8217;s text item delimiters</p>
<p>tell application &#8220;Adobe InDesign CS3&#8243;<br />
	set theHyperlinks to every hyperlink of document 1<br />
	repeat with aHyperlink in theHyperlinks<br />
		set AppleScript&#8217;s text item delimiters to &#8221; copy&#8221;<br />
		set newName to name of aHyperlink<br />
		try<br />
			set name of aHyperlink to text item 1 of (newName)<br />
		on error<br />
			display dialog &#8220;Could not rename hyperlink &#8221; &amp; (name of aHyperlink)<br />
		end try<br />
	end repeat<br />
end tell</p>
<p>This is pretty simple and takes the name of the hyperlink up to the first instance of &#8221; copy&#8221; and uses that for the name and displays an alert to the user for duplicates.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
