I would like to have a simple keyboard command to “Remove Tag”. Even better, I’d like to commit the keyboard command to a Stream Deck button.
Any ideas on how to do this? Applescript, Keyboard Maestro, Better Touch Tool???
Thanks in advance.
Larry
I would like to have a simple keyboard command to “Remove Tag”. Even better, I’d like to commit the keyboard command to a Stream Deck button.
Any ideas on how to do this? Applescript, Keyboard Maestro, Better Touch Tool???
Thanks in advance.
Larry
That’s a bit too vague an inquiry.
Remove what tag and when?
@BLUEFROG is right; being a little more specific would be helpful.
I don’t know anything about Stream Deck, and I don’t know if removing all tags would work for what you want, but if you wanted to remove all the tags from an item, that’s a menu item applied to the selected file: Data > Tags > Remove All Tags. That could in turn be triggered by Keyboard Maestro macro: set up the hotkey you want, then add one action from Interface Control “Select or Show a Menu Item”, then configure it for Menu of Data, Submenu Tags, and Menu Item of “Remove All Tags”.
KM isn’t needed for this at all ![]()
Just assign a custom hotkey in System Settings > Keyboard > App Shortcuts…
To delete one specific tag from a document, you could use a hotkey to trigger an AppleScript. I quickly mocked up this script, which displays the tags of the selected document in a selectable list. Now you just need to add “delete the selected tag from the selected document”. (Sorry, ran out of time.)
tell application id "DNtp"
try
set thisSelection to the selection
set itsTags to tags of item 1 in thisSelection
set theChoice to (choose from list itsTags with prompt {"Select a tag to delete: "} default items "" OK button name "delete tag") as string
-- add code to delete selected tag
end try
end tell
I apologize for having composed such a terribly worded question. Let me try again.
Maybe a couple pictures would help.
I want to assign a keystroke to “remove selected tag”. I could then assign the keystroke to a Stream Deck button, which would make the curation of my files much, much faster than the current multiple mouse clicks.
Thank you for all your input; it is much appreciated.
Larry
Not sure if I understand correctly. You want to select something specific from a context menu? That seems a bit awkward to me… but since you mentioned BTT … how to do it is explained in the text.
Well as you figured there appear to be multiple ways to do this, although perhaps not exactly what you want. However you go, you’re still going to need to select the tag you want to remove. If it’s that you want to have the tag inspector showing and then select the tag then delete with a keyboard shortcut, you can do this with Keyboard Maestro after you select the tag and then the macro will invoke the context menu, searching for the “Remove Selected Tag”, and choosing that. Don’t know how reliable this is overtime, but here’s one that just searches for the “rem” of “remove” as that’s unique in the current context list.