Is it possible to build a Smart Group which can select (and display) all webarchives, URLs etc in my database which were added so long ago (!) that they are now unreachable - and so should either be deleted or edited back into life, please?
I cannot immediately see search criteria for ‘URL’ that would allow that (e.g. is older than…) in the Smart Groups edit box.
No. What you need is an action that checks whether a given URL is reachable. But Smart Groups don’t perform actions. What you’re looking for is a Smart Rule.
There’s a Smart Rule script Check Links that’s shipped with DEVONthink. From help:
Check Links: Check if bookmarks are valid.
I never used it so don’t know what it does. Look at the script in DEVONthink’s “Smart Rules” folder
There’s no script under the Help menu; nor does my version (still on the trial: new to DT) have a Check Link in ~/Library/Application Scripts/com.devon-technologies.think3/Smart Rules.
But when I can find it, I’m sure it’ll help - once I know how to run it. Do I do that from Actions in DT’s toolbar, please?
Thanks again - I can see how to create a Smart Rule and how to run an External Script now.
The DT Help, ‘Smart Rule Scripts’ does indeed suggest - as you say, thanks - that ~/Library/Application Scripts/com.devon-technologies.think3/Smart Rules should contain a script named ‘Check Links’.
As I hope is clear from my screengrab, mine does not!
Do I have to put it there; if so, where do I get it?
Could it be missing because I’m still on the Trial version?
The script is in my Smart Rule folder because DEVONthink doesn’t remove existing scripts - but you downloaded DEVONthink after the script had been replaced by the Smart Rule action Check Links, i.e. you never got a DEVONthink version that included the script.
Completely understand the concept and syntax of Smart Rules etc. Thanks! Much more familiar with DT after a week’s solid work with it (And I do love it!)
I can now get the Smart Rule to work on imported URLs by setting the Rule’s predicates to ‘Check Bookmarks’.
But…
…most of my imported web locations are webarchives - in order to have the ‘original’ content always at hand to refer to. (Though am debating whether to switch to importing PDFs instead.
Anyone know of a way to script or set up a rule etc that actually looks at the URL associated with a webarchive and checks it, please?