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


Click here to return to the 'Set files' modification time from Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set files' modification time from Finder
Authored by: Hal Itosis on Dec 13, '09 09:20:45AM
@lincd0:
Even if this hint worked... how would it be better than opening a Terminal window, typing 'touch ', dragging the files to be modified into the window, and hitting the Return key?

Because, this hint adds a fat juicy extended attribte: i.e., a usro resource fork to the file...

com.apple.ResourceFork 1338

...thus adding an extra 1K (at least) to the size of every file we tweak. (need to use ls -l@ or xattr -l to see it).

That's why it's "better" than touch in Terminal. ;-)

-HI-

[ Reply to This | # ]

Set files' modification time from Finder
Authored by: mael on Dec 13, '09 01:36:33PM

This is ... umm ... absolutely wrong.

I don't know what you do, but 'touch' does *not* add *anything* to a file. Especially *NOT* extended attributes.
'touch' is a pure unix command. It couldn't care less for extended attributes and has not been extended by apple to cope with those.

Maybe you are running a virus scanner or anything else that does this?

Edited on Dec 13, '09 01:38:20PM by mael



[ Reply to This | # ]
Set files' modification time from Finder
Authored by: bauldrywc on Dec 13, '09 02:09:26PM

Umm… actually, it's right... ;)

Following the procedure using the 'Get-Info' box and 'Open-with' pop-up does add a 'usro' resource which can be shown by an xattr -l command. Of course, you're right about 'touch' not adding a resource fork.



[ Reply to This | # ]
Set files' modification time from Finder
Authored by: mael on Dec 13, '09 02:48:41PM

hmmm. okay. then I think I missed the irony.
As long as we agree on 'touch' being clean, I'm happy. :-)

Edited on Dec 13, '09 02:49:28PM by mael



[ Reply to This | # ]