<?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/"
	>

<channel>
	<title>Interactive Llama :: Interactive media tutorials and tips &#187; script</title>
	<atom:link href="http://www.interactivellama.com/blog/archives/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.interactivellama.com/blog</link>
	<description>Interactive media tutorials and tips</description>
	<lastBuildDate>Wed, 23 Nov 2011 15:25:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Package links for output: Illustrator collection script</title>
		<link>http://www.interactivellama.com/blog/archives/package-links-for-output-adobe-illustrator-collection-script/</link>
		<comments>http://www.interactivellama.com/blog/archives/package-links-for-output-adobe-illustrator-collection-script/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 20:20:55 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[collect for output]]></category>
		<category><![CDATA[productivty]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">/blog/?p=167</guid>
		<description><![CDATA[You have the option to embed images into Adobe Illustrator or to link them. If you embed them, then your file will be large (a 500MB AI file is an everyday occurrence in my work). The other is to link to the image file, but if you hand the file off to another person, the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-184" title="illustrator-collect-script" src="/blog/wp-content/uploads/2009/03/illustrator-collect-script.gif" alt="illustrator-collect-script" width="510" height="101" /></p>
<p>You have the option to <em>embed images</em> into Adobe Illustrator or <em>to link them</em>. If you embed them, then your file will be large (a 500MB AI file is an everyday occurrence in my work). The other is to link to the image file, but if you hand the file off to another person, the linked images will not be stored with it. One option to is to have a central repository located on a network for images. All new images are placed there. This can sometimes be cumbersome not to have a copy of the image on your local machine&#8211;consider image manipulations and having to manage file versions centrally. This script solves the problem of collecting linked images for output. This script collects external image links into a single &#8220;Links&#8221; folder. You can then give that folder and the subsequent source file (AI) to another person and the external links will work.<span id="more-167"></span></p>
<p>Hopefully, you are not using Adobe Illustrator source files (AI) to pre-press print work, but if you are this will aid in collecting linked images for that purpose too.</p>
<p><strong>Caveats</strong></p>
<p>This script does not collect fonts or other files, only images. If your image is within an opacity mask this script will not be able to find it. Illustrator Package Script has been tested on Adobe Illustrator CS2 and Adobe Illustrator CS3 only.</p>
<p>I did not write this script. This script was written by Pavel Rassadin. You can download the original source for this <a href="http://mf36.narod.ru/files/Package.zip">Illustrator Package Script</a> from his website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/package-links-for-output-adobe-illustrator-collection-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gallery2 titles and keywords search engine optimization script</title>
		<link>http://www.interactivellama.com/blog/archives/gallery2-titles-and-keywords-search-engine-optimization-script/</link>
		<comments>http://www.interactivellama.com/blog/archives/gallery2-titles-and-keywords-search-engine-optimization-script/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 15:01:01 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[photograph]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">/blog/?p=137</guid>
		<description><![CDATA[If you are interested in the open-source image gallery web application, Gallery, you have probably read the Thirteen Ways To Add SEO To Gallery2. If you haven’t, then read that tutorial first. Within that tutorial, I mention a bulk renaming script that I have used for years with Gallery2 to change titles and keywords. This [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;" src="/blog/wp-content/uploads/2009/01/gallery2-logo.jpg" alt="" width="230" height="150" />If you are interested in the open-source image gallery web application, <a href="http://gallery.menalto.com/">Gallery</a>, you have probably read the <a href="http://gallery.menalto.com/node/70008">Thirteen Ways To Add SEO To Gallery2</a>. If you haven’t, then read that tutorial first. Within that tutorial, I mention a bulk renaming script that I have used for years with Gallery2 to change titles and keywords. This post is about that title and keyword generating bulk script. It removes some common naming conventions from the titles and removes common words from the keyword list. Do people really want to see all the photographs that contain the articles, &#8220;a,&#8221; &#8220;an&#8221; and &#8220;the.&#8221; I certainly wouldn&#8217;t.</p>
<p>The default title for Gallery2 item uploads is the file name of the image. It easier to name your files well from the beginning from the safety of either than edit the URL, titles, and keywords for your item after they are uploaded. My naming convention for a file name is photo_set-photo_subset-people_or_objects. For a photo of my parents, my bride and myself at my wedding, I used &#8220;wedding-party-parents-rachel-stephen.jpg&#8221;<span id="more-137"></span></p>
<p>When creating titles this script does the following via regular expressions:</p>
<ul>
<li>Removes &#8216;copy&#8217; (a common OS-X filename suffix)</li>
<li>Removes underscores at beginning</li>
<li>Removes underscores at end</li>
<li>Removes double underscores</li>
<li>Removes left and right parenthesis</li>
<li>Removes all single digit numbers and letters</li>
<li>Replaces underscores and hyphens with space</li>
</ul>
<p>When creating keywords from titles, this script removes the following common words and inserts commas between the remaining words:</p>
<blockquote><p>a, about, above, across, act, add, after, again, against, all, along, also, amid, among, an, and, any, are, around, as, at, back, be, been, before, behind, below, beneath, beside, besides, between, beyond, but, by, came, can, cause, change, close, come, concerning, considering, could, cover, cross, despite, did, differ, do, does, down, draw, during, each, even, every, except, excepting, excluding, far, few, find, follow, following, for, found, four, from, get, give, go, grow, had, hard, has, have, he, her, here, high, him, his, how, if, in, inside, into, is, it, just, keep, know, large, last, late, left, let, like, little, long, look, made, make, many, may, might, minus, more, most, move, much, must, my, near, never, no, now, of, off, on, one, only, onto, opposite, or, other, our, out, outside, over, own, part, past, per, plus, put, regarding, right, said, same, saw, say, see, self, set, she, should, side, small, so, some, still, such, take, tell, than, that, the, their, them, then, there, these, they, thing, this, three, through, to, too, toward, towards, try, two, under, underneath, unlike, until, up, upon, us, use, versus, very, via, want, was, way, we, went, were, what, when, where, which, while, who, why, will, with, within, without, would, you, your</p></blockquote>
<p><strong>Usage</strong></p>
<p>You can either edit the setup variables in the script or use URL variables (such as &#8220;?field=g_keywords&amp;begin_id=3000&#8243;). That example would insert keywords (test insert, not commit) based on the titles of all items after item 3000.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>Some familiarity with the PHP language</li>
<li>Login credentials: server, username, database name, password</li>
<li>Item ID to begin with (default is 0, that is &#8220;all items&#8221;)</li>
<li>If you want to change my default title word removal listed above, familiarity with regular expressions</li>
</ul>
<p>Download <a href="/blog/wp-content/uploads/2009/01/gallery-seo-titles-keywords-smjdesign.txt">Gallery2 titles and keywords SEO script</a></p>
<p><em>NOTE: You will need to rename the &#8220;.txt&#8221; file to &#8220;.php&#8221; in order to run it on your server. Also this script will edit not only item names, but also albums. I&#8217;ve included copious comments in this script to aid in customizing it to your needs.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/gallery2-titles-and-keywords-search-engine-optimization-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSSsprite: Photoshop script combines two images for CSS hover</title>
		<link>http://www.interactivellama.com/blog/archives/photoshop-script-combine-two-images-css-hover-css-sprite/</link>
		<comments>http://www.interactivellama.com/blog/archives/photoshop-script-combine-two-images-css-hover-css-sprite/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 20:48:41 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[actions]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">/blog/?p=132</guid>
		<description><![CDATA[The need Professional web developers have been aware of CSS sprites or CSS rollovers/hovers since 2004 (The rollover term is taken from JavaScript and the hover term is taken from CSS). They are the background graphics that change position based on mouse hover thus eliminating the need for JavaScript image swaps and image caching since [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-135" title="csssprites_before" src="/blog/wp-content/uploads/2008/11/csssprites_before-300x123.jpg" alt="" width="300" height="123" /></p>
<p><img class="alignnone size-medium wp-image-136" title="csssprites_after" src="/blog/wp-content/uploads/2008/11/csssprites_after-300x132.jpg" alt="" width="300" height="132" /></p>
<p><strong>The need<br />
</strong></p>
<p>Professional web developers have been aware of <a href="http://www.alistapart.com/articles/sprites/">CSS sprites</a> or CSS rollovers/hovers since 2004 (The rollover term is taken from JavaScript and the hover term is taken from CSS).  They are the background graphics that change position based on mouse hover thus eliminating the need for JavaScript image swaps and image caching since the &#8220;mouse on&#8221; and &#8220;mouse off&#8221; are one image. I have been using sprites for years. It is a more tedious process than clicking Swap image on a DreamWeaver drop down menu, but it produces more accessible and more clean code. The most tedious part of creating CSS sprites for menu navigation is aligning the static (in-active) and hover (active) images. This script solves this problem by taking two images and merging them into one. I hope this increases your productivity and creates a more standards-compliant web.</p>
<p><span id="more-132"></span></p>
<p>There are <a href="http://spritegen.website-performance.org/">online CSS sprite generators</a> out there. My Photoshop script is not as remarkable as these 20 image sprites, but it’s much simpler, and you can assign a keyboard shortcut to it. Also, all my sites are designed in Illustrator which is a slightly different work flow than most. I find that Photoshop is an awful layout program.</p>
<p><a href="/blog/wp-content/uploads/2008/11/CSSsprite.jsx">Download CSSsprite.jsx</a></p>
<p><strong>Installation<br />
</strong></p>
<p>A JSX script is similar to a Photoshop plugin or an action, but are commands in Photoshop&#8217;s JavaScript based script interface. Download and copy this script within the Presets&gt;&gt;Scripts folder of your Photoshop application folder:</p>
<ul>
<li>OS-X: Macintosh HD/Applications/Adobe Photoshop CS3/Presets/Scripts/</li>
<li>Windows: Program Files/Photoshop CS/Presets/Scripts</li>
</ul>
<p>The Script will appear under File&gt;&gt;Scripts&gt;&gt;CSSsprite on the menu. You can assign a keyboard shortcut to this script. I prefer Control+Command+S. This shortcut fits well with the Save for Web shortcut, Command+Alt+Shift+S.</p>
<p><strong>Usage<br />
</strong></p>
<p>Open two files (and <em>only</em> two files) with the same height and width (if they are different sizes, the offset of your hover button state will not be half of the height). Select the non-hover background image, making it active&#8211;thus making the hover background image de-active. Run the script from the Scripts menu mentioned above. This will place the hover background image on the bottom of the sprite. This script does not support adding a third state to the sprite, but you could add a third <em>and</em> fourth state. To do this, first combine the third and fourth state, and then combine that image with the normal/hover sprite.</p>
<p><strong>For your information: States for this script</strong></p>
<p>The following is a list of Photoshop commands that are executed in this script:</p>
<ul>
<li>Convert Image Mode to RGB</li>
<li>Make horizontal guide at 100% of canvas height</li>
<li>Switch to inactive document (-1 in document array)</li>
<li>&#8220;Duplicate Layer. . .&#8221; Layer Menu via right click</li>
<li>Switch back to inactive document (+1 in document array)</li>
<li>Double canvas size vertically</li>
<li>Transform/Move top layer down (50% of canvas size)</li>
<li>Zoom In (twice)</li>
</ul>
<p><strong>Result<br />
</strong>This gives you a two-layered Photoshop file with second layer the CSS hover layer. Save the file as GIF, PNG, or JPEG using File&gt;&gt;Save for Web.</p>
<p><strong>Notes<br />
</strong>Adobe Photoshop JavaScript is the only cross-platform scripting language for Photoshop. <em>This script was only tested Photoshop CS3 Extended (Mac)</em>. Our firm does not use Photoshop for web layout&#8211;only for image manipulation. We use Illustrator for layout.</p>
<p>I would like to thank the creators of <a href="http://blogs.adobe.com/crawlspace/2006/05/installing_and_1.html">ScriptingListenerJS</a> and <a href="http://ps-scripts.cvs.sourceforge.net/viewvc/ps-scripts/xtools/xapps/">ActionToJavaScript</a>.</p>
<p>You may be interested in this <a href="http://arnaumarch.com/en/sprites.html">PhotoShop script that creates a sprite from all the images in a folder</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/photoshop-script-combine-two-images-css-hover-css-sprite/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

