<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Tewha.net</title>
    <link>https://tewha.net/tags/finder/</link>
    <description>Recent content on Tewha.net</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 28 Jul 2012 14:00:00 +0000</lastBuildDate>
    <atom:link href="https://tewha.net/tags/finder/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Make a symbolic link from Finder</title>
      <link>https://tewha.net/2012/07/make-a-symbolic-link-from-finder/</link>
      <pubDate>Sat, 28 Jul 2012 14:00:00 +0000</pubDate>
      <guid>https://tewha.net/2012/07/make-a-symbolic-link-from-finder/</guid>
      <description>&lt;p&gt;In a previous entry, I explained &lt;a href=&#34;https://tewha.net/2012/07/how-to-sync-xcode-4s-key-bindings-and-code-snippets/&#34;&gt;How to Sync Xcode’s Settings&lt;/a&gt; via &lt;a href=&#34;http://db.tt/ht6NoXF8&#34;&gt;Dropbox&lt;/a&gt;. This involves creating symlinks in Terminal, and cleverly moving files about.&lt;/p&gt;
&lt;p&gt;You can’t create symlinks in Finder with what Apple provides you, but you &lt;strong&gt;can&lt;/strong&gt; create an Automator workflow to do so easily.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In a previous entry, I explained <a href="/2012/07/how-to-sync-xcode-4s-key-bindings-and-code-snippets/">How to Sync Xcode’s Settings</a> via <a href="http://db.tt/ht6NoXF8">Dropbox</a>. This involves creating symlinks in Terminal, and cleverly moving files about.</p>
<p>You can’t create symlinks in Finder with what Apple provides you, but you <strong>can</strong> create an Automator workflow to do so easily.</p>
<ol>
<li>Create a new service in Automator.</li>
<li>Select: Service receives <strong>selected files or folders</strong> in <strong>any application</strong>.</li>
<li>Drag a Run Shell Script action.</li>
<li>Shell: <strong>/bin/bash</strong> (Even if you’re using another shell as your default shell, this script is for bash.)</li>
<li>Pass input: <strong>as arguments</strong>.</li>
<li>Use this script:</li>
</ol>






<pre tabindex="0"><code>while [ $# -ne 0 ]; do
     ln -s &#34;$1&#34; &#34;$1 symlink&#34;
     shift
 done</code></pre>
<ol start="7">
<li>The result should look like this:<br>
<img src="/images/Make-Symlink-Workflow.png" alt="Dropbox Workflow"></li>
</ol>
<p>Alternately, you can <a href="http://dl.dropbox.com/u/1606770/Goodies/Make%20SymLink.workflow.zip">download my finished service</a> from Dropbox. It should be stored in <strong>~/Library/Services</strong>.</p>
<p>You should now have a Make SymLink command when you right- or control-click a file or folder in the Finder:</p>
<p><img src="/images/Make-Symlink-Menu.png" alt="Make SymLink menu command"></p>
<p>You can even add a keyboard shortcut for it in System Preferences:</p>
<p><img src="/images/Make-Symlink-Shortcut.png" alt="Services Shortcut Key"></p>
<p><em>Remember:</em> A symlink does not follow the original file if the original file moves on your hard drive.</p>]]></content:encoded>
    </item>
  </channel>
</rss>
