Use selected text as title in Bookmarklet

Hi,

I tried to change the bookmarklet from:


javascript:window.location='x-devonthink://createWebArchive?title='+escape(document.title)+'&location='+escape(window.location);

to


javascript:window.location='x-devonthink://createWebArchive?title='+escape(window.getSelection())+'&location='+escape(window.location);

and I even tried:


javascript:window.location='x-devonthink://createWebArchive?title='+escape(document.getSelection())+'&location='+escape(window.location);

so that instead of using the website’s title it uses the selected text for the title in DEVONthink but unfortunately it isn’t working.

Have I done something wrong or do the bookmarklets don’t support this?

Thanks in advance

The bookmarklet to create web archives ignores the title parameter currently, this will change in v2 though.

So I’ll just have to be patient and wait…

Thanks for the fast reply.