<?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>Thinking Digitally &#187; Scripts</title>
	<atom:link href="http://thinkingdigitally.com/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkingdigitally.com</link>
	<description>programming for the fun of it</description>
	<lastBuildDate>Mon, 15 Aug 2011 02:01:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Automate Updating Your Git Repositories</title>
		<link>http://thinkingdigitally.com/archive/automate-updating-your-git-repositories/</link>
		<comments>http://thinkingdigitally.com/archive/automate-updating-your-git-repositories/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 22:21:20 +0000</pubDate>
		<dc:creator>Rob Olson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://thinkingdigitally.com/archive/automate-updating-your-git-repositories/</guid>
		<description><![CDATA[I have a half dozen TextMate bundles that I am grabbing the latest versions from GitHub instead of from the main TextMate subversion repository. For a long time I have been updating each of the bundles&#8217; Git repositories by cd&#8217;ing into each directory and running git pull. Doing this over and over became silly and [...]]]></description>
			<content:encoded><![CDATA[<p>I have a half dozen TextMate bundles that I am grabbing the latest versions from GitHub instead of from the main TextMate subversion repository. For a long time I have been updating each of the bundles&#8217; Git repositories by cd&#8217;ing into each directory and running <code>git pull</code>. Doing this over and over became silly and I was annoyed from doing all that typing.</p>

<p>Today, I finally wrote a basic bash script that automates updating each of the repositories. Sometimes it is surprising how simple an automated solution turns out to be.</p>

<script src="http://gist.github.com/75456.js"></script>
]]></content:encoded>
			<wfw:commentRss>http://thinkingdigitally.com/archive/automate-updating-your-git-repositories/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Download all of Jonathan Coulton&#8217;s free songs with ease</title>
		<link>http://thinkingdigitally.com/archive/download-all-of-jonathan-coultons-free-songs-with-ease/</link>
		<comments>http://thinkingdigitally.com/archive/download-all-of-jonathan-coultons-free-songs-with-ease/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 21:04:10 +0000</pubDate>
		<dc:creator>Rob Olson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[jonathan coulton]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[shell script]]></category>

		<guid isPermaLink="false">http://thinkingdigitally.com/archive/download-all-of-jonathan-coultons-free-songs-with-ease/</guid>
		<description><![CDATA[Jonathan Coulton, the Programmer turned Musician/Internet Superstar is freaking sweet and has several of his songs freely downloadable on his website. However, if you want to download them all it takes a lot of clicking (roughly 100 clicks actually) so I compiled a nice shell script that grabs all 35 free songs using curl. Two of [...]]]></description>
			<content:encoded><![CDATA[<p>Jonathan Coulton, the Programmer turned Musician/Internet Superstar is freaking sweet and has several of his songs freely downloadable on <a href="http://www.jonathancoulton.com" title="Jonathan Coulton's official website">his website</a>. However, if you want to download them all it takes a lot of clicking (roughly 100 clicks actually) so I compiled a <a href="http://thinkingdigitally.com/wp-content/uploads/2007/12/jonathancoulton.sh">nice shell script</a> that grabs all 35 free songs using curl.</p>

<p>Two of my favorite Jonathan Coulton songs, Baby Got Back(Sir Mix-a-Lot cover) and Code Monkey are not free to download however at $1 a piece for a DRM free MP3 or FLAC file I will be happily purchasing them from his website as soon as I finish this entry. The other song he made that I really like is the <a href="http://orange.half-life2.com/portal.html">Portal</a> song which plays during the credits after you beat the game.</p>

<p>Anyways grab the <a href="http://gist.github.com/137183">script</a> and enjoy some free music. If you like the songs you can easily <a href="http://www.jonathancoulton.com/store/downloads">purchase the rest of his music</a> from his website on a individual song or album basis.</p>

<div class="resource-list"><dl>
<dt><a href="http://gist.github.com/raw/137183/ff82624c50705f559fe0753abe90235dd581f592/jonathancoulton.sh">
<img src="/images/icons/application_x-shellscript.png" alt="jonathancoulton.sh" />
Jonathan Coulton Downloader</a></dt>
<dd>Released on December 9, 2007.</dd>
</dl></div>
]]></content:encoded>
			<wfw:commentRss>http://thinkingdigitally.com/archive/download-all-of-jonathan-coultons-free-songs-with-ease/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Quick SCP from inside Finder with Applescript</title>
		<link>http://thinkingdigitally.com/archive/quick-scp-from-inside-finder-with-applescript/</link>
		<comments>http://thinkingdigitally.com/archive/quick-scp-from-inside-finder-with-applescript/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 03:15:51 +0000</pubDate>
		<dc:creator>Rob Olson</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[quicksilver]]></category>
		<category><![CDATA[scp]]></category>

		<guid isPermaLink="false">http://thinkingdigitally.com/?p=11</guid>
		<description><![CDATA[Because I own both a Macbook and a Linux desktop I frequently need to transfer files to my desktop for my laptop. This is usually a painless process of opening Terminal and typing an SCP command but I wrote a script to automate this process for me. I use the script by first selecting the [...]]]></description>
			<content:encoded><![CDATA[<p>Because I own both a Macbook and a Linux desktop I frequently need to transfer files to my desktop for my laptop.  This is usually a painless process of opening Terminal and typing an <a href="http://en.wikipedia.org/wiki/Secure_copy">SCP</a> command but I wrote a script to automate this process for me.</p>

<p>I use the script by first selecting the files I want to transfer and then invoke <a href="http://docs.blacktree.com/quicksilver/what_is_quicksilver">Quicksilver</a> run &#8220;quickscp&#8221;.  The script grabs the files I have selected in Finder and SCPes each one to the destination specified in the script. For this to work I first had to setup ssh keys on my desktop so scp can log in without prompting me for my password, this is essential for the transfer process to be seamless.</p>

<p>For non Quicksilver users I also created an Automator workflow which can be saved as a Finder plugin and then invoked by right clicking on the file -&gt; More -&gt; Automator -&gt; &#8216;name of plugin&#8217;.</p>

<p>Before using either script you have to change the destination variable to the ip address or hostname of the computer you want the files to be transfered to.</p>

<div class="resource-list"><dl>

<dt><a href="/wp-content/uploads/2007/12/quickscp.scpt">
<img src="/images/icons/text_plain.png" alt="quickscp.scpt" />
Quick SCP Applescript</a></dt>
<dd>For use with Quicksilver. Updated December 6, 2007</dd>

<dt><a href="/wp-content/uploads/2007/12/quickscpworkflow.zip">
<img src="/images/icons/application_x-compress.png" alt="quickscp.workflow" />
Quick SCP Automator Workflow</a></dt>
<dd>Updated December 6, 2007</dd>

</dl></div>
]]></content:encoded>
			<wfw:commentRss>http://thinkingdigitally.com/archive/quick-scp-from-inside-finder-with-applescript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change VLC cache preference with a Finder plugin using Automator</title>
		<link>http://thinkingdigitally.com/archive/change-vlc-cache-preference-with-a-finder-plugin-using-automator/</link>
		<comments>http://thinkingdigitally.com/archive/change-vlc-cache-preference-with-a-finder-plugin-using-automator/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 04:18:53 +0000</pubDate>
		<dc:creator>Rob Olson</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[finder plugin]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://thinkingdigitally.com/?p=6</guid>
		<description><![CDATA[Over on MacOSXHints.com there is a great tip showing how to use Automator to set VLC caching delays. Something like this is great (actually essential) for anyone who watches videos or listens to music over a network share (Samba, NFS, AFP). I do this almost daily and before it was annoying because the video would [...]]]></description>
			<content:encoded><![CDATA[<p>Over on MacOSXHints.com there is a great tip showing <a href="http://www.macosxhints.com/article.php?story=20071105205525319">how to use Automator to set VLC caching delays</a>.  Something like this is great (actually essential) for anyone who watches videos or listens to music over a network share (Samba, NFS, AFP). I do this almost daily and before it was annoying because the video would be very jaggy because VLC was not caching enough of the video ahead of time.  The solution to this was to change the following preference in VLC: Input / Codecs -&gt; Access Modules -&gt; File -&gt; (click Advanced) -&gt; Caching value in ms.  This is a huge hassle so nclark42 wrote an automator action that changed the preference for you (that is the workflow given on macosxhints).  To run that script you must first run either the network workflow or the local workflow depending on where your video is located and then open the video file which is fine but my roommate suggested that it would be nice if you could just open the file in finder and have the script set the correct preference for you.</p>

<p>And thus I cooked up this alternative Automator action. One is scripted in Ruby and the other is done in Applescript. They do the same thing I am just providing both is case anyone has a preference. Each script takes the following actions:</p>

<ol>
<li>Check is VLC is running</li>
<li>If VLC is running close it and sleep for 1 second</li>
<li>Check the path of the file, if it starts with &#8220;/Volumes&#8221; then change the caching preference to 5000 ms, otherwise set it to the default 300 ms.</li>
<li>Sleep for another second.</li>
<li>Launch VLC and play the video.</li>
</ol>

<p>According to MaxOSXHints, the pauses are necessary to allow VLC to write out to the vlcrc file before we make our changes. To use the workflow, open it Automator then select File -&gt; Save as Plugin. Make sure Finder plugin is selected and give it a name like &#8220;Open in VLC and change cache&#8221;. Finally open finder, right click on a video and select More -&gt; Automator -&gt; Open in VLC and change cache.</p>

<p>I wrote the script twice, once using Ruby and once using Applescript.Â  Both do exactly the same thing so just pick one and use it. I am making both available in case someone wants to look at them. I tested the scripts in OS X 10.5 but they should work with 10.4 as well.</p>

<div class="resource-list"><dl>

<dt><a href="/wp-content/uploads/2007/12/vlc-w-rubyworkflow.zip">
<img src="/images/icons/application_x-ruby.png" alt="VLC w/ Ruby.workflow" />
VLC Cache Modifier</a></dt>
<dd>Ruby version. See instructions above. Updated December 6, 2007</dd>

<dt><a href="/wp-content/uploads/2007/12/vlc-w-applescriptworkflow.zip">
<img src="/images/icons/text_plain.png" alt="VLC w/ Applescript.workflow" />
VLC Cache Modifier 2</a></dt>
<dd>Applescript version. See instructions above. Works exactly the same as the one above. Updated December 6, 2007</dd>

</dl></div>
]]></content:encoded>
			<wfw:commentRss>http://thinkingdigitally.com/archive/change-vlc-cache-preference-with-a-finder-plugin-using-automator/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

