lulue@manta.NOSC.MIL (Dan Lulue ) (07/04/89)
The "Get Info" item reports a file's name, kind, size, path, lock status, its creation and modification dates, the version number, and suggested and allocated memory assignments. There is also a text field that the user can type information into. It looks like the file information parameter block contains all of the fields reported in the Get Info window except for the text field. I notice that when the text is touched, the modified date of the file changes, indicating that the editable text is stored in the file, probably in a resource. Is this right? If so, which resource? I want to get this information along with the other file attributes from within a program. Thanks, Dan. lulue@nosc.mil
milne@ics.uci.edu (Alastair Milne) (07/04/89)
lulue@manta.NOSC.MIL (Dan Lulue ) writes: >The "Get Info" item reports [list of things.] There >is also a text field that the user can type information into. >It looks like the file information parameter block contains all of the >fields reported in the Get Info window except for the text field. I >notice that when the text is touched, the modified date of the file >changes, indicating that the editable text is stored in the file, >probably in a resource. Is this right? Actually, the text is stored in the desktop file, in a FCMT resource. I hadn't noticed that changing it changed the file's modification date. Are you sure you didn't change something else at the same time? Of course, I may just not have noticed. It's funny: just before I found out about this feature, I was thinking that what directories in most OS's really need, but don't have, is the ability to tack comments onto an entry. A READ-ME file doesn't really do it. Now if we could only have the option of displaying the FCMT along with other info in the folder window. >I want >to get this information along with the other file attributes from within >a program. I'd like to be able to get it too -- not the least to save the comments, which I find valuable, between reconstructions of the desktop file. However, my understanding is that Apple at present recommends against assuming the presence of FCMT's in desktop. Perhaps they are planning to use a different method in an upcoming version. In any case, I don't know how to associate the particular FCMT's resource number with anything else belonging to its file. If it's in Inside Mac, I haven't found it yet. Alastair Milne
alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg) (07/04/89)
It appears that System 7.0 will support access to the Comment Info. The Desktop Manager will have a call to retrieve it, as well as calls to retrieve the icons. ------------------------------------------------------------------------------- - Alexander M. Rosenberg - INTERNET: alibaba@ucscb.ucsc.edu - Yoyodyne - - Crown College, UCSC - UUCP:...!ucbvax!ucscc!ucscb!alibaba- Propulsion - - Santa Cruz, CA 95064 - BITNET:alibaba%ucscb@ucscc.BITNET - Systems - - (408) 426-8869 - Disclaimer: Nobody is my employer - :-) - - - so nobody cares what I say. - -
dswt@stl.stc.co.uk (Stewart Tansley) (07/04/89)
In article 6073 <864@manta.NOSC.MIL> lulue@manta.NOSC.MIL (Dan Lulue ) writes: >The "Get Info" item reports a file's name, kind, size,... >...is also a text field that the user can type information into. > >...notice that when the text is touched, the modified date of the file >changes, indicating that the editable text is stored in the file, ^^^^^^^ >probably in a resource. Is this right? If so, which resource? I want >to get this information along with the other file attributes from within >a program. My experiments/experience tells me this is wrong, Dan. Changing the text in the Get Info box does *NOT* change the modification date of the file - at least, for me (Mac+ & SE, System 6.0.2). The reason for this is precisely that the Get Info text is *NOT* stored in the file itself, but instead, in the infamous invisible Desktop file (until System 7 comes!). I think you'll have to look at the structure of the Desktop file in order to access the Get Info text, therefore. This of course, explains why when you rebuild the Desktop, you lose all your helpful Get Info comments :-) Stewart. =========================================================================== Stewart Tansley STC Technology Ltd +44 279 29531 ext 2763 London Rd, Harlow, UK dswt@stl.stc.co.uk CM17 9NA (JANET) dswt@uk.co.stc.stl (UUCP) ...uunet!mcvax!ukc!stl!dswt ===========================================================================
holland@m2.csc.ti.com (Fred Hollander) (07/07/89)
In article <864@manta.NOSC.MIL> lulue@manta.NOSC.MIL (Dan Lulue ) writes: >The "Get Info" item reports a file's name, kind, size, ... >is also a text field that the user can type information into. ... >changes, indicating that the editable text is stored in the file, >probably in a resource. Is this right? If so, which resource? I want I wish it were stored as a resource in the file. Unfortunately, it's stored in the Desktop file. I never use this feature, because whenever you rebuild your Desktop, you lose all the comments. -Fred ______________________________________________________________________________ | Fred Hollander | | | Computer Science Center | "Ha ha ha ha ha ha, Ah what a day!" | | Texas Instruments, Inc. | -- Joker | | Internet: hollander@ti.com | | | Telnet: 214/995-0696 | The above statements are my own and not | | AppleLink: D1392 | representative of Texas Instruments. | ______________________________________________________________________________