[X4U] Can one convert OS 9 comments to OS X comments?

Aaron macuser at aarons.fastmail.fm
Mon Dec 5 17:44:21 PST 2005


>From: "Kuestner, Bjoern" <Bjoern.Kuestner at drkw.com>
>Date: Mon, 5 Dec 2005 15:12:46 +0100
>
>I think comments are stored the same way in the old Mac OS and OS X. File comments are part of the HFS filesystem functionality, not the OS itself.

Classic Mac OS stores comments in an invisible file called Desktop DB at the top level of each volume's directory. See below for more on this.

I don't know yet where OS X stores comments. I do know that a file can have a Classic-mode comment and an OS X-mode comment that are different. The former show up in File Buddy 6.x in Classic mode and the latter in the OS X finder or in File Buddy 7.x in native mode. (Those happen to be the versions I've been using.)

>Note that even Tiger's so-called "HFS-aware" command-line tools (cp, mv, ...) will (from what I have read, never checked myself) remove the comment from a file. Not good, especially since these comments have gained new importance with Spotlight. Under Tiger cp, mv, ... will preserve the resource fork, which is a major step forward, but comments are not stored in the resource fork of a file nor in the data fork but in HFSs various catalog and directory thingies.

Again, see below.

>Generally it is now as it was before: The Finder comment field is just as practical as it is an unreliable place to store information.

I'd like to know more about how they're stored and handled in OS X versions before agreeing about their unreliability, but my experience with handling them in classic mode (see below) doesn't make me hopeful. I also want to check out what happens to them when one creates a disk image or burns a CD/DVD including commented files. I'm pretty sure comments were lost when you did this in Classic Mac OS.

Classic comments are lost when you do almost anything to the files in OS X except rename them or move them within the same volume. Also, when you perform those latter operations with File Buddy in Classic, the Desktop DB file is not modified. (It is modified when you, for example, add or change a comment!) This indicates to me that the Desktop DB maintains Classic comments for a file according to some file identifier other than its name or pathname, and that OS X also doesn't change that identifier when it renames the file or moves it within the same volume.

You can move and copy files using File Buddy in Classic mode -- as you can with the Finder in Classic Mac OS -- without losing Classic-mode comments. However, even renaming a file using File Buddy in Classic mode loses OS X comments!

I'm not aware, BTW, of any way of accessing the Classic Finder except by booting into OS 9.2.2 or earlier (on a machine that allows it). Is it possible to access the Finder in Classic Mode?

>Too bad, because it really is so handy. Apple is definitely dropping the ball on a good thing.

That's for sure!

>Bjorn

My original post:
>Date: Mon, 5 Dec 2005 05:24:10 -0800
>To: x4u at listserver.themacintoshguy.com
>From: Aaron <macuser at aarons.fastmail.fm>
>Subject: Can one convert OS 9 comments to OS X comments?
>
>Is there a utility or script of some sort to convert Classic comments to OS X comments?
>
>How, BTW, are OS X comments stored?
>
>If it matters, I'm referring to OS X Panther and later.
>
> - Aaron


More information about the X4U mailing list