Here is a function I use to write Finder Comments to a file. They show up in Spotlight, but not in the Get Info box...

def writexattrs(F,TagList):
    import subprocess
    """ writexattrs(F,TagList):
    Writes the list of tags to xattr field of file named F
    """
    plistFront = '&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;&lt;plist version="1.0"&gt;&lt;array&gt;'
    plistEnd = '&lt;/array&gt;&lt;/plist&gt;'
    plistTagString = ''
    for Tag in TagList:
        plistTagString = plistTagString + '&lt;string&gt;{}&lt;/string&gt;'.format(Tag)
    TagText = plistFront + plistTagString + plistEnd

    WhichAttribute = "com.apple.metadata:kMDItemFinderComment"
    # Other attributes you might want to try: ["kOMUserTags","kMDItemOMUserTags","_kMDItemUserTags","kMDItemkeywords"]
    XattrCommand = 'xattr -w {0} \'{1}\' "{2}"'.format(WhichAttribute,TagText.encode("utf8"),F)
    # optional, print command format to check:
    # print XattrCommand
    ProcString = subprocess.check_output(XattrCommand, stderr=subprocess.STDOUT,shell=True) 
    return ProcString


How can I set Spotlight metadata to files?
at the moment I am developing a map editor on a  web.

After researching at the internet about map clients, I decided to use OpenLayers3 client because it is very simple an has all the tools i need for my project.

So, my question is:

 - It is possible to connect OpenLayers3 Client with QGIS Server?

