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

Ignore:
Timestamp:
02/04/08 20:22:40 (4 years ago)
Author:
alex
Message:

fixing a bug which I had with the shell xtra under windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/castlib1/alexUtilities.ls

    r93 r122  
    469469  if mCheckForXtra(me, "BudAPI") = 1 then -- if buddy is present... 
    470470     
    471     -- currently there is a bug in buddy beta with bafilelist, so we hack here... 
    472     if mGetFloatVersionNumber(me, the productversion) < 11 then 
    473        
    474       --  -- budApi version: 
    475       retval = baFileList(folderpath, "*.*") 
    476        
    477     else 
    478        
    479       retval = [] 
    480       n = 1 
    481       this = getnthfilenameinfolder(folderpath, n) 
    482       repeat while length(this) > 0 
    483         if length(getnthfilenameinfolder(folderpath & this, 1)) = 0 then retval.add(this) 
    484         n = n + 1 
    485         this = getnthfilenameinfolder(folderpath, n) 
    486       end repeat 
    487        
    488     end if 
     471    --    -- currently there is a bug in buddy beta with bafilelist, so we hack here... 
     472    --    if mGetFloatVersionNumber(me, the productversion) < 11 then 
     473     
     474    --  -- budApi version: 
     475    retval = baFileList(folderpath, "*.*") 
     476     
     477    --    else 
     478    --       
     479    --      retval = [] 
     480    --      n = 1 
     481    --      this = getnthfilenameinfolder(folderpath, n) 
     482    --      repeat while length(this) > 0 
     483    --        if length(getnthfilenameinfolder(folderpath & this, 1)) = 0 then retval.add(this) 
     484    --        n = n + 1 
     485    --        this = getnthfilenameinfolder(folderpath, n) 
     486    --      end repeat 
     487    --       
     488    --    end if 
    489489     
    490490     
     
    23232323    else 
    23242324      if returnList = 1 then 
    2325         return shell_cmd_list(cmd) 
     2325        if the platform contains "mac" then 
     2326          return shell_cmd_list(cmd) 
     2327        else 
     2328          return shell_cmd(cmd, void, 0, 1, void, void, void) 
     2329        end if 
    23262330      else 
    2327         return shell_cmd(cmd) 
     2331        if the platform contains "mac" then 
     2332          return shell_cmd(cmd) 
     2333        else 
     2334           return shell_cmd(cmd, void, 0, 0, void, void, void) 
     2335        end if 
    23282336      end if 
    23292337    end if 
Note: See TracChangeset for help on using the changeset viewer.