Updated scripts for stack, stacklink, and tagger (V4)

Script “stacklink”.

As it is mentioned in the earlier post, “stacklink” is kind of a DT-centric interpretation of Hook. DT has backlink only, and it doesn’t seem like the DT’s architecture is ready for 2-way linkage. So I make use of stack to create a virtual two-way link by placing related documents into each others’ stacks.

NOTES: Stack link is a bare-bone experimental script (I only spend very little time on this script in the last 10 months).

Example

I am reading a paper and there is a key citation mentioned. I activate the script.
I suggest using “d” as the prefix if you need to search for a document or use “o” if you have already opened the other document.

If I need to search for a document, the query string is the DT’s query string except that u need to enter a prefix and a space before entering the string.

The default setting in the script is to use fuzzy search. But wildcard is not supported. Select the item you want to create the link, and replicants will be created
The script only allows the creation of one two-way-link each time to prevent any major screw up that may result in the cleaning up of many replicants!

If the document you want to link is already open, you can use “o” and hit enter.

A list of all opened documents for u to select and link.
NOTE: a document can’t link with itself else DT will enter into an infinite loop. Don’t worry, the script won’t allow that even when the same document is in the list. BUT, just to play safe, make sure that u don’t accidentally choose the document itself to link.

The setup:

The only option is whether to use fuzzy search.

Custom scope: If you are like me, who put all literature in a single group, you can create a custom scope and give the group a prefix. The script will search in that custom group when the prefix is entered.

NOTE: This option is set to “false” in this public version, because the custom scope only supports one database (which is enough for my case).

-- (1) How to search for items to link
-- Standard search includes | d: DB | g: Select a Group | c: Current Group | o: Opened Documents |
-- use does not need to setup (1) if custom scope is not needed
property addCustomScope : false
property theItemSearchInput : ""
property useFuzzyForItemSearch : true
property theCustomScope : {"p"} -- example only, choose a prefix to the custom group
property theCustomNm : {"Papers"} -- example only, choose a name for diaplay in dialog box
property theCustomScopeUUID : {"82DB1186-ECFE-4D1A-9E1E-6079113C52A4"} -- example only, input the uuid of the custom group
-- End of (1)

The script

SLinkV1b4(Public)____Shift-Ctrl-Alt-L.scpt.zip (38.3 KB)