找了很久没有很好答案:
官方给出的答案是基于共享网络协议,如smb://, afp://, 但mac 新系统已经严格控制共享文件权限,这些都不好用。
今天终于查到一个,就是用:file:///, 将路径贴在可以生成超链接的各种应用程序中,直接可以打开文件!
参考:
http://hints.macworld.com/article.php?story=20090313071515523
One way to share links to networked files
找了很久没有很好答案:
官方给出的答案是基于共享网络协议,如smb://, afp://, 但mac 新系统已经严格控制共享文件权限,这些都不好用。
今天终于查到一个,就是用:file:///, 将路径贴在可以生成超链接的各种应用程序中,直接可以打开文件!
参考:
http://hints.macworld.com/article.php?story=20090313071515523
Mmh, mixed results -- I did the following things:
A) to get the filepath like:
"/Volumes/VOLUMENAME/FOLDERNAME/FILENAME"
- AppleScript from "ctierney": works besides "Umlaute" are garbled
- AppleScript from "Spartacus": no need for a list of files
- drag'n'drop file to a TextMate document: works besides "Umlaute" are garbled
- drag'n'drop file to a Terminal window: works besides spaces get escaped
- Contextual Menu like "haralds" (FilePathToClipCMPlugin.plugin) or FileUtilsCM.plugin w/ "copy file path": works perfect
- drag'n'drop file to Spotlight window ("thegooch49" tip): works perfect
andcopy the previous copied filepath to a highlighted word via "Menu > Format > Link…" in TextEdit or Mail and add in front of the filepath "file://" -- this "linked" text is draggable to the finder and becomes a ".fileloc" file
B) or better:
"file:///Volumes/VOLUMENAME/FOLDERNAME/FILENAME"
C) or best:
"afp://BONJOURSERVERNAME.local/Volumes/VOLUMENAME/FOLDERNAME/FILENAME"
D) combine the spotlight or the Contextual Menu tip w/ TextExpander like: prepare a snippet like
"file://"
(I used "flx") -- or for the additional function to mount an unmounted volume:"afp://BONJOURSERVERNAME.local"
-- and put it together in Mail ("Add Link…") or TextEdit (see A))Thinking: I'm sure there is someone who can build an AppleScript -- maybe with a dialogue -- to make this even easier