jallenkrueger / profuse

Automatically exported from code.google.com/p/profuse
0 stars 0 forks source link

Finder/Spotlight Comments #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
com.apple.metadata:kMDItemFinderComment: 69
000000: 62 70 6c 69 73 74 30 30  5f 10 19 54 68 69 73 20    bplist00_..This 
000010: 69 73 20 61 20 66 69 6e  64 65 72 20 63 6f 6d 6d    is a finder comm
000020: 65 6e 74 2e 08 00 00 00  00 00 00 01 01 00 00 00    ent.............
000030: 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00    ................
000040: 00 00 00 00 24                                      ....$     

If a file has a resource fork with an rComment, it could be converted to a 
Finder/Spotlight 
comment, as above.

Original issue reported on code.google.com by ksherl...@gmail.com on 8 Sep 2009 at 9:34

GoogleCodeExporter commented 9 years ago
http://www.opensource.apple.com/source/CF/CF-476.15/CFBinaryPList.c

Converted to xml, the above plist is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-
1.0.dtd">
<plist version="1.0">
<string>This is a finder comment.</string>
</plist>

Original comment by ksherl...@gmail.com on 8 Sep 2009 at 10:10