Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
12/09/07 15:55:41 (4 years ago)
Author:
alex
Message:

various fixes in beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/alexUtilities.ls

    r88 r93  
    210210end 
    211211 
    212  
    213  
    214  
    215212-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    216213-- xxxxxxxxxxxxxxxxxx Write text out to a file 
     
    219216on mSaveTextToTempFile me, theText, pfad 
    220217   
    221   if ilk(pfad) <> #string then return 0 
    222   if length(pfad) < 1 then return 0 
     218  if ilk(pfad) <> #string then 
     219    pfad = mConvertUnix2HFS("/tmp/tmpfile.txt") 
     220  end if 
     221  if length(pfad) < 1 then 
     222    pfad = mConvertUnix2HFS("/tmp/tmpfile.txt") 
     223  end if 
    223224   
    224225  return mSaveToTextFile(me, theText, pfad) 
     
    406407-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    407408 
    408 on mGetFolderPathFromUser me 
     409on mGetFolderPathFromUser me, startFolder, theTitle, flags, instruction, offsx, offsy 
    409410  retval = "" 
    410411   
     
    419420    end if 
    420421     
    421     retval = baGetFolder( "", "Select a folder", 3, "", 50, 50 ) 
     422    startFolder = string(startFolder) 
     423    instruction = string(instruction) 
     424    flags = integer(flags) 
     425    if ilk(flags) <> #integer then flags = 0 
     426    theTitle = string(theTitle) 
     427     
     428    offsx = integer(offsx) 
     429    if ilk(offsx) <> #integer then offsx = -1 
     430     
     431    offsy = integer(offsy) 
     432    if ilk(offsy) <> #integer then offsy = -1 
     433     
     434    retval = baGetFolder(startFolder, theTitle, flags, instruction, offsx, offsy ) 
    422435     
    423436    if resetUNames = 1 then baReturnUnixNames(1) 
     
    23552368  if not(the platform contains "mac") then return fname 
    23562369   
     2370  if fname starts "/" then return fname -- huh? must already be an absolute unix path 
     2371   
    23572372  offs = offset(":", fname) 
    23582373  repeat while offs 
     
    23712386  if not(the platform contains "mac") then return fname 
    23722387   
     2388  if fname starts "/Volumes/" then 
     2389    olddelim = the itemdelimiter 
     2390    the itemdelimiter = "/" 
     2391    delete item 1 to 3 of fname 
     2392    the itemdelimiter = olddelim 
     2393    put "/" before fname 
     2394  end if 
     2395   
     2396  if not(fname starts "/") then return fname -- huh? doesn't seem to be an absolute unix path  
     2397   
    23732398  offs = offset("/", fname) 
    23742399  repeat while offs 
     
    23762401    offs = offset("/", fname) 
    23772402  end repeat 
     2403   
    23782404  osDir = getOsDirectory() 
    23792405  olddelim = the itemdelimiter 
Note: See TracChangeset for help on using the changeset viewer.