Script “openstack”.
If you do not use “openstack”, you can use the DT’s “Launch” function from the dropdown list of the cmd field “stacklink”, and the whole document stack will be opened in a new viewer window.
I think the supplement script “openscript” brings me more flexibility in opening the document-stack.
(1) The script can be activated when you are reading the literature in a document window, or when you select an item in the viewer window. When the document has no stack, nothing will happen when u run the script. When there a document-stack for the focal document, you will see this:
(2) You can pick one or many cards, and other items that you put into the stack via the script “stacklink”.
NOTE: you don’t need “stacklink” script to place items in the document-stack. But “stacklink” creates a virtual two-way linkage by replicating the related documents into each other’s stack - and will create a new stack for the document that doesn’t have a stack already.
(3) The selected cards/item will be opened in a cascaded manner.
(4) If no item is selected and u click OK, a new viewer window will open for the whole stack.
(5) If you are reading a card, you can also run the “openstack” and the source document will be opened. This is just a minor convenient for myself and probably is useless for the others.
Setup for the “openstack” script"
When a card is created, a card number will be created in the aliases of each card. e.g. “C-0009”. The way the cards/items is displayed in the list box, the position the cards/items/stack is opened, has to be specified in the script. You’ll also need to enter the resolution of the main screen in the script again.
NOTE: The format of “C-0009” is more for sorting purpose and isn’t a unique identifier that can be used for a wiki-style link. For my personal version, the first word in a filename is unique, and my script will add a unique identifier (e.g. P.633-C.0001) for a wiki-style link. I can’t add this function to the public version coz the method for literature identification is different to each user.
-- Sort items in stack by Aliases, else by name
property sortListByAliases : true -- if sortListByAliases=false sort the items in document stack by Aliases
-- How to display the cards and stack on the screen
set {screenWidth, screenHeight} to {3840, 2160} -- resolution of the main display
-- | 1/3 screen vertical : LV/CV/RV | 1/4 screen horizontal : LU/LD/RU/RD | 1/9 screen: UL/ML/LL/UM/MM/LM/UR/MR/LR |
set theStackPos to "LD" -- placement of viewer window if the whole stack is opened.
set theCardPos to "MM" -- placement of an item that is a card
set theDocPos to "RV" -- placement for an item that is a document
The script “openstack”