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 Answers
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
- 554
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 ⌘.
- 121
-
I don't have "Make Hard Link In..." or "Make Link In...". Are you using a plugin for this? – Gavin Dec 01 '13 at 22:31
-
1It'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 01 '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 02 '14 at 11:03