Scope Problem on Standalones
kray at sonsothunder.com
Mon Nov 28 09:02:01 EST 2005
On 11/28/05 6:51 AM, "David Burgun" <dburgun at dsl.pipex.com> wrote:
> The path I get returned from "filename of this stack", in the
> openStack (or preOpenStack) script of Card 1 of StackA.rev is:
> path/MacOSX/myApp.app <-- bundle
> Bu according to the documentation, the path returned should be the
> path to the real application, e.g.
> Or perhaps:
> MacOSX/myApp.app/Contents/MacOS/MyApp (real applicaiton)
> Have I got this wrong? I would be really grateful if someone could
> just let me know if:
> a) The documentation is correct.
> b) If no, how I acheive this!
> c) if yes, why doesn't it work!
Well, I get (for my app "testapp.app"):
This is latest Rev, under Tiger.
My guess would be that you could test to see if the filename contains ".app"
and then adjust your paths accordingly.
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the Use-livecode