Jump to content

Do you guys have this metadata tag? (kMDItemInvisibleFileType)


Recommended Posts

I've been working on a hidden files workflow recently (https://github.com/spooch56/alfred-hidden-files) and I came upon a very interesting metadata tag: kMDItemInvisibleFileType.  Unlike the kMDItemFSInvisible tag, it's not listed in apple's metadata reference, indicating that it was added by an outside app.  Based on a fairly limited survey of people, I've noticed that it only seems to appear on the computers with Alfred and so my best guess is that Alfred adds this metadata tag to allow md indexing of hidden files. Does anyone else know about this for certain? Do you guys all have this tag as well?

 

I'd really like to share my workflow but not if it only works for me.  Any information you guys have would be excellent.

Link to comment

Yes. I found the tag on several folders, including:

  • /usr
  • /bin
  • /Users/Tyler/Music/iTunes/sentinel

In total, the command:

mdfind -count -onlyin / "kMDItemInvisibleFileType== *"

returned 33 results on my system. Alfred has been serving my Mac since the v2 betas.

 

Current Version: Alfred 2 v2.1.1 (227) on OS X 10.9 (13A603)

Link to comment

Based on a fairly limited survey of people, I've noticed that it only seems to appear on the computers with Alfred and so my best guess is that Alfred adds this metadata tag to allow md indexing of hidden files. Does anyone else know about this for certain?

 

Alfred has a read-only view over your file metadata and doesn't add any metadata itself, so I'm not sure where the kMDItemInvisibleFileType flag is coming from, but it's not Alfred :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...