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


Click here to return to the 'Explaining the Finder's view options and toolbar visibility' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Explaining the Finder's view options and toolbar visibility
Authored by: Carbonide on Mar 09, '03 04:39:18AM

When trying the commands to set the DS_Store to writable I get a 'no terminating ";"' error although I 'm sure I typed the command exactly as shown.



[ Reply to This | # ]
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 | # ]
It looked OK in Preview. It's a SITE BUG!
Authored by: noworryz on Mar 09, '03 01:29:29PM

The problem is a site bug. The code looks OK when you preview it but when you post it, backslashes disappear!

I'll whine to robg.

[ Reply to This | # ]

It's a site feature!
Authored by: noworryz on Mar 09, '03 08:36:59PM

robg let me know that PRE tags (in angle brackets) aren't the way to insert code in a hint or comment. You have to use CODE tags in square brackets. Code tags in angle brackets are different: they just change the font.

I'm not sure why backslashes disappear in PRE-tagged sections, since the backslash is not an HTML special character; they just do. The site also interprets HTML character entities instead of passing them through.

[ Reply to This | # ]