Page 1 of 1

Ability to Grab a reference URL when clipping web page

Posted: Tue Jul 22, 2014 10:18 pm
by dorich
It would be handy if the clipping service could grab the URL from any web pages that are used for clippings.

A current similar implementation would be that used in Devonthink.
Using services you can clip a selection as a plain note and DTP will create a new note and attach the URL of the page from which the clipping was taken.

Re: Ability to Grab a reference URL when clipping web page

Posted: Mon Aug 04, 2014 9:50 pm
by AmberV
Can you confirm which DTP service you are referring to? I don't see where it is saving the URL from the text of the page you used a service from. I'm using the "DEVONthink Pro Office: Append Plain Note" service. I just get a .txt file with whatever text had been selected in my browser, no URL in the Inspector palette or elsewhere.

I'm not even sure how that would be possible, as we only get the raw text from the system.

Re: Ability to Grab a reference URL when clipping web page

Posted: Tue Aug 05, 2014 9:28 pm
by Ursula
AmberV wrote:I just get a .txt file with whatever text had been selected in my browser, no URL in the Inspector palette or elsewhere.


You should get the URL with either service, 'Take Plain Note', or 'Take Rich Note'.

DT Pro Take Plain Note.png
DT Pro Take Plain Note.png (109.88 KiB) Viewed 1715 times


DT Pro Take Rich Note.png
DT Pro Take Rich Note.png (125.37 KiB) Viewed 1715 times

Re: Ability to Grab a reference URL when clipping web page

Posted: Tue Aug 05, 2014 9:47 pm
by AmberV
Hmm, maybe it is my browser, which do you use?

Re: Ability to Grab a reference URL when clipping web page

Posted: Tue Aug 05, 2014 10:58 pm
by Ursula
Safari 7.0.5.

It's one of DT's most important features, in my opinion. I can't remember a former version without it.

Re: Ability to Grab a reference URL when clipping web page

Posted: Thu Aug 14, 2014 5:03 pm
by dorich
A simple workaround for capturing the URL is to make two captures, one of the URL and one of the text that you need.
Label the first capture as the URL, thus "Stone Age Link"
Label the second capture as the subject, thus "Stone Age History"
Make the second capture a child of the first capture. You could do vice versa but if you make several captures from the same page then the link becomes a convenient title/heading for the section.

Thus adding the URL capture as a Scrivener feature would save the second capture.

Re: Ability to Grab a reference URL when clipping web page

Posted: Thu Aug 14, 2014 7:00 pm
by AmberV
What I do is just drag the URL icon from the browser into the References pane for the thing that I snipped from the site. I prefer it off there since I can just double-click to load it, give it a descriptive name, or access the URL to copy and paste it elsewhere if I need it for something. This is also consistent with the behaviour you get when importing full pages to text files.

Re: Ability to Grab a reference URL when clipping web page

Posted: Thu Aug 14, 2014 7:06 pm
by dorich
Yep, good approach.

My suggested approach is based on the fact that I keep the browser and S. on different desktops and so I avoid dragging.

Ultimately though it would be better if the original capture by S. included the URL as with DTV.

Re: Ability to Grab a reference URL when clipping web page

Posted: Thu Aug 14, 2014 7:31 pm
by AmberV
Ultimately though it would be better if the original capture by S. included the URL as with DTV.


Hmm, well as I said before, we’re not sure how they are doing that. All we get from the service is the selected text, nothing about the source of it. They must have some neat trick.

Re: Ability to Grab a reference URL when clipping web page

Posted: Fri Aug 15, 2014 12:11 pm
by nom
AmberV wrote:
Ultimately though it would be better if the original capture by S. included the URL as with DTV.


Hmm, well as I said before, we’re not sure how they are doing that. All we get from the service is the selected text, nothing about the source of it. They must have some neat trick.


Things clips the URL as well, so not just DevonThink

Re: Ability to Grab a reference URL when clipping web page

Posted: Wed Aug 26, 2015 3:48 am
by jmm
Hi,

Because of the lack of this feature, instead of Scrivener's service, I use a bookmarklet for clipping text with url and date.
It involves a few more steps than the service would, but less than manual clipping. Once the dialog comes out, cmd+c should be pressed to copy the selected text.
Here is the code that should be placed in the address of the bookmark. Unfortunately, I can neither remember nor find where I got it, so I am unable to credit its generous creator right now.

Code: Select all

javascript:(function()%7Bclip%20=%20window.getSelection();%20url%20=%20location.href;%20var%20currentdate%20=%20new%20Date();%20var%20weekdayNames%20=%20new%20Array(%22Sunday%22,%20%22Monday%22,%20%22Tuesday%22,%20%22Wednesday%22,%20%22Thursday%22,%20%22Friday%22,%20%22Sat%22);%20var%20weekday%20=%20weekdayNames%5Bcurrentdate.getDay()%5D;%20var%20brackets%20=%20%22%5B%5B%22;%20%20var%20myDate%20=%20new%20Date();%20%20var%20year%20=%20myDate.getFullYear();%20var%20month%20=%20myDate.getMonth();%20if(month%20%3C=%209)%20%20%20%20%20month%20=%20'0'+month;%20var%20day=%20myDate.getDate();%20if(day%20%3C=%209)%20%20%20%20%20day%20=%20'0'+day;%20var%20prettyDate%20=%20year%20+'-'+%20month%20+'-'+%20day;%20var%20minutes%20=%20myDate.getMinutes();%20if(minutes%20%3C=%209)%20minutes%20=%20'0'%20+%20minutes;%20%20%20var%20hours%20=%20myDate.getHours();%20if(hours%20%3C=%209)%20hours%20=%20'0'%20+%20hours;%20%20%20theFinalString%20=%20clip%20+%20%22%20(%22%20+%20url%20+%20%22%20-%20%22%20+%20brackets%20+%20prettyDate%20+%20%22%5D%5D%20%22%20+%20weekday%20+%20%22,%20%22%20+%20hours%20+%20%22:%22%20+%20minutes%20+%20%22)%22;%20prompt('Copy%20text%20to%20clipboard',theFinalString);%7D());

Re: Ability to Grab a reference URL when clipping web page

Posted: Wed Sep 16, 2015 2:38 am
by brett
Does this help?