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 !"
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to