filetags
filetags copied to clipboard
How to add filetags to macOS Finder context menu
I'd like to know how filetags could be integrated into the context menu of the macOS Finder.
My notes so far:
- Automator:
- Service receives selected "files or folders" in "any application"
- "Run Shell Script"
- Shell: /bin/bash
- Pass input: "as arguments" (not: "to stdin")
- /Library/Frameworks/Python.framework/Versions/3.6/bin/filetags "$@"; read $foo
- On invocation:
The action "Run Shell Script" encountered an error: "stty: stdin isn't a terminal
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/filetags", line 11, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/filetags/__init__.py", line 2564, in main
tags_from_userinput = ask_for_tags(vocabulary, upto9_tags_for_shortcuts, tags_for_visual)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/filetags/__init__.py", line 1888, in ask_for_tags
entered_tags = input(colorama.Style.DIM + 'Tags: ' + colorama.Style.RESET_ALL).strip()
EOFError: EOF when reading a line"
- https://stackoverflow.com/questions/46129898/conflict-between-sys-stdin-and-input-eoferror-eof-when-reading-a-line
- [ ] manually set tty: : sys.stdin = open("/dev/tty") : answer = input("> ")