As described in another topic, i want to remove tag frames with a certain content. I am setting these unavailable tag frames to "n/a". Until now, i used an replace tag action like this:
Replace With: ""
to empty (and thus remove) all fields marked as unavailabe. Looking back, I'm not sure if this ever worked. After applying my action, the tag frames are still in the file, just with empty content, ie. they are not removed. So, it seems that the code that removes empty fields is not triggered when emptying a field from an action.
I guess, it is tied to UI "Save Tag" functionality. Manually invoking the extended tag dialog and saving the tags gives me the desired result, the empty tag frames are actually removed from the file.
How can i conditionally delete all tag frames with a specific fixed string from within an action without further user interaction?