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

Changeset 148 for trunk/lingosource


Ignore:
Timestamp:
02/18/08 05:09:49 (4 years ago)
Author:
alex
Message:

enabled most of the bbedit function also for windows using user definad apps as relacements

Location:
trunk/lingosource
Files:
6 edited

Legend:

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

    r142 r148  
    5353    pLookUpCommandList.setaprop("Batch compare selected scripts", ["mCompareSelectedScriptmembersBatch me", "bbedit_Utilities"]) 
    5454     
    55      
    56   end if 
     55  end if 
     56   
     57   
     58  li.add("External script editor Handlers") 
     59  subli = [] 
     60  li.add(subli) 
     61   
     62  subli.add("Edit in external editor") 
     63  pLookUpCommandList.setaprop("Edit in external editor", ["mEdit_text_in_ext_editor me", "bbedit_Utilities"]) 
     64   
     65  subli.add("Open in external editor") 
     66  pLookUpCommandList.setaprop("Open in external editor", ["mOpen_text_with_ext_editor me", "bbedit_Utilities"]) 
     67   
     68  subli.add("Refresh members edited in external editor") 
     69  pLookUpCommandList.setaprop("Refresh members edited in external editor", ["mReImport_text_Opened_In_ext_editor me", "bbedit_Utilities"]) 
     70   
     71  subli.add("Open linked script") 
     72  pLookUpCommandList.setaprop("Open linked script", ["mOpen_Linked_Script_With_ext_editor me", "bbedit_Utilities"]) 
     73   
     74  subli.add("Diff selected scripts") 
     75  pLookUpCommandList.setaprop("Diff selected scripts", ["mLiveCompare_SelectedScript me, convertLineBreaksToUnix", "bbedit_Utilities"]) 
     76   
     77   
     78   
    5779   
    5880   
     
    222244     
    223245    subli.add("") 
    224     subli.add("Open original of selected alex-linked-library-script in BBEdit") 
    225     pLookUpCommandList.setaprop("Open original of selected alex-linked-library-script in BBEdit", ["mBBedit me", "bbedit_Utilities"]) 
     246    subli.add("Open counterpart of selected alex-linked-library-script in BBEdit") 
     247    pLookUpCommandList.setaprop("Open counterpart of selected alex-linked-library-script in BBEdit", ["mBBedit me", "bbedit_Utilities"]) 
    226248     
    227249    subli.add("Check changes in selected alex-linked-library-scripts") 
  • trunk/lingosource/castlib1/alexUtilities.ls

    r136 r148  
    24272427 
    24282428-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2429------------------- subversion support works better with unix linebreaks... 
     2430 
     2431on mConvertLineBreaksToUnix me, st 
     2432   
     2433  if mCheckForXtra(me, "Pregex") = 1 then 
     2434    scrTextLi = [st] 
     2435    pregex_replace(scrTextLi, "\x0D\x0A?", "g", "\x0A") 
     2436    return scrTextLi[1] 
     2437  else 
     2438    fndStr = numToChar(13) & numToChar(10) 
     2439    offs = offset(fndStr, st) 
     2440    repeat while offs > 0 
     2441      delete char offs of st 
     2442      offs = offset(fndStr, st) 
     2443    end repeat 
     2444     
     2445    fndStr = numToChar(13) 
     2446    offs = offset(fndStr, st) 
     2447    repeat while offs > 0 
     2448      put numToChar(10) into char offs of st 
     2449      offs = offset(fndStr, st) 
     2450    end repeat 
     2451     
     2452  end if 
     2453   
     2454  return st 
     2455   
     2456end 
     2457 
     2458-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2459----------- always convert to mac linebreaks for scripts as director internally uses mac linebreaks 
     2460 
     2461on mConvertLineBreaksToMac me, scrText 
     2462   
     2463  if mCheckForXtra(me, "Pregex") = 1 then 
     2464     
     2465    scrTextLi = [scrText] 
     2466    pregex_replace(scrTextLi, "\x0D?\x0A", "g", "\x0D") 
     2467    return scrTextLi[1] 
     2468     
     2469  else 
     2470     
     2471    -- first convert windows to mac 
     2472    fndStr = numToChar(13) & numToChar(10) 
     2473    offs = offset(fndStr, scrText) 
     2474    repeat while offs > 0 
     2475      put numToChar(13) into char offs to offs+1 of scrText 
     2476      offs = offset(fndStr, scrText) 
     2477    end repeat 
     2478     
     2479    -- now convert unix to mac 
     2480    fndStr = numToChar(10) 
     2481    offs = offset(fndStr, scrText) 
     2482    repeat while offs > 0 
     2483      put numToChar(13) into char offs of scrText 
     2484      offs = offset(fndStr, scrText) 
     2485    end repeat 
     2486     
     2487  end if 
     2488  ----------------------------------------- 
     2489   
     2490  return scrText 
     2491   
     2492end 
     2493 
     2494-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2495 
     2496on mGetTempFilePath me, theName 
     2497   
     2498  if mCheckForXtra(me, "BudAPI") then 
     2499    if the platform contains "mac" then 
     2500       
     2501      resetUNames = 0 
     2502      if baSysFolder("prefs") starts "/" then 
     2503        baReturnUnixNames(0) 
     2504        resetUNames = 1 
     2505      end if 
     2506      tempSrcHFSPath = basysfolder("temp") & theName 
     2507      if resetUNames = 1 then baReturnUnixNames(1) 
     2508      return tempSrcHFSPath 
     2509       
     2510    else 
     2511      tmpfolder = baSysFolder("temp") 
     2512      return tmpfolder & theName 
     2513    end if 
     2514     
     2515  else 
     2516    if the platform contains "mac" then 
     2517       
     2518      tempSrcPath = "/tmp/" & theName 
     2519       
     2520      return mConvertUnix2Hfs(me, tempSrcPath) 
     2521       
     2522    else 
     2523      tmpfolder = "C:\WINDOWS\TEMP\" 
     2524      return tmpfolder & theName 
     2525    end if 
     2526     
     2527  end if 
     2528   
     2529end 
     2530 
     2531-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    24292532on _______________GLOSSARY_ITEMS me 
    24302533end 
     
    25912694 
    25922695-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2696on _______________EXTERNAL_PATHS me 
     2697end 
     2698-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2699 
     2700-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2701 
     2702on mGetExternalScriptEditor me, externalEditors 
     2703   
     2704  if mCheckForXtra(me, "budapi") <> 1 then 
     2705    alert "You need the buddyApi xtra for this operation" 
     2706    exit 
     2707  end if 
     2708   
     2709  savePrefs = 0 
     2710  if ilk(externalEditors) <> #proplist then 
     2711    externalEditors = value(getPref("handlerMenu_externalEditors.txt")) 
     2712    if ilk(externalEditors) <> #proplist then externalEditors = [:] 
     2713    savePrefs = 1 
     2714  end if 
     2715   
     2716  if the shiftdown then 
     2717    externalScripteditor = "" 
     2718    savePrefs = 1 
     2719  else 
     2720    externalScripteditor = string(externalEditors.getaprop(#externalScripteditor)) 
     2721    if baFileExists(externalScripteditor) <> 1 then externalScripteditor = "" 
     2722  end if 
     2723   
     2724  if length(externalScripteditor) < 1 then 
     2725     
     2726    alert "Please select an external script editor." 
     2727    externalScripteditor = mGetFilePathFromUser(me) 
     2728    if length(externalScripteditor) < 1 then return "" 
     2729     
     2730  end if 
     2731   
     2732  if baFileExists(externalScripteditor) <> 1 then 
     2733    alert "The path to the external script editor seems to have changed. Please try again in order to search the path." 
     2734    externalScripteditor = "" 
     2735  end if 
     2736   
     2737  externalEditors.setaprop(#externalScripteditor, externalScripteditor) 
     2738   
     2739  if savePrefs = 1 then setPref("handlerMenu_externalEditors.txt", string(externalEditors)) 
     2740   
     2741  return externalScripteditor 
     2742   
     2743end 
     2744 
     2745 
     2746-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2747 
     2748on mGetSVNDiffBinaryPath me, workingCopies 
     2749   
     2750  if (mCheckForXtra(me, "budapi") + (mCheckForXtra(me, "Shell") + mCheckForXtra(me, "ff_shell"))) < 2 then 
     2751    alert "You need the shell xtra and the buddyApi xtra in order to proceed" 
     2752    return "" 
     2753  end if 
     2754   
     2755  savePrefs = 0 
     2756  if ilk(workingCopies) <> #proplist then 
     2757    workingCopies = value(getPref("svn_workingCopies_paths.txt")) 
     2758    if ilk(workingCopies) <> #proplist then workingCopies = [:] 
     2759    savePrefs = 1 
     2760  end if 
     2761   
     2762   
     2763  svnBinary = string(workingCopies.getaprop(#svnDiffBinary)) 
     2764   
     2765   
     2766  if baFileExists(svnBinary) <> 1 then svnBinary = "" 
     2767   
     2768   
     2769  if length(svnBinary) < 1 then 
     2770     
     2771    alert "There is not yet an application specified to handle file diffs. Please select the applivcation you want to use, e.g. TortoiseMerge in your Tortoise folder, if you are using Tortoise." 
     2772    svnBinary = mGetFilePathFromUser(me) 
     2773    if length(svnBinary) < 1 then return "" 
     2774     
     2775  end if 
     2776   
     2777  if baFileExists(svnBinary) <> 1 then 
     2778    alert "The path to the svn diff binary seems to have changed. Please try again in order to search the path." 
     2779    svnBinary = "" 
     2780  end if 
     2781   
     2782   
     2783   
     2784  workingCopies.setaprop(#svnDiffBinary, svnBinary) 
     2785   
     2786  if savePrefs = 1 then setPref("svn_workingCopies_paths.txt", string(workingCopies)) 
     2787   
     2788  return svnBinary 
     2789   
     2790end 
     2791 
     2792 
     2793-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    25932794on _______________HELPER_HANDLER me 
    25942795end 
    25952796-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    2596  
    25972797 
    25982798-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
  • trunk/lingosource/castlib1/bbedit_Utilities.ls

    r131 r148  
    66end 
    77 
     8 
    89-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    910on _______________BBEDIT_SCRIPTS end 
     
    1112-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    1213 
    13 on mOpen_Linked_Script_With_BBedit me 
    14    
    15   if not(the platform contains "mac") then 
    16     alert "Sorry, BBEdit is a mac application!" & RETURN & "If you change this handler to match something appropriate for Windows, please drop me a note. alex@farbflash.de" 
    17     exit 
    18   end if 
     14on mOpen_Linked_Script_With_BBedit me, editor 
    1915   
    2016  if  mCheckForXtra(me, "ff_shell") = 0 then 
     
    2824  sel = the selection of castlib cl 
    2925   
    30   clistr = "bbedit" 
     26  editor = string(editor) 
     27  if length(editor) < 1 then 
     28    clistr = "bbedit" 
     29  else 
     30    clistr = editor 
     31  end if 
    3132   
    3233  repeat with sub in sel 
     
    5152   
    5253end 
     54 
     55-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     56 
     57on mOpen_Linked_Script_With_ext_editor me 
     58  editor = mGetExternalScriptEditor(me) 
     59  if length(editor) < 1 then exit 
     60  mOpen_Linked_Script_With_BBedit me, editor 
     61end  
    5362 
    5463-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     
    132141          --------------------- 
    133142          -- create a temporary file from scripttext: 
    134           tempSrcPath = "/tmp/" & theName & ".ls" 
    135            
    136           -- tempSrcHFSPath = mDoShellCmd(me, "osascript -e" && QUOTE & "return POSIX file \" & QUOTE & tempSrcPath & "\" & QUOTE & " as string" & QUOTE, 1) 
    137           -- tempSrcHFSPath = tempSrcHFSPath[1] 
    138           tempSrcHFSPath = mConvertUnix2Hfs(me, tempSrcPath) 
     143          if mCheckForXtra(me, "BudAPI") then 
     144             
     145            resetUNames = 0 
     146            if baSysFolder("prefs") starts "/" then 
     147              baReturnUnixNames(0) 
     148              resetUNames = 1 
     149            end if 
     150            tempSrcHFSPath = basysfolder("temp") & theName & ".ls" 
     151            baReturnUnixNames(1) 
     152            tempSrcPath = basysfolder("temp") & theName & ".ls" 
     153            if resetUNames = 0 then 
     154              baReturnUnixNames(0) 
     155            end if   
     156          else 
     157            tempSrcPath = "/tmp/" & theName & ".ls" 
     158            tempSrcHFSPath = mConvertUnix2Hfs(me, tempSrcPath) 
     159          end if 
    139160           
    140161           
     
    144165          mDoShellCmd(me, "bbedit " & tempSrcPath) 
    145166           
    146            
    147167        end if 
    148          
    149         --        neuer = new(#field) 
    150         --        neuer.text = theText 
    151         --         
    152         --        oldclipboardNum = new(#field) 
    153         --        oldclipboardNum.pasteClipBoardInto() 
    154         --         
    155         --        copyToClipBoard(neuer) 
    156         --         
    157         --        shell_cmd("pbpaste | bbedit") 
    158         --         
    159         --        if oldclipboardNum.type <> #empty then copyToClipBoard(oldclipboardNum) 
    160         --        oldclipboardNum.erase() 
    161         --        neuer.erase() 
    162         --         
    163         --        exit 
    164168         
    165169      end if 
     
    172176-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    173177 
    174 on mReImport_text_Opened_In_BBedit me 
    175    
    176   if not(the platform contains "mac") then 
    177     alert "Sorry, BBEdit is a mac application!" & RETURN & "If you change this handler to match something appropriate for Windows, please drop me a note. alex@farbflash.de" 
    178     exit 
     178on mEdit_text_in_ext_editor me 
     179  mOpen_text_with_ext_editor me, 1 
     180end 
     181 
     182-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     183 
     184on mGetMacBinary me, editor 
     185  if not(editor starts "/") then 
     186    editor = mConvertHFS2Unix(me, editor) 
     187  end if 
     188   
     189  if the last char of editor = "/" then delete the last char of editor 
     190   
     191  olddelim = the itemdelimiter 
     192  the itemdelimiter = "/" 
     193   
     194  appname = the last item of editor 
     195  if offset(".app", appname) = length(appname) - 3 then 
     196    infoplist = editor & "/Contents/Info.plist" 
     197    exename = mDoShellCmd(me, "grep -A1 -E '<key>CFBundleExecutable<\/key>'" && QUOTE & infoplist & QUOTE & " | grep -vE '<key>CFBundleExecutable</key>' | cut -d\> -f2 | cut -d\< -f1") 
     198    if the last char of exename = RETURN then delete the last char of exename 
     199    if the last char of exename = numToChar(10) then delete the last char of exename 
     200    editor = editor & "/Contents/MacOS/" & exename 
     201  end if 
     202   
     203  the itemDelimiter = olddelim 
     204   
     205  return editor 
     206end 
     207 
     208-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     209 
     210on mOpen_text_with_ext_editor me, doLiveEdit 
     211   
     212  if  mCheckForXtra(me, "ff_shell") = 0 then 
     213    if mCheckForXtra(me, "Shell") = 0 then 
     214      mShellXtraMissing me 
     215      exit 
     216    end if 
    179217  end if 
    180218   
     
    182220  sel = the selection of castlib cl 
    183221   
     222  if mCheckForXtra(me, "BudAPI") then 
     223    --    tempFolder = basysfolder("temp") 
     224     
     225    if the platform contains "mac" then 
     226       
     227      isMac = 1 
     228      resetUNames = 0 
     229      if baSysFolder("prefs") starts "/" then 
     230        baReturnUnixNames(0) 
     231        resetUNames = 1 
     232      end if 
     233      tempFolderHFS = basysfolder("temp") 
     234      baReturnUnixNames(1) 
     235      tempFolder = basysfolder("temp") 
     236      if resetUNames = 0 then 
     237        baReturnUnixNames(0) 
     238      end if 
     239       
     240    else 
     241      tempFolderHFS = basysfolder("temp") 
     242      tempFolder = tempFolderHFS 
     243    end if 
     244     
     245     
     246  else 
     247    alert "You need the buddyApi xtra for this operation" 
     248    exit 
     249  end if 
     250   
     251  editor = mGetExternalScriptEditor(me) 
     252  if length(editor) < 1 then exit 
     253   
    184254  repeat with sub in sel 
    185255    repeat with mem = sub[1] to sub[2] 
     
    187257      memref = member(mem,cl) 
    188258       
     259      theText = "" 
     260      theType = memref.type 
     261      if theType = #script then 
     262        theText = memref.scripttext 
     263      else if theType = #text then 
     264        theText = memref.html 
     265      else if theType = #field then 
     266        theText = memref.text 
     267      end if 
     268       
     269      if length(theText) > 0 then 
     270         
     271         
     272        if doLiveEdit then 
     273          --------------------- 
     274          tempSrcPath = tempFolder & "temp_LingoScript_file.ls" 
     275           
     276          if isMac then 
     277            waitparam = "" 
     278            editor = mGetMacBinary(me, editor) 
     279            tempSrcHFSPath = mConvertUnix2Hfs(me, tempSrcPath) 
     280          else 
     281            waitparam = " \w" 
     282            tempSrcHFSPath = tempSrcPath 
     283          end if 
     284          --------------------- 
     285           
     286          theResult = mSaveTextToTempFile(me, theText, tempSrcHFSPath) 
     287           
     288          mDoShellCmd(me, QUOTE & editor & QUOTE && tempSrcPath & waitparam) 
     289           
     290          theText = mGetTextFromFile(me, tempSrcHFSPath) 
     291           
     292          theText = mForceMacLineBreaks(me, theText) 
     293           
     294          if theType = #script then 
     295            memref.scripttext = theText 
     296          else if theType = #text then 
     297            memref.html = theText 
     298          else if theType = #field then 
     299            memref.text = theText 
     300          end if 
     301           
     302           
     303        else 
     304           
     305          theName = memref.name 
     306          if length(theName) < 1 then 
     307            theName = "member_" & memref.membernum & "_" & memref.castlibnum 
     308          end if 
     309          --------------------- 
     310          -- create a temporary file from scripttext: 
     311          tempSrcPath = tempFolder & theName & ".ls" 
     312           
     313          if isMac then 
     314            waitparam = " &" 
     315            editor = "" 
     316            tempSrcHFSPath = tempSrcPath 
     317          else 
     318            waitparam = "" 
     319            tempSrcHFSPath = tempSrcPath 
     320          end if 
     321           
     322          theResult = mSaveTextToTempFile(me, theText, tempSrcHFSPath) 
     323          --------------------- 
     324           
     325          mDoShellCmd(me, QUOTE & editor & QUOTE && tempSrcPath & waitparam) 
     326           
     327        end if 
     328         
     329      end if 
     330    end repeat 
     331  end repeat 
     332   
     333end 
     334 
     335-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     336 
     337on mReImport_text_Opened_In_ext_editor me 
     338  mReImport_text_Opened_In_BBedit me 
     339end 
     340 
     341-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     342 
     343on mReImport_text_Opened_In_BBedit me 
     344   
     345  cl = the activecastlib 
     346  sel = the selection of castlib cl 
     347   
     348  repeat with sub in sel 
     349    repeat with mem = sub[1] to sub[2] 
     350       
     351      memref = member(mem,cl) 
    189352       
    190353      theName = memref.name 
     
    193356      end if 
    194357       
    195       delim = the last char of the moviepath 
    196       olddelim = the itemdelimiter 
    197       the itemdelimiter = delim 
    198       hd = item 1 of getosdirectory() 
    199        
    200       tempSrcPath = hd & delim & "tmp" & delim & theName & ".ls" 
    201       the itemdelimiter = olddelim 
     358      if not(the platform contains "mac") then 
     359        if mCheckForXtra(me, "BudAPI") then 
     360          tempSrcPath = basysfolder("temp") 
     361          put theName & ".ls" after tempSrcPath 
     362        else 
     363          alert "You need the buddyApi xtra for this operation" 
     364          exit 
     365        end if 
     366      else 
     367        delim = the last char of the moviepath 
     368        olddelim = the itemdelimiter 
     369        the itemdelimiter = delim 
     370        hd = item 1 of getosdirectory() 
     371         
     372        tempSrcPath = hd & delim & "tmp" & delim & theName & ".ls" 
     373        the itemdelimiter = olddelim 
     374      end if 
    202375       
    203376      theText = mGetTextFromFile(me, tempSrcPath) 
    204377       
    205378      if length(theText) > 0 then 
     379         
     380        theText = mForceMacLineBreaks(me, theText) 
    206381         
    207382        case memref.type of 
     
    216391  end repeat 
    217392   
     393end 
     394 
     395-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     396 
     397on mForceMacLineBreaks me, theText 
     398  rettext = "" 
     399  olddelim = the itemdelimiter 
     400  the itemdelimiter = numToChar(10) 
     401  thirteen = numToChar(13) 
     402  num = the number of items of theText 
     403  repeat with n = num down to 1 
     404    i = item n of theText 
     405    put i after rettext 
     406    if the last char of i <> thirteen then put thirteen after rettext 
     407  end repeat 
     408  the itemdelimiter = olddelim 
     409  return rettext 
    218410end 
    219411 
     
    544736  end if 
    545737end 
     738 
     739 
     740-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     741 
     742on mLiveCompare_SelectedScript me, convertLineBreaksToUnix 
     743   
     744  cl = the activecastlib 
     745  sel = the selection of castlib cl 
     746   
     747  if count(sel) > 0 then 
     748    memref1 = member(sel[1][1], cl) 
     749    if sel[1][2] <> sel[1][1] then 
     750      memref2 = member(sel[1][2], cl) 
     751    else 
     752      if count(sel) < 2 then 
     753        alert "Please select two castmembers!" 
     754        exit 
     755      end if 
     756      memref2 = member(sel[2][1], cl) 
     757    end if 
     758  else 
     759    alert "Please select two castmembers!" 
     760    exit 
     761  end if 
     762   
     763  memtype = memref1.type 
     764  if [#script, #field, #text].getPos(memtype) < 1 then 
     765    alert "The members must be either #script, #field or #text members!" 
     766    exit 
     767  else 
     768    case memtype of 
     769         
     770        ----------------------- 
     771      #script: 
     772        ext1 = ".ls" 
     773        st1 = memref1.scripttext 
     774         
     775        ----------------------- 
     776      #text: 
     777        ext1 = ".html" 
     778        st1 = memref1.html 
     779         
     780        ----------------------- 
     781      otherwise: 
     782        ext1 = ".txt" 
     783        st1 = memref1.text 
     784         
     785    end case 
     786     
     787  end if 
     788   
     789  memtype = memref2.type 
     790  if [#script, #field, #text].getPos(memtype) < 1 then 
     791    alert "The members must be either #script, #field or #text members!" 
     792    exit 
     793  else 
     794    case memtype of 
     795         
     796        ----------------------- 
     797      #script: 
     798        ext2 = ".ls" 
     799        st2 = memref2.scripttext 
     800         
     801        ----------------------- 
     802      #text: 
     803        ext2 = ".html" 
     804        st2 = memref2.html 
     805         
     806        ----------------------- 
     807      otherwise: 
     808        ext2 = ".txt" 
     809        st2 = memref2.text 
     810         
     811    end case 
     812  end if 
     813   
     814  if not(the platform contains "mac") then 
     815     
     816    bbdiffpath = mGetSVNDiffBinaryPath(me) 
     817     
     818    if length(bbdiffpath) < 1 then exit 
     819     
     820    isMac = 0 
     821  else 
     822    isMac = 1 
     823    bbdiffpath = mFindUnixAppInPath(me, "bbdiff") 
     824    if length(bbdiffpath) < 1 then 
     825      alert "This function only works with BBDiff, a command line tool provided by BBEdit. Consider installing BBEdits command line tools, it is really helpful." 
     826      exit 
     827    end if 
     828     
     829  end if 
     830   
     831   
     832  if  mCheckForXtra(me, "ff_shell") = 0 then 
     833    if mCheckForXtra(me, "Shell") = 0 then 
     834      mShellXtraMissing me 
     835      exit 
     836    end if 
     837  end if 
     838   
     839   
     840  name1 = memref1.name & "_m" & memref1.memberNum & "_c" & memref1.castlibnum 
     841  fname1 = mGetTempFilePath(me, name1 & ext1) 
     842   
     843  name2 = memref2.name & "_m" & memref2.memberNum & "_c" & memref2.castlibnum 
     844  fname2 = mGetTempFilePath(me, name2 & ext2) 
     845   
     846  ------------------------------------------ trac subversion support works better with unix linebreaks... 
     847  if voidP(convertLineBreaksToUnix) then convertLineBreaksToUnix = 1 
     848  if convertLineBreaksToUnix = "" then convertLineBreaksToUnix = 1 
     849   
     850  if convertLineBreaksToUnix = 1 then 
     851    st1 = mConvertLineBreaksToUnix(me, st1) 
     852    st2 = mConvertLineBreaksToUnix(me, st2) 
     853  end if 
     854  ----------------------------------------- 
     855   
     856   
     857  theResult = mSaveTextToTempFile(me, st1, fname1) 
     858  theResult = mSaveTextToTempFile(me, st2, fname2) 
     859  --------------------- 
     860   
     861   
     862  if isMac then 
     863     
     864     
     865    theResult = mDoShellCmd(me, bbdiffpath & " --ignore-curly-quotes --ignore-spaces --wait --resume " &QUOTE& mConvertHFS2Unix(me, fname1) &QUOTE&&QUOTE& mConvertHFS2Unix(me, fname2) &QUOTE && "2>&1", RETURN, 0, 1) 
     866     
     867    -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished 
     868     
     869    if count(theResult) > 0 then 
     870      if theResult[1] contains "no such file or directory" then 
     871        put theResult[1] 
     872      else 
     873        put "No differences found for member: " & memref1.name && "(" & memref1 & ") and " & memref2.name && "(" & memref2 & ")" 
     874      end if 
     875      writeBack = 0 
     876       
     877    else 
     878       
     879      -------- now write the results of the BBEdit diff back into the script members 
     880      st1 = mGetTextFromFile(me, fname1) 
     881      st2 = mGetTextFromFile(me, fname2) 
     882       
     883      writeBack = 1 
     884       
     885    end if 
     886     
     887    ---------------------- windows 
     888  else 
     889     
     890     
     891    theResult = mDoShellCmd(me, QUOTE & bbdiffpath & QUOTE && QUOTE & fname1 &QUOTE&&QUOTE& fname2 &QUOTE, RETURN, 0, 0, 0) 
     892     
     893    -------- now write the results of the BBEdit diff back into the script members 
     894    st1 = mGetTextFromFile(me, fname1) 
     895    st2 = mGetTextFromFile(me, fname2) 
     896     
     897    writeBack = 1 
     898  end if 
     899   
     900   
     901  if writeBack = 1 then 
     902     
     903     
     904    if convertLineBreaksToUnix = 1 then 
     905      st1 = mConvertLineBreaksToMac(me, st1) 
     906      st2 = mConvertLineBreaksToMac(me, st2) 
     907    end if 
     908     
     909    memtype = memref1.type 
     910    case memtype of 
     911        ----------------------- 
     912      #script: 
     913        memref1.scripttext = st1 
     914         
     915        ----------------------- 
     916      #text: 
     917        memref1.html = st1 
     918         
     919        ----------------------- 
     920      otherwise: 
     921        memref1.text = st1 
     922         
     923    end case 
     924     
     925    memtype = memref2.type 
     926    case memtype of 
     927        ----------------------- 
     928      #script: 
     929        memref2.scripttext = st2 
     930         
     931        ----------------------- 
     932      #text: 
     933        memref2.html = st2 
     934         
     935        ----------------------- 
     936      otherwise: 
     937        memref2.text = st2 
     938         
     939    end case 
     940     
     941  end if 
     942   
     943   
     944end 
     945 
    546946 
    547947 
     
    8911291   
    8921292   
    893   --  if not(the platform contains "mac") then 
    894   --    alert "Sorry, BBEdit is a mac application!" & RETURN & "If you change this handler to match something appropriate for Windows, please drop me a note. alex@farbflash.de" 
    895   --    exit 
    896   --  end if 
    897   --   
    898   --  if mCheckForXtra(me, "Shell") = 0 then 
    899   --    mShellXtraMissing me 
    900   --    exit 
    901   --  end if 
    902    
    903    
    9041293  bbdiffpath = "" 
    9051294  if the platform contains "mac" then 
     
    9251314   
    9261315   
    927    
    928    
    929    
    9301316  cl = the activecastlib 
    9311317  sel = the selection of castlib cl 
     
    9461332        memname = memref.name 
    9471333        comm = memref.comments 
    948         if comm.length then 
     1334         
     1335        if length(comm) < 1 then 
     1336          -- put memref.name && "(" & memref & ") has no comments - not linked"  
     1337        else 
    9491338           
    9501339          aPath = mGetFilePathFromMemberComments(me, memref, isMac, CurrentOSXUserName) 
    9511340           
    952           if length(aPath) > 0 then 
     1341          if length(aPath) < 1 then 
     1342            -- put memref.name && "(" & memref & ") has no comments - not linked"  
     1343          else 
    9531344             
    9541345            fio = (xtra "fileio").new() 
     1346             
    9551347            if objectP(fio) then 
     1348               
    9561349              fio.openFile(aPath, 0) 
    957               if fio.status() = 0 then 
     1350               
     1351              if fio.status() <> 0 then 
     1352                put memref.name && "(" & memref & "): Couldn't open file:" && aPath && "fileIO error:" && fio.error(fio.status()) 
     1353              else 
     1354                 
    9581355                vergText = fio.readFile() 
    9591356                fio.closeFile() 
    9601357                memscr = memref.scripttext 
    961                 if vergText <> memscr then 
     1358                 
     1359                if vergText = memscr then 
     1360                  put memref.name && "(" & memref & ") has no changes" 
     1361                else 
    9621362                   
    9631363                  isEqual = 0 
     
    9751375                  end if 
    9761376                   
    977                   if isEqual = 0 then 
     1377                  if isEqual <> 0 then 
     1378                    put memref.name && "(" & memref & ") has no changes" 
     1379                  else 
    9781380                     
    9791381                    if length(bbdiffpath) < 1 then 
     
    10091411                    else 
    10101412                       
    1011                        
    1012                       --                      tempSrcPath = mDoShellCmd(me, "mktemp -t temp_BBDiff_file1.ls", 1) 
    1013                       --                      tempSrcPath = tempSrcPath[1] 
    10141413                      tempSrcPath = "/tmp/temp_BBEdit_file.ls" 
    1015                        
    1016                       -- tempSrcHFSPath = mDoShellCmd(me, "osascript -e" && QUOTE & "return POSIX file \" & QUOTE & tempSrcPath & "\" & QUOTE & " as string" & QUOTE, 1) 
    1017                       -- tempSrcHFSPath = tempSrcHFSPath[1] 
    10181414                      tempSrcHFSPath = mConvertUnix2Hfs(me, tempSrcPath) 
    10191415                       
    10201416                      mSaveTextToTempFile(me, memref.scripttext, tempSrcHFSPath) 
    1021                        
    1022                       --                    comm = memref.comments 
    1023                       --                    if comm.length then 
    1024                       --                      if char 1 of comm = "~" then 
    1025                       --                        put shell_Cmd("echo -n $HOME") into char 1 of comm 
    1026                       --                      end if 
    1027                       --                    end if 
    1028                        
    10291417                       
    10301418                      if char 1 of comm = "~" then put "$HOME" into char 1 of comm 
  • trunk/lingosource/castlib1/memberInfo.xml

    r136 r148  
    55                <comments></comments> 
    66                <memberName>doCommandMovieScript</memberName> 
    7                 <fname>doCommandMovieScript</fname> 
     7                <fName>doCommandMovieScript</fName> 
    88        </doCommandMovieScript> 
    99        <thisMoviesScript> 
     
    1111                <comments></comments> 
    1212                <memberName>thisMoviesScript</memberName> 
    13                 <fname>thisMoviesScript</fname> 
     13                <fName>thisMoviesScript</fName> 
    1414        </thisMoviesScript> 
    1515        <keyboardNavigation_FrameLoop> 
     
    1717                <comments></comments> 
    1818                <memberName>keyboardNavigation_FrameLoop</memberName> 
    19                 <fname>keyboardNavigation_FrameLoop</fname> 
     19                <fName>keyboardNavigation_FrameLoop</fName> 
    2020        </keyboardNavigation_FrameLoop> 
    2121        <menu1_button> 
     
    2323                <comments></comments> 
    2424                <memberName>menu1_button</memberName> 
    25                 <fname>menu1_button</fname> 
     25                <fName>menu1_button</fName> 
    2626        </menu1_button> 
    2727        <menu2_button> 
     
    2929                <comments></comments> 
    3030                <memberName>menu2_button</memberName> 
    31                 <fname>menu2_button</fname> 
     31                <fName>menu2_button</fName> 
    3232        </menu2_button> 
    3333        <simpleBMMenu> 
     
    3535                <comments></comments> 
    3636                <memberName>simpleBMMenu</memberName> 
    37                 <fname>simpleBMMenu</fname> 
     37                <fName>simpleBMMenu</fName> 
    3838        </simpleBMMenu> 
    3939        <OSCmenu_Utilities> 
     
    4141                <comments></comments> 
    4242                <memberName>OSCmenu_Utilities</memberName> 
    43                 <fname>OSCmenu_Utilities</fname> 
     43                <fName>OSCmenu_Utilities</fName> 
    4444        </OSCmenu_Utilities> 
    4545        <alexUtilities> 
     
    4747                <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 
    4848                <memberName>alexUtilities</memberName> 
    49                 <fname>alexUtilities</fname> 
     49                <fName>alexUtilities</fName> 
    5050        </alexUtilities> 
    5151        <convert_Lingo_2_CSS_Html> 
     
    5353                <comments>~/Documents/Scripts/lingo/convert_Lingo_2_CSS_Html.ls</comments> 
    5454                <memberName>convert_Lingo_2_CSS_Html</memberName> 
    55                 <fname>convert_Lingo_2_CSS_Html</fname> 
     55                <fName>convert_Lingo_2_CSS_Html</fName> 
    5656        </convert_Lingo_2_CSS_Html> 
    5757        <OSCmenu_Handlers> 
     
    5959                <comments></comments> 
    6060                <memberName>OSCmenu_Handlers</memberName> 
    61                 <fname>OSCmenu_Handlers</fname> 
     61                <fName>OSCmenu_Handlers</fName> 
    6262        </OSCmenu_Handlers> 
    6363        <pastefeld> 
     
    6565                <comments></comments> 
    6666                <memberName>pastefeld</memberName> 
    67                 <fname>pastefeld</fname> 
     67                <fName>pastefeld</fName> 
    6868        </pastefeld> 
    6969        <oldclipboard> 
     
    7171                <comments></comments> 
    7272                <memberName>oldclipboard</memberName> 
    73                 <fname>oldclipboard</fname> 
     73                <fName>oldclipboard</fName> 
    7474        </oldclipboard> 
    7575        <searchword> 
     
    7777                <comments></comments> 
    7878                <memberName>searchword</memberName> 
    79                 <fname>searchword</fname> 
     79                <fName>searchword</fName> 
    8080        </searchword> 
    8181        <resizewindowfs> 
     
    8383                <comments></comments> 
    8484                <memberName>resizewindowfs</memberName> 
    85                 <fname>resizewindowfs</fname> 
     85                <fName>resizewindowfs</fName> 
    8686        </resizewindowfs> 
    8787        <showHideHelp> 
     
    8989                <comments></comments> 
    9090                <memberName>showHideHelp</memberName> 
    91                 <fname>showHideHelp</fname> 
     91                <fName>showHideHelp</fName> 
    9292        </showHideHelp> 
    9393        <helptext> 
     
    9898rtf</comments> 
    9999                <memberName>helptext</memberName> 
    100                 <fname>helptext</fname> 
     100                <fName>helptext</fName> 
    101101        </helptext> 
    102102        <texthyperlinkBehavior> 
     
    104104                <comments>/Users/alex/Documents/ALIEN/myLinkedScripts/texthyperlinkBehavior.ls</comments> 
    105105                <memberName>texthyperlinkBehavior</memberName> 
    106                 <fname>texthyperlinkBehavior</fname> 
     106                <fName>texthyperlinkBehavior</fName> 
    107107        </texthyperlinkBehavior> 
    108108        <statusOutput> 
     
    113113rtf</comments> 
    114114                <memberName>statusOutput</memberName> 
    115                 <fname>statusOutput</fname> 
     115                <fName>statusOutput</fName> 
    116116        </statusOutput> 
    117117        <bbedit_Utilities> 
     
    119119                <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 
    120120                <memberName>bbedit_Utilities</memberName> 
    121                 <fname>bbedit_Utilities</fname> 
     121                <fName>bbedit_Utilities</fName> 
    122122        </bbedit_Utilities> 
    123123        <svn_Utilities> 
     
    125125                <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 
    126126                <memberName>svn_Utilities</memberName> 
    127                 <fname>svn_Utilities</fname> 
     127                <fName>svn_Utilities</fName> 
    128128        </svn_Utilities> 
    129129        <custom_Utilities> 
     
    131131                <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 
    132132                <memberName>custom_Utilities</memberName> 
    133                 <fname>custom_Utilities</fname> 
     133                <fName>custom_Utilities</fName> 
    134134        </custom_Utilities> 
    135135</Untitled> 
  • trunk/lingosource/castlib1/svn_Utilities.ls

    r146 r148  
    29852985end 
    29862986 
     2987 
    29872988-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    29882989 
    2989 on mGetSVNDiffBinaryPath me, workingCopies 
    2990    
    2991   if (mCheckForXtra(me, "budapi") + (mCheckForXtra(me, "Shell") + mCheckForXtra(me, "ff_shell"))) < 2 then 
    2992     alert "You need the shell xtra and the buddyApi xtra in order to proceed" 
    2993     return "" 
     2990on mGetWorkingCopyPath me, movieIdentifier, chooseNewPath, workingCopies, selectMsg 
     2991   
     2992  movieIdentifier = string(movieIdentifier) 
     2993  if length(movieIdentifier) < 1 then 
     2994    movieIdentifier = the moviepath & the moviename 
    29942995  end if 
    29952996   
     
    30013002  end if 
    30023003   
    3003    
    3004   svnBinary = string(workingCopies.getaprop(#svnDiffBinary)) 
    3005    
    3006    
    3007   if baFileExists(svnBinary) <> 1 then svnBinary = "" 
    3008    
    3009    
    3010   if length(svnBinary) < 1 then 
    3011      
    3012     alert "There is not yet an application specified to handle file diffs. Please select the applivcation you want to use, e.g. TortoiseMerge in your Tortoise folder, if you are using Tortoise." 
    3013     svnBinary = mGetFilePathFromUser(me) 
    3014     if length(svnBinary) < 1 then return "" 
    3015      
    3016   end if 
    3017    
    3018   if baFileExists(svnBinary) <> 1 then 
    3019     alert "The path to the svn diff binary seems to have changed. Please try again in order to search the path." 
    3020     svnBinary = "" 
    3021   end if 
    3022    
    3023    
    3024    
    3025   workingCopies.setaprop(#svnDiffBinary, svnBinary) 
    3026    
    3027   if savePrefs = 1 then setPref("svn_workingCopies_paths.txt", string(workingCopies)) 
    3028    
    3029   return svnBinary 
    3030    
    3031 end 
    3032  
    3033 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    3034  
    3035 on mGetWorkingCopyPath me, movieIdentifier, chooseNewPath, workingCopies, selectMsg 
    3036    
    3037   movieIdentifier = string(movieIdentifier) 
    3038   if length(movieIdentifier) < 1 then 
    3039     movieIdentifier = the moviepath & the moviename 
    3040   end if 
    3041    
    3042   savePrefs = 0 
    3043   if ilk(workingCopies) <> #proplist then 
    3044     workingCopies = value(getPref("svn_workingCopies_paths.txt")) 
    3045     if ilk(workingCopies) <> #proplist then workingCopies = [:] 
    3046     savePrefs = 1 
    3047   end if 
    3048    
    30493004  workingFolder = string(workingCopies.getaprop(movieIdentifier)) 
    30503005   
  • trunk/lingosource/castlib2/memberInfo.xml

    r136 r148  
    55                <comments>~/Documents/Scripts/lingo/commonMovieScript.ls</comments> 
    66                <memberName>commonMovieScript</memberName> 
    7                 <fname>commonMovieScript</fname> 
     7                <fName>commonMovieScript</fName> 
    88        </commonmoviescript> 
    99        <FileIOFunktionen> 
     
    1111                <comments>~/Documents/Scripts/lingo/FileIOFunktionen.ls</comments> 
    1212                <memberName>FileIOFunktionen</memberName> 
    13                 <fname>FileIOFunktionen</fname> 
     13                <fName>FileIOFunktionen</fName> 
    1414        </FileIOFunktionen> 
    1515        <GetSetPrefs> 
     
    1717                <comments>~/Documents/Scripts/lingo/GetSetPrefs.ls</comments> 
    1818                <memberName>GetSetPrefs</memberName> 
    19                 <fname>GetSetPrefs</fname> 
     19                <fName>GetSetPrefs</fName> 
    2020        </GetSetPrefs> 
    2121        <aleXtrasMovieScript> 
     
    2323                <comments>~/Documents/Scripts/lingo/aleXtrasMovieScript.ls</comments> 
    2424                <memberName>aleXtrasMovieScript</memberName> 
    25                 <fname>aleXtrasMovieScript</fname> 
     25                <fName>aleXtrasMovieScript</fName> 
    2626        </aleXtrasMovieScript> 
    2727        <PseudoXMLPS> 
     
    2929                <comments>~/Documents/Scripts/lingo/PseudoXMLPS.ls</comments> 
    3030                <memberName>PseudoXMLPS</memberName> 
    31                 <fname>PseudoXMLPS</fname> 
     31                <fName>PseudoXMLPS</fName> 
    3232        </PseudoXMLPS> 
    3333        <simpleGoToAction> 
     
    3535                <comments>/Users/alex/Documents/ALIEN/myLinkedScripts/simpleGoToAction.ls</comments> 
    3636                <memberName>simpleGoToAction</memberName> 
    37                 <fname>simpleGoToAction</fname> 
     37                <fName>simpleGoToAction</fName> 
    3838        </simpleGoToAction> 
    3939        <SpriteNameBeaver> 
     
    4141                <comments>~/Documents/Scripts/lingo/SpriteNameBeaver.ls</comments> 
    4242                <memberName>SpriteNameBeaver</memberName> 
    43                 <fname>SpriteNameBeaver</fname> 
     43                <fName>SpriteNameBeaver</fName> 
    4444        </SpriteNameBeaver> 
    4545</Untitled> 
Note: See TracChangeset for help on using the changeset viewer.