_mk_
-
Posts
163 -
Joined
-
Last visited
-
Days Won
5
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by _mk_
-
-
The workflow was updated to version 1.4:
New Features:
- "Manage Tags" file actions now supports multiple files from Alfred's file buffer
- "Manage Tags" file actions now supports multiple files from Alfred's file buffer
-
After you have selected "Manage Tags" and hit ENTER, make sure to select "Add Tag" and hit ENTER. Then input the tag name and press ENTER again.
-
It works if you select the application in Alfred's file browser and invoke the "Manage Tags" file action. I'll have a look why it's not working with the Finder selection.
-
What the workflow does is:
/usr/bin/mdfind -0 "(kMDItemUserTags == '*')" |xargs -0 mdls -name kMDItemUserTags |grep '^ ' |cut -c5- |cut -d , -f 1 |sort -u
This queries all tagged files and then extracts the distinct tag names. I am a bit concerned about the performance if one has lots of tagged files. I hope that Apple will come up with an improved tagging support in the future.
-
The workflow was updated to version 3.1:
What's new:
- Fixed "Tasks done today" showing wrong tasks
- new feature "Search tasks" to find tasks by part of their names
-
Should work with Personal and Pro versions of DEVONthink. Which version are you using?
-
-
I'll have a look at it. Thanks for sharing the info.
-
I checked with fseventer and the only file that gets modified when I create a new / rename an existing tag is ~/Preferences/com.apple.finder.plist. That's the one I parse for the tag list. So either fseventer misses some "special" system files that get modified or Apple uses another fancy technique to gather all tags in Finder.
This really drives me nuts. On the one hand I am so happy that Apple finally jumped on the tagging train but on the other hand I am quite disappointed by how incomplete this new feature was delivered. There is no official CLI, no AppleScript support,...
-
I applaud your ingenuity in using the Finder prefs to find all the tags, but that doesn't list all the tags on the system. It's a subset.
This uses the view settings of the tags shown by "All Tags" in Finder. Not sure if there is a "critical mass" that stops Finder from storing the tags in its prefs. Haven't found any other way until now. Suggestions are welcome.
-
The workflow was updated to version 1.2:
New Features:
- new keyword ".taglist" to show all available tags
- new keyword ".taglist" to show all available tags
-
Thanks for the update, is there any way to make a Smart Folder in Mail.app based on tags?
No, unfortunately not. But you could create a Smart Folder in Finder or use spotlight:
tag:<tagname> kind:mail
You can avoid the tag: prefix but I usually keep it for better visualization.
-
The workflow was updated to version 1.1:
New Features:
- tag multiple files at once
- add multiple tags at once (separated by comma: tag1,tag2,tag3)
- tag email in Apple Mail
-
...Also, only ever so slightly OT: noticed this already?
German translations are almost always dubious if not misleading. I therefore switched my Mac's GUI language to English long time ago.
-
This is a nifty workflow – I noticed the utility a few days ago and have wondered if implementing a workflow based on it would make sense. This one is feature complete and well done, kudos: if you want tag management from the Alfred file browser, go for it, by all means.
However, and without wanting to denigrate the workflow, if all you need is a keyboard interface to tag management, I would suggest simply defining a hotkey for the Tags … command in System Preferences (hat tip to Brett Terpstra for the idea). It’s lightweight and integrated, and will offer autocomplete suggestions among other things.
Also, the workflow search is for user tags only – if you want and / or need to also search application specific tags like those set by Delicious Library, Evernote and others (aka Spotlight keywords – when Apple fixes CoreData Spotlight importing on Mavericks, that is), you might want to use a workflow based on an Alfred file filter (like my Tagg’d – sorry for the plug, really). The speed advantage James Berry’s utility claims over mdfind is entirely lost when using a workflow.
Again, kudos for the workflow. Please consider the above a set of differentiating footnotes, not a fundamental critique.
I do not treat your feedback as criticism ... don't worry.
If one uses Finder to tag files, Brett's hotkey tip may be the best solution. But if one (like me) uses Alfred for most of the stuff, the workflow should come in handy. I also have a few more features in mind to make it even more useful.
I also use a File Filter to display tagged files instead of the cli utility. I just omitted OpenMeta tags, as they are already very well covered by your workflow. I usually do not like to reinvent the wheel...
-
Hey _mk_,
This is a great idea, however I cannot seem to be able to tag any files or folders. I can search for tags just fine, but whenever I try to tag a file, a notification comes up saying: "terminating app due to uncaught exception...".
Make sure to invoke the workflow either from Alfred file browser or with a hotkey to grab the Finder selection. I'll have to add some error handling in the next version.
-
Mavericks Tags - File and Email Tagging with Alfred 2
Features- Show tags of a file/folder or email
- Add/Remove tags of a file/folder or email
- Search files/folders or emails with a specific tag
- Show list of available tags
Installation
Download and import into Alfred 2.
Usage
File Action
The Mavericks Tags workflow is available as Alfred File Action:
Hotkeys- ⌃⌥T - Show tags of selected file in Finder
- ⌃⌥M - Show tags of selected email in Apple Mail
Select "Add Tag" and ENTER a tag name to add it as new tag to the file/folder/email or select one of the existing tags and press ENTER to remove the selected tag from the file/folder/email.
Keywords- .tagged [tag name] - Search files/folder with tag
- .taggedmail [tag name] - Search emails with tag
- .taglist [tag name] - Show list of all available tags
Credits
Credit for the included command line utility go to jdberry.
The icons are from the Windows8/Metro Icon Pack by Visual Pharm.
Changes- 1.4 [2014-03-01]
- "Manage Tags" file action now supports multiple file from Alfred's file buffer
- 1.3 [2013-12-16]
- ".taglist" command now uses mdfind to query all tags instead of the unreliable Finder plist
- 1.2 [2013-12-10]
- new keyword ".taglist" to show list of all available tags
- renamed ".mtagged" keyword to ".taggedmail"
- 1.1 [2013-11-25]
- support for tagging emails
- chnaged icons
-
Not that I also have access to the beta I can have a look at a fuzzy search feature for the workflow.
-
See the other topic for the answer...
-
I have set "Apps Matching" in Advanced Prefs to "Full fuzzy match". Firefox shows up as expected when searching for "ff"
-
It is not, I tested it before posting that. If you used something like xargs -I {} <script> {}, then it would do it one by one, and by doing the similar xargs -J {} <script> {}, it would act on them in one go. For a short list of files, its behaviour (at least on OSX) seems to be similar to the -J option, when none is specified.
I tested it by using the CLI trash command on several files at once — the Finder acts differently when sending multiple files at once to the trash, or doing it one by one (in this case, you hear the trash sound multiple times, and you need to to ⌘+Z once for each file, to get them back).
The man page is quite strange on these two switches...
-
The "Selection in OS X" hotkey results in a tab delimitted string containing all selected files with their full path. Have you tried to use the AppleScript with assigning {query} to a variable?
set tmpVar to "{query}" return tmpVar
-
Tried both...refreshed database number of times.
Could you please try to run the following command in terminal:
/usr/bin/mdfind "kMDItemContentType == 'com.devon-technologies.metadata.think' || kMDItemContentType == 'com.devon-technologies.metadata.thinkpro'"
Do you get any results?
-
...
On a side issue and you might know the answer to this as I think we might have used images when the DEVON function was being built is do you know what types of hosted images are supported by Alfred. My website tends to like png but not JPEG. The reason I ask is when I bought a remote logmein service they gave me access to their system called Cubby with a pile of bandwidth. Its a Sugarsync/Dropbox type service I've never heard of but it works well. However, I thought I wonder if I can take an image from one of their URL's as post it here and although the image will display fine in the Alfred forum when you go to post it Alfred says it doesn't support the extension. Now that might be either the extension or what the system is trying to do when the extension is activated. Like I said, I know nothing of this system except they gave it to me for free with all this bandwidth and I'd never say no to free and more bandwidth .
Have you tried to use .jpg instead of .jpeg?
Mavericks Tags - File and Email Tagging with Alfred 2 (updated to v1.4)
in Share your Workflows
Posted
The hotkey for tagging mails is ⌃⌥M