home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!notable!oberon!daven
- From: daven@notable.com (Dave Newman)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Storing a reference to a file ..
- Date: Mon, 17 Aug 92 18:06:05 PST
- Organization: Notable Technologies, Inc.
- Message-ID: <01058004.bb6oca@oberon.notable.com>
- Reply-To: daven@notable.com
- X-Mailer: uAccess LITE - Macintosh Release: 1.5v4
- Lines: 29
-
-
- In article <5222@krafla.rhi.hi.is> (comp.sys.mac.programmer), rson@rhi.hi.is (Reynir Hugason) writes:
- | Ok here is the scenario: I have a project file. I want to store from within
- | the project file, which files are included in the project and some info
- | about each file. Presently I simply take the FSSpec and save it; however,
- | this is not suffiecent. What happens is that my program cant find files
- | if I start up from another disk. The only solution I can imagine is to
- | store the volume name and perhaps creation date of the volume as well ANDOR
- | use these file id things.
- |
- | How would you do it?
-
- As someone else noted, you can save aliases to the files. That doesn't work
- so well if you're going to sell into the population of Macs that don't run
- System 7. In that case, your suggest should work fairly well (FSSpec, vol
- name and vol creation date&time)
-
- BTW - System 6 and older doesn't have FSSpecs, but it's not hard to gather
- up all the info that goes into an FSSpec using the older file system calls.
-
- --Dave
-
- -----------------------------------------------------------
- Dave Newman | AOL: AFC Tinman
- Artillery Spotter | ALink: TINMAN
- Notable Technologies, Inc. | CIS: 70743,3323
- Voice: 510.208.4449 | internet: daven@notable.com
- FAX: 510.444.4493 |
- -----------------------------------------------------------
-