File link and spaces in name of file

Ah … 那我们就另外想办法吧 … :–)

Jesse’s last note on this was, I believe, the one below, but it may refer to work in progress rather than the current build.

In the meanwhile you can already use url-encoded paths, in which the space is replaced by %20, for example:

"file:///Users/houthakker/Documents/Scanned%20Image%20160110000.pdf"

One way of getting a url-encoded path is to select one or more files in a Finder.app window, and copy encoded versions of their paths to the clipboard by running the following JavaScript for Automation script, either from Script Editor (Yosemite onwards) or from something like FastScripts or Keyboard Maestro.

(Note, incidentally that if you have any non Anglo characters in the file name, they will also be encoded numerically, so for example, the file selected here,

might have a clickable encoded path in TaskPaper which looked something like:

file:///Users/houthakker/Desktop/Screen%20shot%20%E4%B8%87%E4%BA%8B%E9%80%9A%202016-02-17%20at%2000.14.04.png

(function () {
    'use strict';

    var a = Application.currentApplication(),
        sa = (a.includeStandardAdditions = true, a),

        strPaths = Application("Finder")
        .selection()
        .map(function (x) {
            return x.url();
        })
        .join('\n');

        sa.setTheClipboardTo(strPaths);

        return strPaths;
})();