I am using the “Update Item Metadata” action in Shortcuts for iOS. My issue is specifically with the tag section of that action.
I have two separate issues. The first maybe something that Apple is responsible for.
Shortcuts UI doesn’t persist a previous choice.
When I select a variable containing a list of tags to update an item, the variable is shown in Shortcuts and the shortcut works as expected. However, if I come back to inspect that action later and select > to reveal the parameters, and then > in the the tag section, I would expect to see the same variable that I selected previously listed - but it is no longer visible. It would appear that there is no user set parameter (the tag list) although it is still there, just not visible. The shortcut still works but it is confusing.
Item showing in parent tag after shortcut update
I use nested tags with two levels (parent & child). For example let’s say that I have a parent tag: tags123 containing three child tags: tag1, tag2, and tag3. If I create a list containing three (parent, child) pairs ie [tags123, tag1, tags123, tag2, tags123, tag3] and use that, via a variable, to update the tags in Shortcuts, then back in DTTG the parent tag contains, not only tag1, tag2, tag3, but also the item. (The same thing happens if the three tags have different parents, the item is then in each parent tag). If I only put the child tags in the list, viz. [tag1, tag2, tag3] everything is as expected: the item appears only in the child tags, not the parent. This setting parent tags as well as child tags dates back to me not fully understanding nested tags but I believe this is a bug nonetheless. This does not happen when I do the same kind of thing in AppleScript.
If you use [tags123, tag1, tags123, tag2, tags123, tag3] as parents, then the item will be added to four parents: tags123, tag1, tag2, and tag3 (actually, DEVONthink To Go even tries to add tags123 three times but items can only be added to a tag once).
If you use [tag1, tag2, tag3] the item is added to exactly the three tags you intended. Through tag inheriting, the item will also list tags123 in its Info popover.
@eboehnisch - thanks for describing the behavior in DTTG, I would just note that the behavior is different on the Mac which is why I jumped to the conclusion that it might be a bug.
On the Mac, the item is only added to three parents tag1, tag2, tag3, not the parent tags123 whether you add just the child tags, or both the child and parent.
I have done all my processing on the Mac until recently and am now trying to move some processing to DTTG. In this case, it just surprised me but doesn’t affect any work so this post is just a FYI.
I am excited to use DTTG more in the future and am putting some effort into making this work. I have run into another issue relating to tag inheritance but will post it separately so as not to bury the story.
I’m not explaining myself very well, and I apologize for that.
I understand that the underlying data is the same on DT and DTTG. My only comment was that the UI presents that data differently in the two versions, which confused me. Especially because I was developing a tool and comparing results back and forth expecting any differences to be due to bugs in my tool.
… and again, no worries, just information for you from a user’s perspective using both apps - both of which I truly appreciate.