Relative Paths

Phil Davis davis.phil at comcast.net
Wed Apr 7 13:16:36 EDT 2004


Also...

If you decide you want to use stackfiles anyway, you can use relative paths
in there instead of absolute paths. This requires that you build your own
'stackfile setter', but it will give you stackfile functionality with app
folder location independence.

Also, 'the stackfiles' can be the property of other than the app mainstack,
as long as the stack containing the stackfiles is open when stackfile
content is referenced, and those stackfile paths start at the directory of
the main app (the executable).

HTH -
Phil Davis


----- Original Message -----
From: "Ken Ray" <kray at sonsothunder.com>
To: <use-revolution at lists.runrev.com>
Sent: Wednesday, April 07, 2004 9:26 AM
Subject: Re: Relative Paths


> Kevin,
>
> Why do you need to add stacks to the stackFiles property? I've been using
> MC/Rev for years and never needed to do this to open other stacks. When
you
> open a stack in the IDE, it automatically defaults to the path where the
> executable lies, and only changes when you set "the directory" (or the
> "defaultFolder"). All relative paths are from ther
> e.
>
> Does this help?
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>
> > From:     "Kevin" <nnoydb at excite.com>
> > Reply-To: nnoydb at excite.com, How to use Revolution
> > <use-revolution at lists.runrev.com>
> > Date: Wed,  7 Apr 2004 04:52:15 -0400 (EDT)
> > To:     use-revolution at runrev.com
> > Subject: Relative Paths
> >
> >
> >
> > I am a bit confused.  How does one create applications that can be used
in the
> > IDE on multiple platforms without relative paths.  When I add a satck
file to
> > the the stackFiles property (in the property explorer) the fully
qualified
> > path is used.  When I copy the stack to another platform the path
(something
> > like "/Users/me/src/transcript/common/xxx.rev") will not function.
Please
> > someone explain how this is supposed to work?
> >
> >
> > Kevin
> >
> >
> > -==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
> > Disclaimer:
> >
> > Any resemblance between the above views and those of my
> > employer, my terminal, or the view out my window are purely
> > coincidental.
> > Any resemblance between the above and my own views is non-deterministic.
> >
> > The question of the existence of views in the absence of anyone to hold
> > them
> > is left as an exercise for the reader. The question of the existence of
> > the reader
> > is left as an exercise for the second god coefficient.
> > (A discussion of non-orthogonal, non-integral polytheism is beyond the
> > scope of this article.)
> >
> >
> >
> > _______________________________________________
> > Join Excite! - http://www.excite.com
> > The most personalized portal on the Web!
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list