Last active
April 18, 2020 10:52
-
-
Save simonbs/05ea5b5b0f9b46d8fd7988c82dbfca05 to your computer and use it in GitHub Desktop.
Removes a tag from a file. To be used with Shortcuts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let tag = args.shortcutParameter | |
let fm = FileManager.iCloud() | |
let filePath = args.fileURLs[0] | |
fm.removeTag(filePath, tag) | |
let tags = fm.allTags(filePath) | |
let output = {"tags": tags} | |
Script.setShortcutOutput(output) | |
Script.complete() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment