<?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>Robo &#187; Messing around</title>
	<atom:link href="http://robinramael.com/category/messing-around/feed/" rel="self" type="application/rss+xml" />
	<link>http://robinramael.com</link>
	<description>is mostly harmless</description>
	<lastBuildDate>Tue, 13 Dec 2011 13:02:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='robinramael.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Robo &#187; Messing around</title>
		<link>http://robinramael.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://robinramael.com/osd.xml" title="Robo" />
	<atom:link rel='hub' href='http://robinramael.com/?pushpress=hub'/>
		<item>
		<title>Scripting the Go-compiler</title>
		<link>http://robinramael.com/2009/11/17/scripting-the-go-compiler/</link>
		<comments>http://robinramael.com/2009/11/17/scripting-the-go-compiler/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 23:40:10 +0000</pubDate>
		<dc:creator>Robin Ramael</dc:creator>
				<category><![CDATA[Messing around]]></category>
		<category><![CDATA[Shell Scripts]]></category>

		<guid isPermaLink="false">http://robinramael.com/?p=87</guid>
		<description><![CDATA[A good programmer is a lazy one, the cliche says. Maybe. An easily distracted one if nothing else. While trying out Google&#8217;s newly released compiled language Go, it bothered me that there was not a faster way to compile, link and execute the little programs I was writing. So, rather than to teach myself something [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=87&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A good programmer is a lazy one, the cliche says. Maybe.  An easily distracted one if nothing else. While trying out <a href="http://golang.org/">Google&#8217;s newly released compiled language Go</a>, it bothered me that there was not a faster way to compile, link and execute the little programs I was writing. So, rather than to teach myself something actually useful i wrote a script to do this all at once.</p>
<p>It is invoked by goc (best move it to /usr/bin first), the file to compile and then the arguments to give the program when it executes.</p>
<p>The -s flag will try and mute all compile and linking errors and the -m flag will rename the executable to whatever your .go file&#8217;s name was.</p>
<p>You can download it <a href="http://dl.getdropbox.com/u/244025/goc">here</a>. Sourcecode after the jump.</p>
<p><span id="more-87"></span></p>
<p><pre class="brush: bash;">

#!/bin/bash
# goc
# by Robin Ramael, no rights reserved whatsoever.
# compiles, links and executes small go-programs
# for larger programs use makefiles
# usage: goc [-s silent: tries not to output errors, only the compiled program's output]
#	 [-m rename the output program to the name of the .go file, without this flag the binary will be called 6.out]
#	 &lt;file to compile; link and execute&gt;
#	 &lt;arguments to give to the program on output&gt;
#argument mumbo-jumbo
silent=
move=
while getopts 'sm:' OPTION
do
case $OPTION in
s) silent=1
;;
m) move=1
;;
?) printf &quot;usage: goc [-s] [-m] file&quot;
esac
done
if [[ $silent ]]; then
shift 1
fi
if [[ $move ]]; then
shift 1
fi
tocomp=$1
shift 1
#$* are now the arguments we want to give our program
#/argument mumbo-jumbo
#clean up so we avoid weird errors
rm -f  6.out
# if the -s argument is given, don't output error
if [[ &quot;$silent&quot; ]]; then
6g $tocomp &gt;&gt; /dev/null
echo $tocomp | sed 's/\.go/\.6/' | xargs 6l &gt;&gt; /dev/null
else
6g $tocomp
echo $tocomp | sed 's/\.go/\.6/' | xargs 6l
fi
if [[ -e 6.out ]]; then
./6.out $*
if [[ &quot;$move&quot; ]]; then
cp 6.out `echo $tocomp | sed 's/\.go//'`
fi
fi
#clean up
echo $tocomp | sed 's/\.go/\.6/' | xargs rm
rm 6.out
</pre></p>
<p>Note that the go compiler will always overwrite or remove the 6.out file in the current directory, even if the -m flag is raised.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robinramael.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robinramael.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robinramael.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robinramael.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robinramael.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robinramael.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robinramael.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robinramael.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=87&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robinramael.com/2009/11/17/scripting-the-go-compiler/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa9576161bb251ce62ead1d545c203fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Robin Ramael</media:title>
		</media:content>
	</item>
		<item>
		<title>Dropbox in Snow Leopard (part deux revisited)</title>
		<link>http://robinramael.com/2009/10/09/dropbox-in-snow-leopard-part-deux-revisited/</link>
		<comments>http://robinramael.com/2009/10/09/dropbox-in-snow-leopard-part-deux-revisited/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 13:26:21 +0000</pubDate>
		<dc:creator>Robin Ramael</dc:creator>
				<category><![CDATA[Applescripts]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://robinramael.wordpress.com/?p=42</guid>
		<description><![CDATA[A few weeks ago I posted an applescript that could be used in an automator-service to automativally upload a file to your public dropbox and copy the URL to your clipboard. You can find that post here) The problem with that original applescript was that it only worked with filenames without spaces, which isn&#8217;t very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=42&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I posted an applescript that could be used in an automator-service to automativally upload a file to your public dropbox and copy the URL to your clipboard. You can find that post <a title="original post" href="http://robinramael.wordpress.com/2009/08/30/dropbox-in-snow-leopard-part-deux/">here</a>)</p>
<p>The problem with that original applescript was that it only worked with filenames without spaces, which isn&#8217;t very handy. After a long search on how to fix this in applescript i realized that I&#8217;m quite a dumbass for not just doing it in sed. I then added three lines to the original script and proceeded insulting myself in various languages.</p>
<p><span id="more-42"></span></p>
<p>The dropboxmover script 1.1:</p>
<p><pre class="brush: plain;">
(*
This applescript copies the selected file to the dropbox public folder and copies the URL to the clipboard and is intented for use within an automation. (created for Mac OSX 10.6 Services)
Created by Robin Ramael on 29th of august 2009
No rights reserved whatsoever

FILL IN YOUR DROPBOX USER ID BELOW!!!!
*)

on run {input, parameters}

	--FILL IN YOUR DROPBOX USER ID HERE
	set userid to 244025

	set dropboxpath to (path to home folder) &amp; &quot;Dropbox:Public:&quot; as string

	--Check if filesize isn't too big
	get size of (info for input)
	set filesize to result / 1000000
	if filesize is greater than 50 then
		say &quot;woaw&quot;
		display dialog &quot;This file is &quot; &amp; warningsize &amp; &quot; MB, are you sure you want to upload it to Dropbox?&quot; with icon caution
	end if

	--Copy file
	tell application &quot;Finder&quot;
		duplicate input to folder dropboxpath with replacing
		--Get the name of the file to put in clipboard later in the automation
		set filename to name of (info for input)
	end tell

	--make the filename URL suitable
	set filename to (do shell script &quot;echo \&quot;&quot; &amp; filename &amp; &quot;\&quot; | sed -e 's/\\ /%20/g'&quot;)
	set dURL to &quot;http://dl.getdropbox.com/u/&quot; &amp; userid &amp; &quot;/&quot; &amp; filename as string

	return dURL
end run
</pre></p>
<p>Thanks to <a href="http://monototo.wordpress.com/">monototo</a> from the comments for helping out</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robinramael.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robinramael.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robinramael.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robinramael.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robinramael.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robinramael.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robinramael.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robinramael.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=42&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robinramael.com/2009/10/09/dropbox-in-snow-leopard-part-deux-revisited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa9576161bb251ce62ead1d545c203fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Robin Ramael</media:title>
		</media:content>
	</item>
		<item>
		<title>Chromium Nightly</title>
		<link>http://robinramael.com/2009/08/30/chromium-nightly/</link>
		<comments>http://robinramael.com/2009/08/30/chromium-nightly/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 19:45:05 +0000</pubDate>
		<dc:creator>Robin Ramael</dc:creator>
				<category><![CDATA[Messing around]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://robinramael.wordpress.com/?p=16</guid>
		<description><![CDATA[Chromium Nightly will download the latest build for Chromium automatically every day at 6:30 PM. The developer build of Chrome for mac (Chromium) is coming around nicely. It isn&#8217;t the featureless beast it was just a few months ago and i&#8217;m using it as my primary browser now. This alongside Safari which keeps crashing and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=16&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="https://dl.getdropbox.com/u/244025/Chromium%20Nightly.zip"><img class="alignnone size-full wp-image-19" title="Chromium Nightly" src="http://robinramael.files.wordpress.com/2009/08/moon-256x2561.png?w=720" alt="Chromium Nightly"   /></a></p>
<p>Chromium Nightly will download the latest build for Chromium automatically every day at 6:30 PM.</p>
<p>The developer build of Chrome for mac (Chromium) is coming around nicely. It isn&#8217;t the featureless beast it was just a few months ago and i&#8217;m using it as my primary browser now. This alongside Safari which keeps crashing and hanging on me for no apparent reason, but Chromium lacks RSS support and isn&#8217;t too good with HD-flash video, so i&#8217;m stuck wih it for now.<span id="more-16"></span></p>
<p>A few weeks ago, TechCrunch published a script that would download the latest build if you ran it.  (original article <a title="TechCrunch's article" href="http://www.techcrunch.com/2009/08/16/our-mac-chromium-updater-stay-up-to-date-on-the-best-versions-of-chrome-for-mac/" target="_blank">here</a>) It was very handy and all that, but you had to run it yourself every day and I kept forgetting to do that.</p>
<p>Using this script I&#8217;ve built Chromium Nightly which will automatically donwload the latest build of Chromium at 6:30 PM everyday. It seems to work just  fine and dandy on Snow Leopard.</p>
<p>You can download Chromium Nightly <a href="http://dl.getdropbox.com/u/244025/Chromium%20Nightly.zip">here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robinramael.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robinramael.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robinramael.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robinramael.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robinramael.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robinramael.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robinramael.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robinramael.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=16&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robinramael.com/2009/08/30/chromium-nightly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa9576161bb251ce62ead1d545c203fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Robin Ramael</media:title>
		</media:content>

		<media:content url="http://robinramael.files.wordpress.com/2009/08/moon-256x2561.png" medium="image">
			<media:title type="html">Chromium Nightly</media:title>
		</media:content>
	</item>
		<item>
		<title>Dropbox in Snow Leopard (part deux)</title>
		<link>http://robinramael.com/2009/08/30/dropbox-in-snow-leopard-part-deux/</link>
		<comments>http://robinramael.com/2009/08/30/dropbox-in-snow-leopard-part-deux/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 07:53:48 +0000</pubDate>
		<dc:creator>Robin Ramael</dc:creator>
				<category><![CDATA[Applescripts]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[Automator]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://robinramael.wordpress.com/?p=9</guid>
		<description><![CDATA[You can do a lot of neat little things with the new automator services-template. In my last post I wrote about making a litle automation to replace a feature that wasn&#8217;t in dropbox in Snow Leopard, but you can go further. Why not make the service copy any selected file over to the dropbox public [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=9&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can do a lot of neat little things with the new automator services-template. In my last post I wrote about making a litle automation to replace a feature that wasn&#8217;t in dropbox in Snow Leopard, but you can go further. Why not make the service copy any selected file over to the dropbox public folder and then copy the public URL to the clipboard.</p>
<p>It&#8217;s basically the same automation as in part one, but the applescript does more:</p>
<p>(UPDATED)</p>
<p style="padding-left:30px;"><span id="more-9"></span>1. Open up automator again and choose the services template.</p>
<p style="padding-left:30px;">2. At &#8220;Service receives selected&#8221; choose &#8220;all files and folders&#8221; in &#8220;all programs&#8221; (you can choose the finder too, but i don&#8217;t see why &#8220;all programs&#8221; would be an issue).</p>
<p style="padding-left:30px;">3. The workflow goes: &#8211;&gt; execute applescript &#8211;&gt; copy to clipboard</p>
<p style="padding-left:30px;">4. In the applescript section you write:</p>
<p><pre class="brush: plain;">&lt;(*Created by Robin Ramael on 29th of august 2009
Under Creative Commons License Attribution-NonCommercial (http://creativecommons.org/licenses/by-nc/3.0/)

FILL IN YOUR DROPBOX USER ID BELOW!!!!
*)

on run {input, parameters}
 
 (*FILL IN YOUR DROPBOX USER ID HERE*)
 set userid to 244025
(*FILL IN MAXIMUM FILESIZE  (in mb) HERE*)
 set maximumfilesize to 50


  
 set dropboxpath to (path to home folder) &amp; &quot;Dropbox:Public:&quot; as string
 
 (*Check if filesize isn't too big*)
 get size of (info for input)
 set filesize to result / 1000000
if filesize is greater than maximumfilesize then
 say &quot;woaw&quot;
 display dialog &quot;This file is larger than 50 mb, are you sure you want to upload it to Dropbox?&quot; with icon caution
 end if
 
 (*Copy file*)
 tell application &quot;Finder&quot;
 duplicate input to folder dropboxpath with replacing
 end tell
 
 (*Get the name of the file to put in clipboard later in the automation*)
 tell application &quot;Finder&quot;
 get name of (info for input)
 set filename to result
 set dURL to &quot;http://dl.getdropbox.com/u/&quot; &amp; userid &amp; &quot;/&quot; &amp; filename as string
 end tell
 
return dURL
end run</pre></p>
<p>(Replace the &#8216;xxxxxx&#8217;by your dropbox user id. Remember, you can get this ID by going to any of your public files in the browser and looking at the URL. For example, if you have the URL &#8220;http://dl.getdropbox.com/u/123456/file.txt&#8221;, 123456 is your user ID.</p>
<p>You also might have to replace the &#8220;smart quotes&#8221; with normal quotes, i&#8217;d put in</p>
<pre></pre>
<p>tags but there is no support for them with applescript&#8230;)</p>
<p style="padding-left:90px;">
<p style="padding-left:30px;">5. Save as &#8220;Copy to Public Dropbox and copy URL&#8221;  and we&#8217;re done! You can now go to any file , right-click it and click  &#8221;Copy to Public Dropbox and copy URL&#8221; or whatever you named it and voila, the file is copied to your dropbox and the URL is copied to your clipboard.</p>
<p style="padding-left:30px;">The applescript also checks if the filesize isn&#8217;t too big (default is larger than 50 mb, but you can change that) to make sure you don&#8217;t accidentally start uploading a 4 GB file to you tiny, tiny dropbox.</p>
<p style="padding-left:30px;">UPDATE:  This currently only works with some filenames. Filenames with spaces or presumably backslasher are &#8216;not yet supported.&#8217;I&#8217;ll have to poke myself for version 1.01.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robinramael.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robinramael.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robinramael.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robinramael.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robinramael.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robinramael.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robinramael.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robinramael.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=9&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robinramael.com/2009/08/30/dropbox-in-snow-leopard-part-deux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa9576161bb251ce62ead1d545c203fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Robin Ramael</media:title>
		</media:content>
	</item>
		<item>
		<title>Dropbox in Snow Leopard (part one)</title>
		<link>http://robinramael.com/2009/08/30/dropbox-in-snow-leopard-part-one/</link>
		<comments>http://robinramael.com/2009/08/30/dropbox-in-snow-leopard-part-one/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 07:16:12 +0000</pubDate>
		<dc:creator>Robin Ramael</dc:creator>
				<category><![CDATA[Applescripts]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[Automator]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://robinramael.wordpress.com/?p=6</guid>
		<description><![CDATA[For some reason Dropbox doesn&#8217;t fully work in Mac OSX 10.6. You can upload files and whatnot, but one feature I really liked, isn&#8217;t there (yet). The feature that is still missing at this point is being able to copy the public URL of the file to the clipboard to send it through IM or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=6&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some reason Dropbox doesn&#8217;t fully work in Mac OSX 10.6. You can upload files and whatnot, but one feature I really liked, isn&#8217;t there (yet).</p>
<p>The feature that is still missing at this point is being able to copy the public URL of the file to the clipboard to send it through IM or in a forum, etc. Using automator&#8217;s new services-feature, you can easily make something like this on your own:</p>
<p>UPDATED: Doesn&#8217;t work on all filenames.</p>
<p>AND UPDATED AGAIN: Dropbox now fixed this issue, rendering my &#8216;hard work&#8217;pointless. You can get it <a href="http://forums.getdropbox.com/topic.php?id=11683">here</a>.</p>
<p style="padding-left:30px;"><span id="more-6"></span>1. Open up automator and choose the services template.</p>
<p style="padding-left:30px;">2. At &#8220;Service receives selected&#8221; choose &#8220;all files and folders&#8221; in &#8220;all programs&#8221; (you can choose the finder too, but i don&#8217;t see why &#8220;all programs&#8221; would be an issue).</p>
<p style="padding-left:30px;">3. The workflow goes: &#8211;&gt; execute applescript &#8211;&gt; copy to clipboard</p>
<p style="padding-left:30px;">4. In the applescript section you write:</p>
<p style="text-indent:-39.3px;font:normal normal normal 12px/normal Verdana;color:#2f9600;padding-left:60px;margin:0 0 0 39.2px;"><span style="color:#000000;"><strong>on</strong> </span><span style="color:#0000ff;"><strong>run</strong></span><span style="color:#000000;"> {</span>input<span style="color:#000000;">, </span>parameters<span style="color:#000000;">}</span></p>
<p style="text-indent:-78.6px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 78.5px;"><strong>set</strong> <span style="color:#2f9600;">userid</span> <strong>to</strong> xxxxxx</p>
<p style="text-indent:-78.6px;font:normal normal normal 12px/normal Verdana;min-height:15px;padding-left:60px;margin:0 0 0 78.5px;"><span style="white-space:pre;"><span style="white-space:normal;color:#5e6161;">&#8211;Get the name of the file to put in clipboard later in the automation</span></span></p>
<p style="text-indent:-78.6px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 78.5px;"><strong>tell</strong> <span style="color:#0000ff;"><em>application</em></span> &#8220;Finder&#8221;</p>
<p style="text-indent:-117.8px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 117.8px;"><strong>get</strong> <span style="color:#8d00df;">name</span> <strong>of</strong> (<span style="color:#0000c1;"><strong>info for</strong></span> <span style="color:#2f9600;">input</span>)</p>
<p style="text-indent:-117.8px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 117.8px;"><strong>set</strong> <span style="color:#2f9600;">filename</span> <strong>to</strong> <span style="color:#8d00df;">result</span></p>
<p style="text-indent:-117.8px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 117.8px;"><strong>set</strong> <span style="color:#2f9600;">dURL</span> <strong>to</strong> &#8220;http://dl.getdropbox.com/u/&#8221; &amp; <span style="color:#2f9600;">userid</span> &amp; &#8220;/&#8221; &amp; <span style="color:#2f9600;">filename</span> <strong>as</strong> <span style="color:#0000ff;"><em>string</em></span></p>
<p style="text-indent:-78.6px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 78.5px;"><strong>end</strong> <strong>tell</strong></p>
<p style="text-indent:-78.6px;font:normal normal normal 12px/normal Verdana;min-height:15px;padding-left:60px;margin:0 0 0 78.5px;"><span style="white-space:pre;"> </span></p>
<p style="text-indent:-78.6px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 78.5px;"><strong>return</strong> <span style="color:#2f9600;">dURL</span></p>
<p style="text-indent:-39.3px;font:normal normal normal 12px/normal Verdana;padding-left:60px;margin:0 0 0 39.2px;"><strong>end</strong> <span style="color:#0000ff;"><strong>run</strong></span></p>
<p style="padding-left:30px;">(Replace the &#8216;xxxxxx&#8217;by your dropbox user id. You can get this ID by going to any of your public files in the browser and looking at the URL. For example, if you have the URL &#8220;http://dl.getdropbox.com/u/123456/file.txt&#8221;, 123456 is your user ID.)</p>
<p style="padding-left:30px;">5. Save as &#8220;Copy public URL&#8221;  and we&#8217;re done! You can now go to any file (but it won&#8217;t have any effect unless you&#8217;re in the dropbox public folder), right-click it and click  &#8221;Copy public URL&#8221; or whatever you named it and voila!</p>
<p style="padding-left:30px;"><strong>UPDATE:  This currently only works with some filenames. Filenames with spaces or presumably backslasher are &#8216;not yet supported.&#8217;I&#8217;ll have to poke myself for version 1.01.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/robinramael.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/robinramael.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/robinramael.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/robinramael.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/robinramael.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/robinramael.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/robinramael.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/robinramael.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=robinramael.com&amp;blog=9238627&amp;post=6&amp;subd=robinramael&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://robinramael.com/2009/08/30/dropbox-in-snow-leopard-part-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/aa9576161bb251ce62ead1d545c203fa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Robin Ramael</media:title>
		</media:content>
	</item>
	</channel>
</rss>
