• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

How do you delete all Get Info comments on a volume? Error -412

Phipli

Well-known member
I thought that rebuilding the desktop results in all file comments being lost?
Only in System 7.1 and older. Later Systems do "preserving comments..." At the start of the process if you watch the dialogue box.

Can't boot the 7200 in 7.1.
 

joshc

Well-known member
Attach the disk to something running 7.1, rebuild desktop, then put it back in the 7200? 🤔
 

Phipli

Well-known member
For now I'm moving a large collection of files into a disk image, but I still would be happy to know a solution that doesn't require me to write a very slow Applescript.
 

MrFahrenheit

Well-known member
Is that where they are stored?
Comments were stored in the hidden desktop files prior to Mac OS 8 and I’m sure Apple continued that trend after. I tried to search where the comments are stored and google doesn’t give me much info.

But that is why rebuilding the desktop on System 6 or System 7 disks made comments vanish - because they were stored in the desktop file(s).
 

Phipli

Well-known member
Am I right in thinking that you'll also lose any custom icons if you do that?
No, they're stored in an invisible file in the folder I think... the ones for folders certainly are, I assume something similar is done for the files.
 

cheesestraws

Well-known member
No, they're stored in an invisible file in the folder I think... the ones for folders certainly are, I assume something similar is done for the files.

You are right for folders. The hidden file is just called "Icon" IIRC. Custom icons for files are stored in the file's resource fork with a bit in the file's finder metadata set to indicate it has a custom icon. This is a reused flag from older systems that doesn't have any meaning in System 7. The same format is used for the invisible "Icon" file in folders.

Am I right in thinking that you'll also lose any custom icons if you do that?

I think you may be thinking here of the desktop file/database's role as an icon cache. It isn't the canonical source for icons, but it does cache them. But deleting the cache doesn't lose the icons unless you have done something highly naughty to the desktop DB.
 

lobust

Well-known member
You are right for folders. The hidden file is just called "Icon" IIRC. Custom icons for files are stored in the file's resource fork with a bit in the file's finder metadata set to indicate it has a custom icon. This is a reused flag from older systems that doesn't have any meaning in System 7. The same format is used for the invisible "Icon" file in folders.



I think you may be thinking here of the desktop file/database's role as an icon cache. It isn't the canonical source for icons, but it does cache them. But deleting the cache doesn't lose the icons unless you have done something highly naughty to the desktop DB.

Yes, that's all ringing bells! Long time since I've thought about any of this :D
 
Top