OK, found the issue, had to use url-insert-entities-in-string instead of shell-quote-argument.

Thanks,

- Marcelo.

On Thu, Sep 6, 2012 at 11:47 PM, Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
Nick, it's a custom script... however, it looks like I was using the wrong format. Instead of escaping the space chars, I should uri-encode them it seems. I'll try that. Thanks!


On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:

> I have several links that use the file protocol to open files indexed in
> org entries. They work fine for entries that point to file whose filenames
> do *not* contain space, but for entries with space in them, it just fails
> silently. I.e:
>
>   [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]]
>
> I even escaped the filename using the (shell-quote-argument) function when
> indexing, but no luck.
>

This is a link to a directory. I grabbed it with C-c l and inserted it
with C-c C-l. It seems to work fine:

[[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron]

Nick