Created
September 17, 2015 12:49
-
-
Save timpulver/3fdd2dd0732ef7de8de6 to your computer and use it in GitHub Desktop.
Read Mac OS X Finder file tags in Node.js
Hi @whyboris,
I mention the tag
dependency in line 5. But good that you could make it work for yourself.
π π so sorry I completely missed the comment -- I'm unsure how π€¦ ... thank you for the gist -- it helped me out π
This will break on a filename with spaces. Best to get rid of var cmd = cmdArr.join(" ")
and pass the argument array directly to execFile("tag", args, β¦)
instead
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script seems to require that
tag
, some command-line tool, likely this one, needs to be installed for this to work π€Here's a fix for
line 12
that will work:Note it's using
mdls
which seems to be native to Mac OS -- I found the solution here π