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


Click here to return to the 'You've discovered a site problem!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You've discovered a site problem!
Authored by: noworryz on Mar 09, '03 01:23:41PM

There is supposed to be a backslash before the semicolon at the end of each line. I think Rob helpfully deleted the backslashes, which were in my original post (surrounded by PRE tags), maybe by putting them in CODE tags.

So here's the code again:

sudo find /Applications -type d -exec touch '{}/.DS_Store' \;
sudo find /Applications -name .DS_Store -exec chown yourname '{}' \;
sudo find /Applications -name .DS_Store -exec chmod 644 '{}' \;

And:

sudo find /Applications -exec /Developer/Tools/SetFile -a i '{}' \;
sudo find /Applications -name .DS_Store -delete

-- Glenn

[ Reply to This | # ]

You've discovered a site problem!
Authored by: rusto on Mar 09, '03 04:51:11PM
Perhaps a second backslash is needed to escape the first (if you don't see them here, well at least I tried!: sudo find /Applications -type d -exec touch '{}/.DS_Store' \; sudo find /Applications -name .DS_Store -exec chown yourname '{}' \; sudo find /Applications -name .DS_Store -exec chmod 644 '{}' \;

[ Reply to This | # ]
You've discovered a site problem!
Authored by: rusto on Mar 09, '03 04:55:00PM
Hehe, something happened to the line feeds that time. You get the idea though. Last try:

sudo find /Applications -type d -exec touch '{}/.DS_Store' \;
sudo find /Applications -name .DS_Store -exec chown yourname '{}' \;
sudo find /Applications -name .DS_Store -exec chmod 644 '{}' \;


[ Reply to This | # ]