0

Quicksilver has a "Make Alias in..." action but this creates a hard link. Is there any way, including plugins, to create a symbolic link?

2

Best is to use an automator (service) you can call with QuickSilver…

The service receives "files or folder" in "Finder.app" You then add a "Run AppleScript" action with the following code (that you might want to tweak a little) :

    on run {input, parameters}

    tell application "Finder"
        repeat with i in input
            if class of i is not folder then
                set p to POSIX path of ((container of i) as text)
            else
                set p to POSIX path of (i as text)
            end if
            if p is equal to "/" OR p is equal to "/Volumes/" then
                set p to POSIX path of (path to desktop folder) & (name of i as text)
            else
                set p to (p & (name of i as text) & "_SymLink")
            end if
            set i to POSIX path of (i as text)
-- to debug :
--          display dialog "ln -s '" & i & "' '" & p & "'"
            do shell script "ln -s '" & i & "' '" & p & "'"
        end repeat
    end tell

    return true
end run
1

It's in the Core Support plugin, but disabled by default — it's pretty "low-level" stuff. You should check your Actions preferences, sort the list by plugin, select Core Support and they should be there.

Edit: Added my comment as it was a better answer ;-).

How you did it should have worked — I've tried it just now and it works as expected (though you might check that both actions are enabled in the Actions preference since they are disabled by default).

I think you might have held ⌘ while executing, because "Make Hard Link In..." is set as the alternate action for "Make Link In...", and alternate actions where pretty "ghostly" a few versions ago — now you can see them as soon as you press ⌘.

3
  • I don't have "Make Hard Link In..." or "Make Link In...". Are you using a plugin for this? – Gavin Dec 1 '13 at 22:31
  • 1
    It's in the Core Support plugin, but disabled by default — it's pretty "low-level" stuff. You should check your Actions preferences, sort the list by plugin, select Core Support and they should be there. – tiennou Dec 1 '13 at 23:16
  • The Core Support plugin is the answer. If you'll post this as an answer, I'll select it. Thanks! – Gavin Mar 2 '14 at 11:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .