home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!shamash!paul
- From: paul@svl.cdc.com (Paul Kohlmiller)
- Newsgroups: comp.sys.mac.programmer
- Subject: vrefNum from Path Name
- Summary: Getting vrefNum from Path names is not clear to me
- Keywords: vrefNum
- Message-ID: <47022@shamash.cdc.com>
- Date: 1 Sep 92 05:46:13 GMT
- Sender: usenet@shamash.cdc.com
- Distribution: usa
- Lines: 23
-
- This may be a FAQ but I didn't find it.
- Most Mac apps have a dialog box to find a file such as the one you
- get with SFGetFile etc.
- When you do this you get the vrefNum but not the parID which is
- another problem for later.
- However, I have an application that wants to get the file from a
- pathname and there is no place for a vrefNum. While this seems
- unMaclike, it seems to work for MPW which can take a path name in
- a Link command. Maybe simply opening a file can be done with just
- a path but LaunchApplication needs a FSSpec which needs the
- vrefNum and the parID. The parID I can set to 0 for now (do I care
- about parID on non-A/UX apps) but the vrefNum I need. The best
- solution I have so far is to do the dialog box once and keep the
- vrefNum info. What I would like is a function that returns vrefNum
- from a file pathname but I don't see it. Any ideas?
- thnx
-
- --
- // Paul H. Kohlmiller // "Cybers, Macs and Mips" //
- // Control Data Systems, Inc. // Internet: paul@svl.cdc.com //
- // Acronym under construction. // America Online: Paul CDC //
- // All comments are strictly my own. I won't lie but my //
- // perception of reality is at best a personal hunch. //
-