Jump to content

_mk_

Member
  • Posts

    163
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by _mk_

  1. I'm trying to figure out how to tag emails. No success so far. I've tried both

     

    select email --> press ⌘-⌥-\ # nothing happened, beeping sound for failure.

     

    select email --> open aflred --> type .tag --> enter tag  # tag is applied on previously selected fie

     

     

    I can tag single file using

     

    select file --> press ⌘-⌥-\ --> manage tags --> add tag

     

     

    I cannot find how to do multiple files though.

     

    The hotkey for tagging mails is ⌥M

  2. 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.

  3. 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,... :(

  4. 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.

  5. 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... :)

  6. 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.

  7. 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:
    tag-fileaction.png
     
    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.
     
    tag.png

    tag-mail.png
     
    Keywords

    • .tagged [tag name] - Search files/folder with tag

    tagged.png

    • .taggedmail [tag name] - Search emails with tag

    taggedmail.png

    • .taglist [tag name] - Show list of all available tags

    taglist.png
     
    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
  8. 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...

  9. ...

     

    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?

×
×
  • Create New...