Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: Would rather ADD 'Where From' metadata TO files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Would rather ADD 'Where From' metadata TO files
Authored by: renaultssoftware on Dec 08, '10 05:41:15PM

How did you get xattr help? When I ask man for help with xattr, nothing good happens. I had to follow a tutorial to learn about -d.

---
http://groups.google.com/group/applescripters/
http://qgf.in/
http://www.kompilesoft.info/



[ Reply to This | # ]
Re: Would rather ADD 'Where From' metadata TO files
Authored by: barko192 on Dec 08, '10 06:45:57PM

xattr -h

usage: xattr [-l] [-r] [-v] [-x] file [file ...]
xattr -p [-l] [-r] [-v] [-x] attr_name file [file ...]
xattr -w [-r] [-v] [-x] attr_name attr_value file [file ...]
xattr -d [-r] [-v] attr_name file [file ...]

The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to the string attr_value.
The fourth form (-d) deletes the xattr attr_name.

options:
-h: print this help
-r: act recursively
-l: print long format (attr_name: attr_value and hex output has offsets and
ascii representation)
-v: also print filename (automatic with -r and with multiple files)
-x: attr_value is represented as a hex string for input and output



[ Reply to This | # ]