Leston Drake wrote:

> You missed the point ;-). You're thinking of the Windows registry as a
> mechanism for storing information on what application to use to launch a
> certain file type. This is only one purpose of the Windows registry.
> Application developers use it as a generally accessible database for storing
> any type of (developer-defined!) information for an application. In my case, I
> need to store the path to the installed application.

Why not just ask the app itself where it is located? 

  get the filename of this stack

will tell you where it is. I use this all the time. You can strip off
the final file name from the path, and you will know the enclosing folder.

But maybe you are checking to see where the installation was in order to
find out later if the app has been moved; if so, you'd probably want to
store the original path in a preferences file in the system folder. You
can use Apple Events to find out the path to the preferences folder. I
haven't done much with MetaCard's apple event capabilities, but in pure
applescript you would say:

  set myVar to path to preferences folder

Then you would create a file in the preferences folder and store your
data in that. There are also a number of XFCNs that will give you the
path to the preferences folder; these would only work on a Mac, but
that's the only place you'd need it.

-- 
Jacqueline Landman Gay        |             [EMAIL PROTECTED]
HyperActive Software          |                   [EMAIL PROTECTED]
Custom hypermedia solutions   |         http://www.hyperactivesw.com
612.724.1596                  |                   612.724.1562 - fax


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to