符号链接应该没问题,但finder别名通常不起作用,因为大多数shell实用程序将它们视为小数据文件,不知道如何解释它们。一个解决方案是添加
运行applescript
在输入中查找别名并改用原始项的操作,例如:
-
已选择服务接收
文件或文件夹
在里面
任何申请
-
运行applescript
:
on run {input, parameters}
set output to {} -- this will be a list of the output items
tell application "Finder" to repeat with anItem in the input
if anItem's kind is "Alias" then
set the end of output to POSIX path of (original item of anItem as alias)
else
set the end of output to POSIX path of anItem
end if
end repeat
return output
end run
-
运行shell脚本
等