Need Help with xattr
http://discussions.apple.com/message.jspa?messageID=11125212
Thanks for any help.
MacBook 2.0 GHz, Mac OS X (10.5.8)
MacBook 2.0 GHz, Mac OS X (10.5.8)
xattr -w com.apple.FinderInfo 32 /some/filered_menace wrote:
Using the -w option doesn't write the value?
xattr -w com.apple.FinderInfo 32 /some/file
[Errno 34] Result too large: '/some/file' (with "/some/file" substituted with the actual file name). (It turns out that the errno value 34 actually means "Result too large".) I was positioned in the /Applications directory. The file name is 16 characters long. It contains a space, which I escaped with a back-slash.BobHarris wrote:
GetFileInfo
SetFile
xattr -wx com.apple.FinderInfo '54 45 58 54 52 2A 63 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00' /some/text/file
BobHarris wrote:
Did you give GetFileInfo a try? You have to read the "man GetFileInfo" man page to decode the flag values (capital letter says attribute is set, lowercase says attribute is not set).
The following MacOSXHints forum posting may be helpful, expecially if you compare the com.apple.FinderInfo break downs posted against the contents of the "man GetFileInfo" man page.
< http://forums.macosxhints.com/showthread.php?t=97984 >
Need Help with xattr