OS X Standalone Prog Folder Problem? AGAIN

Fran=?ISO-8859-1?B?5w==?=ois Cuneo francois.cuneo at cuk.ch
Mon Mar 1 19:21:58 EST 2004


Hello!
I have exactly the same problem!
My application configuration is

Cuk Calcul Oral.rev
   DataFolder
        Data.edb
        LanguageFolder
            French.rev
         FilmsFolder
            FrenchFolder
                bravo.mov
                faux.mov
    
In developpement on MacOSX, all is perfect!
But in standalone, the folders are not founded (no stop in the code but
nothing appends)

I touch the folders with code like that:


put the effective filename of this stack into chemin --je cherche ou est
cette pile sur le disque
set the itemdelimiter to "/"
put item 1 to -2 of chemin into chemin
put chemin &"/Data/Data.edb" into chemindata

And I'm sorry, but I do not understand the difference with the Peter's code!
I obtain exactly the same with mine.

And it not works!!

So what please?

> Hi Rob
> 
> Thanks for the tip, that's sorted the problem!  I've now put this
> together into a single handler that returns both the program path and
> the application name:
> 
> on getProgPath @thePath, @theFileName
>  set the itemDelimiter to "."
>  put (the platform is "MacOS" and item 1 of the systemVersion >= 10)
> into itsOSX
>  put the filename of this stack into thePath
>  set itemDelimiter to "/"
>  if "Mac" is in the platform and itsOSX and \
>    the environment is not "development" then
>    delete item -3 to -1 of thePath
>  end if
>  put last item of thePath into theFileName
>  delete last item of thePath
>  put "/" after thePath
> end getProgPath
> 
> Just in case anyone else has the same problem and wants a "potted" solution!


Amicalement
François
--------------------------------------------------------------------------

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:francois.cuneo at cuk.ch

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05





More information about the use-livecode mailing list