The options
property topTagGpLocation : "/Tags" -- the tag group that contains all tags
property theNewTagsViewLocation : "/Tags View" -- place to save newly created tags view
global showGroupTags -- ignore this line
set showGroupTags to true -- set to true for pTags sheet to include group tags, else set to false
property hourBetweenUpdate : 4
Only one option worths mentioning
Set showGroupTags to true for displaying group tags in the pTags sheet. It’s a technical reason that “global” variable method is used, given the script now serves the functions of both refreshing and creating new pTags sheet.
The pTags script is sharing the same two custom metadata fields with Tagger and AutoGroup script. The “identifier” name must be the same as below at the time of creation, but you can rename the fields any way u like afterwards.
One main script and one plist file.
The plist file is “Tagger.plist”. The file is shared with the Tagger script in here Tagger V2. Two unique features, half-useful, but still interesting (I think).
EDITED: 2019.09.04
V1.1 with (1) minor bug fixed on the script producing duplicated group tags occasionally (in the sheet only), and (2) perhaps a minor speed improvement.
EDITED: 2019.09.05
V1.2 add (1) function to refresh the pTags sheet; (2) makes you “feel” that it’s faster by asking all the options upfront.
I “set showGroupTags to false” by default, coz not everyone use group tags.
pTags V1.2.zip (491.3 KB)
Reminder:
(1) I haven’t verified the accuracy of the tags info in categories thoroughly. There are too many items to check. If you see any, let me know.
(2) The performance is improved but optimization is not easy. The speed of the script is depending on the amount of data to be retrieved in realtime (the more items under the main Tag, the longer it takes), and the speed of the computer. But the script won’t mess up with your data, just the sheet it is working on.
(3) I might check with the good guys from DT later to see if there are room for improving the speed by twisting the script a bit (mainly on a few lines of coding).
My mission is accomplished. I have utilised DT dictionary to create Stack, Tagger, pTags, and AutoGroup. DT is excellent at managing “items”, and I attempt to focus on “item” and “bits of an item”. I hope these scripts are interesting. They are to me.