Dragging URLs to Research

I’d like to see the URL that I drag into Scrivener automatically assigned the Title of the page, instead of “Web page.” I’m doing a lot of research for the book I’m writing and it’s cumbersome to switch back and forth between Safari and Scrivener to name things.


This has come up a number of times and the answer is that I’m afraid it cannot be done. When a URL is dragged, only the URL itself is put on the pasteboard; it does not provide Scrivener with the title of the web page, so Scrivener has no way of knowing it. It is easy enough to add a title manually, although it does take an extra step.

All the best,

That’s interesting. I’m a Together http://reinventedsoftware.com/together/ user and importing URLs converts the file name to the URL so I guess I thought it was part of OS X.

Also, sorry for asking what I thought would be a redundant feature request. I tried searching for “Research Link” but was prevented from doing so because the words were too common!

No problem. Yes, other users have said that Together does it somehow, but I have no idea how. I’ve searched developer forums about this and everyone says it can’t be done! Unless there is some private drag type that Safari and other browsers post on the paste board other than the URL type that does provide this information… I don’t know. I’ll look into it further, though.

I don’t understand this? When I drag a URL from Safari into a Scrivener document, I get the web page title as a hyperlink. When I drag the same URL into the research folder, Scrivener loads the page, but it can’t retrieve the title? I don’t know much about Cocoa, but Google found this here.

If everything fails, you can always resort to Méthode Traditionelle: :wink:

curl -s -r 0-1000 http://www.literatureandlatte.com | grep -e "<title>"

Okay smart arse, give me your full name so I can put a credit to you in the About panel. :slight_smile: I had somehow missed this method in all my searches for how to do this. D’oh!

So, ahem, the next update now attempts to get the web page title for imported web pages. (Note, however, that it still will not be able to get the title for pages dragged directly into the References pane. Because the References pane doesn’t import the pages, it doesn’t load the whole page into memory which is what would be required to get the title - overkill for the references area as in most cases the wait for the page to load would be slower than typing in a title yourself.)



Ok, here’s some more of my smart arsery :wink: Is it really necessary to load the page? This
here looks as if the the title of the URL is on the pasteboard, or is this for something else? I mean, when I drag a URL from Safari onto the desktop, the title of the page becomes the filename of the .webloc file, so the title has to be on the pasteboard, right? :confused:

Is “Malte Rosenau” in the credits correct? :blush:

Yep :smiley:

You guys rock.