[MacTUG] setting a file's colour with UNIX?

Dani Roloson daroloso at mfcf.math.uwaterloo.ca
Wed May 19 12:24:25 EDT 2010


> mdls shows it to be the kMDItemFSLabel attribute but how do I change it?

I tried:

osascript<<END
tell application "Finder"
set label index of alias "Scratch: WARNING.txt" to 2
end tell
END

works on my 10.6.3 but the other 10.6.3 gives:

24:79: execution error: Finder got an error: Network file permission error. (-5000)

Dani
MFCF


More information about the MacTUG mailing list