How to get the right filename (with a standalone 7.0.3)?

André Bisseret andre.bisseret at wanadoo.fr
Fri Apr 10 11:20:27 EDT 2015


Thank you  much Bill for your reply.
My problem is on Mac.
The same handler worked well with a standalone built before livecode 7.
It does not work with the livecode 7’ standalone.

I am going back to the previous version of my app 
So, I can’t use tabAlign for the fields ;-((

Best
André

> Le 10 avr. 2015 à 16:35, Earthednet-wp <prothero at earthednet.org> a écrit :
> 
> Andre,
> I don't know if I'm doing this right, but I test for whether I'm running a Mac standalone using the environment and platform variables, and adjust the path accordingly. The standalone builder puts the files in a bundle and the path is different. I didn't know if it's supposed to work this way, but I started learning to building standalones in livecode 7.... series and that's what I had to do.
> 
> If LC is supposed to take care of that for me, I'd sure like to know.
> 
> Good luck,
> Bill
> 
> William Prothero
> http://es.earthednet.org
> 
>> On Apr 10, 2015, at 3:20 AM, André Bisseret <andre.bisseret at wanadoo.fr> wrote:
>> 
>> I am using LC 7.03 for a few days now.
>> My app was running well with 6.6.3. But, I would like to use 7 now in order to be able to set the tabAlign of fields.
>> 
>> In my app a splash opens a main stack.
>> In the script of this one I get the filename of this main stack in order to build the path of a folder which  is at the same level.
>> 
>> So, I put the name of the folder into last item of the filename of the stack.
>> Ex.: 
>> filename of the stack : «gestion ostéo»: 
>> /Users/andrebisseret/Desktop/aaNewOsteo/gestion ostéo.livecode
>> and for the folder «PATIENTS» :
>> /Users/andrebisseret/Desktop/aaNewOsteo/PATIENTS
>> 
>> In the IDE all is running as expected
>> 
>> NOT in the new standalone (made with LC 7.0.3);-((
>> 
>> If the expected filename is: /Users/andrebisseret/Desktop/aaNewOsteo/gestion ostéo.livecode
>> 
>> in the standalone, it is a strange mess; I get: 
>> /Users/andrebisseret/Desktop/aaNewOsteo/Users/andrebisseret/Desktop/aaNewOsteo/osteÃÅoCiel.app/Contents/MacOS/gestion ostéo.livecode
>> 
>> so that, of course, I can’t build the right path for the folder:-((
>> 
>> What am I missing or am I doing wrong?
>> 
>> Thanks a lot in advance for any help
>> 
>> Best regards
>> 
>> André
>> 
>> _______________________________________________





More information about the use-livecode mailing list