Ability to Grab a reference URL when clipping web page

do
dorich
Posts: 48
Joined: Tue Jul 11, 2006 5:40 pm
Platform: Mac
Location: Fremont, CA
Contact:

Tue Jul 22, 2014 10:18 pm Post

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.

User avatar
AmberV
Posts: 23324
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Mon Aug 04, 2014 9:50 pm Post

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.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

Ur
Ursula
Posts: 107
Joined: Mon Sep 18, 2006 7:52 am

Tue Aug 05, 2014 9:28 pm Post

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 1708 times


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

User avatar
AmberV
Posts: 23324
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Tue Aug 05, 2014 9:47 pm Post

Hmm, maybe it is my browser, which do you use?
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

Ur
Ursula
Posts: 107
Joined: Mon Sep 18, 2006 7:52 am

Tue Aug 05, 2014 10:58 pm Post

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.

do
dorich
Posts: 48
Joined: Tue Jul 11, 2006 5:40 pm
Platform: Mac
Location: Fremont, CA
Contact:

Thu Aug 14, 2014 5:03 pm Post

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.

User avatar
AmberV
Posts: 23324
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Thu Aug 14, 2014 7:00 pm Post

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.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

do
dorich
Posts: 48
Joined: Tue Jul 11, 2006 5:40 pm
Platform: Mac
Location: Fremont, CA
Contact:

Thu Aug 14, 2014 7:06 pm Post

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.

User avatar
AmberV
Posts: 23324
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Thu Aug 14, 2014 7:31 pm Post

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.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
nom
Posts: 1904
Joined: Sun Aug 31, 2008 12:02 am
Platform: Mac + iOS
Location: Melbourne, Australia
Contact:

Fri Aug 15, 2014 12:11 pm Post

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
Complete and utter NOMsense.
Image

jm
jmm
Posts: 16
Joined: Wed Jan 30, 2013 5:11 am
Platform: Mac

Wed Aug 26, 2015 3:48 am Post

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());

br
brett
Posts: 528
Joined: Tue Jul 11, 2006 3:17 am
Location: yet another Portlander

Wed Sep 16, 2015 2:38 am Post

Does this help?