Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!nic.MR.NET!shamash!tank!nucsrl!accuvax.nwu.edu!bob From: bob@accuvax.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: File and Folder Comments? Message-ID: <10050081@accuvax.nwu.edu> Date: 25 Feb 89 13:53:48 GMT References: <1263@husc6.harvard.edu> Organization: Northwestern U, Evanston IL, USA Lines: 28 > I'd like to programmatically get the comment information (if any) > that is displayed in the Get Info box for files and folders. Do any of the > HFS system calls (PBHGetFInfo, PBGetCatInfo) return this information as > part of their parameter blocks? I'd like to get the information, but I > don't want to hack the desktop file, since (a) it may not necessarily be > present, and (b) this also needs to work on AppleShare volumes. > Any information would be much appreciated. > --Rich No luck unless you want to play with the Desktop file. One of the 'finder' longwords returned by GetCatInfo is the ident of the resource in the desktop. (See the description of the FXInfo record on page IM IV-183). I don't know of any routine which will consistantly return the comment for all volumes. Note to Apple - this would be nice, especially if we could _set_ the comment as well. This would allow newly created files to have comments on them. > Rich Siegel > Staff Software Developer > THINK Technologies Division, Symantec Corp. > Internet: siegel@endor.harvard.edu > UUCP: ..harvard!endor!siegel > Phone: (617) 275-4800 x305 > ---------- Bob Hablutzel Wildwood Software BOB@NUACC.ACNS.NWU.EDU