NYTimes glitch - Need help with a shortcut to save a formatted note from a website

Hi all - I have been happily saving web pages (in Devonthink tabs) as formatted notes, love it (some I save as pdf). I created a shortcut to “Formatted Note”, and it works for almost all websites, but in the New York Times the formatted note shows like the image I attach here, if via shortcut, and normally if via using the little gear menu.

What could be happening?


There’s plenty of JavaScript and nonsense going on with such sites. If you’re clipping to an HTML format, those things can be included.

Are you logged in to the site?

Thanks Jim! - yes, I’m logged in (Webkit asks me to log in each time :slight_smile:
What I can’t figure, is what is different from going to the menu and pulling down to “Formatted Note” vs a shortcut (assigned via FastScript) to what FastScript saw as “Download>_As Formatted Notes” in the Devonthink scripts - see attac


hed

Webkit asks me to log in each time

You’re likely deleting cookies on quit.

The Action button is not running the script. Is one working and the other not?

My understanding is the action menu (the gear icon) in the navigation bar acts on what is shown in the View/Edit pane. So for websites: what is already rendered in the internal browser.

Your shortcut triggers a script that (I’m pretty sure) opens a new/separate connection to download and convert the page in the background. (If you look at the activity monitor, you will see a progress indicator with “Downloading…”.) It uses the create formatted note from command.

If you’re asked to log in every time, you will not be logged in with the script. What are your cookie settings? I don’t know if it helps to make sure your login credentials are stored.

I think what you want is to assign a keyboard shortcut to the menu command Tools > Capture > Formatted Note. That is the same as the command found in the navigation bar action menu.

(I just tested with opening a web location in a new tab—with the script Tabs > Open Location…, so not an already existing item like a bookmark—and it works like expected. Instant caputure. No “Downloading…”.)

Thanks Jim and troej!
Troej, I understand what you’re saying (and Jim as well). My login ceredentials / cookies are stored for Firefox, but not the webkit - is it even possible to do that? It persists only within a session, but I can live with that.

If I use the shortcut, every time it is a new session (I mean, every download request is a new session). Using the little gear menu atop the view panel and saving as formatted note works fine as long as I didn’t quit DT. So how can I atttach a shortuct to THIS action - that is, a shortcut to a script to save the RENDERED view as a formatted note?

I edited that in seconds before you posted your reply. The same command is found in the menu under Tools > Capture > Formatted Note.
Well, it’s not a script – does it need to be? :wink:

For cookies, go to Settings > Web:

Change it to “Always” or “Only from sites you navigate to” and see if it helps. But even if your login credentials are kept, the result might still be better if you render the page in the internal browser and use the capture tool.

ha ha! nothing like someone who knows his stuff :slight_smile: But I had the radio button “Only from sites…” selected. I changed it to “Always” and will see what happens.

Yay!!!

It works Troej - I created a shortcut (using the app CustomShortcuts) to attach a key combo to “Formatted Note”. And it doesn’t ask for credentials (after the settings you suggested). Now only thing is to wait for the lazy loading in the webpages to complete before saving as formatted note.

Many thanks!

1 Like

Oh, sure! What I am chopped liver? :frowning:
haha - just kidding :wink:

1 Like

You are chopped liver, of course. Chopped liver is my favorite dish - chicken liver, with fried onions and finely chopped boiled eggs. My late mom’s recipe

2 Likes

You’re most welcome! :smiley: Glad we got it sorted out.


Another detail worth pointing out: The built in Download > As … scripts work on a selection. So if you’re just browsing around, it doesn’t work. If you open a tab with a web location that doesn’t exist in the item list, focus the View/Edit pane and trigger the script, it downloads the URL of whatever is selected in the item list.

1 Like