🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #43847

Re: How can an app find the file it was launched from

#43847
From: ldg
Date: Thu, 14 Dec 1989 03:28
17 lines
1373 bytes
In <1989Dec12.203919.25080@csmil.umich.edu>, holtz@zurich.csmil.umich.edu
(Brian Holtz) writes:

>How can an application find the file it was launched from?

If by "file it was launched from" you mean the document you clicked on to
launch the application that created it, then use CountAppFiles and
GetAppFile, which are documented in Inside Macintosh, Vol. II, pages 57 & 58.
If you can't get your hands on IM II, I could Email you the syntax,
parameters, etc.

If you have something else in mind when you say "file it was launched from"
then I am at a loss to help you.

Lyle D. Gunderson  N6KSZ          CIS: 73760,2354     GEnie: L.GUNDERSON
zebolskyd@acoust.byu.edu          "Any technology without some attendant risk
350 CB / BYU / Provo, UT 84602   of misuse is probably trivial"  --Loise Kohl
Technical Details
Message-ID: <33ldg@yoda.byu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!brutus.cs.uiuc.edu!psuvax1!psuvm!cunyvm!byuvax!yoda!ldg
References: <1989Dec12.203919.25080@csmil.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!brutus.cs.uiuc.edu!psuvax1!psuvm!cunyvm!byuvax!yoda!ldg
From: ldg@yoda.byu.edu
Newsgroups: comp.sys.mac
Subject: Re: How can an app find the file it was launched from
Summary: Try GetAppFiles
Keywords: application,find,launch
Message-ID: <33ldg@yoda.byu.edu>
Date: 14 Dec 89 03:28:40 GMT
References: <1989Dec12.203919.25080@csmil.umich.edu>
Reply-To: zebolskyd@acoust.byu.edu (Lyle D. Gunderson)
Organization: Brigham Young University, Provo, Utah
Lines: 21