standalone builder

Francis Nugent Dixon effendi at wanadoo.fr
Wed Mar 2 05:32:22 EST 2011


Hi from  Beautiful Britanny,

Edward wrote :

> How can I refer to the relative paths in both Mac and Windows?


Note that I use a "Revolution" folder for all concerned with LiveCode.
All my sub-folders and files of all my stacks are in there somewhere.

put the platform into GVHoldPlatform
    if GVHoldPlatform = "MacOS" then
       put "/Revolution/" into GVStackPath  -- No leading drive on the  
Mac.
    end if
    if LVHoldPlatform = "Win32" then
       --
       --     System 7 patch to ensure using the Systems Disk for  
"StackPath" on PC's
       --
       put item 1 of specialfolderpath("system") &  "/Revolution/"into  
GVStackPath -- Get Stack Path with Disk ID.
       replace "WINDOWS/" with empty in  
GVStackPath                                -- Remove Windows Folder  
Name.
    end if

Add sub-folder names or file names to reach the final destination.

HTH

-Francis

"Nothing should ever be done for the first time !"
  




More information about the use-livecode mailing list