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

Changeset 257 for trunk/lingosource


Ignore:
Timestamp:
10/03/11 18:02:39 (8 months ago)
Author:
alex
Message:

updated to D11 format

Location:
trunk/lingosource/castlib1
Files:
5 edited

Legend:

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

    r245 r257  
    35403540  end if 
    35413541   
    3542   -- pUPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZZçË"&vA& "€Ì‚ƒéæèêíëì„îñï 
    3543 Íòôۆ®¯ÎÙ" 
    3544   -- pLowercase = "abcdefghijklmnopqrstuvwxyz‡ˆ"&"‰"&"Š‹ŒŽ‘’“”•–—˜™š›œžŸŸ¿ÏØ" 
    3545   pCaseLists.setaprop(#uppercase, ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "ç", "Ë", vA, "A", "€", "Ì", "", "‚", "ƒ", "é", "æ", "è", "ê", "í", "ë", "ì", "„", "î", "ñ", "ï", " 
    3546 ", "Í", "ò", "ô", "U", "†", "®", "¯", "Î", "Ù"]) 
    3547   pCaseLists.setaprop(#lowercase, ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "‡", "ˆ", vA, "‰", "Š", "‹", "Œ", "", "Ž", "", "", "‘", "’", "“", "”", "•", "–", "—", "˜", "™", "š", "›", "œ", "", "ž", "Ÿ", "Ÿ", "¿", "Ï", "Ø"]) 
     3542  -- pUPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZZÁÀ"&vA& "ÄÃà
     3543ÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙ€ÜÆØŒŞ" 
     3544  -- pLowercase = "abcdefghijklmnopqrstuvwxyzáà"&"â"&"ÀãåçéÚêëíìîïñóòÎöõúùûÌÊÞœÿ" 
     3545  pCaseLists.setaprop(#uppercase, ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "Á", "À", vA, "A", "Ä", "Ã", "à
     3546", "Ç", "É", "È", "Ê", "Ë", "Í", "Ì", "Î", "Ï", "Ñ", "Ó", "Ò", "Ô", "Ö", "Õ", "Ú", "Ù", "U", "Ü", "Æ", "Ø", "Œ", "Åž"]) 
     3547  pCaseLists.setaprop(#lowercase, ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "á", "à", vA, "â", "À", "ã", "Ã¥", "ç", "é", "Ú", "ê", "ë", "í", "ì", "î", "ï", "ñ", "ó", "ò", "ÃŽ", "ö", "õ", "ú", "ù", "û", "ÃŒ", "Ê", "Þ", "œ", "ÿ"]) 
    35483548   
    35493549end 
     
    36473647on mFindUnixAppInPath me, whichBinaryName 
    36483648   
    3649   binaryPath = [] 
    3650    
    3651   binaryPath = mDoShellCmd(me, "for thisBinPath in /usr/bin /bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /opt/sbin /opt/bin /opt/local/sbin /opt/local/bin /sw/bin /sw/sbin ; do find $thisBinPath -name " & whichBinaryName & " ; done", RETURN, 0, 1) 
    3652    
    3653   if count(binaryPath) > 0 then return binaryPath[1] 
     3649  binaryPath = mDoShellCmd(me, "which" && whichBinaryName, RETURN, 0, 1) 
     3650  if count(binaryPath) < 1 then 
     3651    binaryPath = mDoShellCmd(me, "for thisBinPath in /usr/bin /bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /opt/sbin /opt/bin /opt/local/sbin /opt/local/bin /sw/bin /sw/sbin ; do if [ -d $thisBinPath ]; then find $thisBinPath -name " & whichBinaryName & "; fi ; done", RETURN, 0, 1) 
     3652  end if 
     3653  cnt = count(binaryPath) 
     3654  if cnt > 0 then 
     3655    repeat with n = 1 to cnt 
     3656      if count(mDoShellCmd(me, "if [ -e" && binaryPath[n] && "]; then echo 1; fi", RETURN, 0, 1)) > 0 then return binaryPath[n] 
     3657    end repeat 
     3658  end if 
    36543659   
    36553660  return "" 
  • trunk/lingosource/castlib1/bbedit_Utilities.ls

    r253 r257  
    5454  editor = string(editor) 
    5555  if length(editor) < 1 then 
    56     clistr = "bbedit" 
     56    clistr = mFindUnixAppInPath(me, "bbedit") 
     57    if length(clistr) < 1 then 
     58      alert "BBedit not found in your path!" 
     59      exit 
     60    end if 
    5761  else 
    5862    clistr = QUOTE & editor & QUOTE 
     
    118122  end if 
    119123   
     124  bbeditBinary = mFindUnixAppInPath(me, "bbedit") 
     125  if length(bbeditBinary) < 1 then 
     126    alert "BBEdit was not found in your PATH!" 
     127    exit 
     128  end if 
     129   
    120130  cl = the activecastlib 
    121131  sel = the selection of castlib cl 
    122    
    123132   
    124133  repeat with sub in sel 
     
    152161            alert "Unable to save file:" && tempSrcHFSPath 
    153162          else 
    154             mDoShellCmd(me, "bbedit --wait --resume " & tempSrcPath) 
     163            mDoShellCmd(me, bbeditBinary && "--wait --resume " & tempSrcPath) 
    155164             
    156165            theText = mGetTextFromFile(me, tempSrcHFSPath) 
    157166             
    158167            if length(theText) < 1 then 
    159               alert "Something seems wrong: the length of the new text is 0, nating changed. If this was puprosely an empty text, please delete by hand." 
     168              alert "Something seems wrong: the length of the new text is 0, nothing changed. If this was apparently an empty text, please delete by hand." 
    160169            else 
    161170              if theType = #script then 
     
    185194            alert "Unable to save temp file:" && tempSrcHFSPath 
    186195          else 
    187             mDoShellCmd(me, "bbedit " & tempSrcPath) 
     196            mDoShellCmd(me, bbeditBinary && tempSrcPath) 
    188197          end if 
    189198           
     
    426435  end if 
    427436   
    428   bbdiffpath = mDoShellCmd(me, "which bbdiff", RETURN, 0, 1) 
    429   if count(bbdiffpath) > 0 then 
    430     bbdiffpath = bbdiffpath[1] 
     437  bbeditBinary = mFindUnixAppInPath(me, "bbedit") 
     438  if length(bbeditBinary) < 1 then 
     439    alert "BBEdit was not found in your PATH!" 
     440    exit 
     441  end if 
     442   
     443  bbdiffpath = mFindUnixAppInPath(me, "bbdiff") 
     444  if length(bbdiffpath) < 1 then 
     445    alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer." 
    431446  else 
    432     bbdiffpath = "" 
    433     alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer." 
    434   end if 
    435    
    436   if length(bbdiffpath) > 0 then 
    437447    if mCheckForXtra(me, "FileIO") = 0 then 
    438448      alert "FileIO Xtra missing!" 
     
    520530            neuer.text = theText 
    521531            copyToClipBoard(neuer) 
    522             mDoShellCmd(me, "pbpaste | bbedit") 
     532            mDoShellCmd(me, "pbpaste |" && bbeditBinary) 
    523533             
    524534             
    525535            neuer.text = theText2 
    526536            copyToClipBoard(neuer) 
    527             mDoShellCmd(me, "pbpaste | bbedit") 
     537            mDoShellCmd(me, "pbpaste |" && bbeditBinary) 
    528538             
    529539             
     
    623633  end if 
    624634   
    625   --  bbdiffpath = shell_cmd_list("which bbdiff") 
    626   --  if count(bbdiffpath) > 0 then 
    627   --    bbdiffpath = bbdiffpath[1] 
    628   --  else 
    629   --    bbdiffpath = "" 
    630   --    alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer." 
    631   --  end if 
    632    
    633    
    634   bbdiffpath = mDoShellCmd(me, "which bbdiff", RETURN, 0, 1) 
    635    
    636   if count(bbdiffpath) > 0 then 
    637     bbdiffpath = bbdiffpath[1] 
    638   else 
     635   
     636  bbdiffpath = mFindUnixAppInPath(me, "bbdiff") 
     637  if length(bbdiffpath) < 1 then 
    639638    alert "This function only works with BBDiff, a command line tool provided by BBEdit. Consider installing BBEdits command line tools, it is really helpful." 
    640     exit  
     639    exit 
    641640  end if 
    642641   
     
    11551154   
    11561155  the itemdelimiter = olddelim 
    1157    
    1158   put "Path from member comments is" && aPath 
    11591156   
    11601157  return aPath 
     
    13161313     
    13171314    if mCheckForXtra(me, "Shell") = 1 or mCheckForXtra(me, "ff_shell") = 1 then 
    1318       bbdiffpath = mDoShellCmd(me, "which bbdiff", RETURN, 0, 1) 
    1319       if count(bbdiffpath) > 0 then 
    1320         bbdiffpath = bbdiffpath[1] 
    1321       else 
    1322         bbdiffpath = "" 
     1315       
     1316      bbeditBinary = mFindUnixAppInPath(me, "bbedit") 
     1317       
     1318      bbdiffpath = mFindUnixAppInPath(me, "bbdiff") 
     1319      if length(bbdiffpath) < 1 then 
    13231320        alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer." 
    13241321      end if 
     
    14061403                        put "-------------------------------------------------------" 
    14071404                        put RETURN&"neuer = new(#field)"&RETURN&"neuer.text = "&memref&".scripttext"&RETURN&"neuer.copyToClipBoard()"&RETURN&"neuer.erase()"&RETURN 
    1408                         put RETURN&"shell_cmd("&QUOTE&"PBPaste | BBedit ; BBedit " & line 1 of memref.comments & QUOTE&")"&RETURN 
     1405                        if length(bbeditBinary) > 0 then 
     1406                          put RETURN&"shell_cmd("&QUOTE&"PBPaste |" && bbeditBinary && ";" && bbeditBinary && line 1 of memref.comments & QUOTE&")"&RETURN 
     1407                        else 
     1408                          put "BBEdit not found in PATH" 
     1409                        end if 
    14091410                      else 
    14101411                         
     
    14121413                          put "-------------------------------------------------------" 
    14131414                          put RETURN&"neuer = new(#field)"&RETURN&"neuer.text = "&memref&".scripttext"&RETURN&"neuer.copyToClipBoard()"&RETURN&"neuer.erase()"&RETURN 
    1414                           put RETURN&"shell_cmd("&QUOTE&"PBPaste | BBedit ; BBedit " & line 1 of memref.comments &QUOTE&")"&RETURN 
    1415                            
     1415                          if length(bbeditBinary) > 0 then 
     1416                            put RETURN&"shell_cmd("&QUOTE&"PBPaste |" && bbeditBinary && ";" && bbeditBinary && line 1 of memref.comments & QUOTE&")"&RETURN 
     1417                          else 
     1418                            put "BBEdit not found in PATH" 
     1419                          end if 
    14161420                        else 
    14171421                           
     
    14241428                          if char 1 of comm = "~" then put "$HOME" into char 1 of comm 
    14251429                           
    1426                           mDoShellCmd(me, "PBPaste | BBedit ; BBedit " & comm) 
     1430                           
     1431                          if length(bbeditBinary) > 0 then 
     1432                            mDoShellCmd(me, "PBPaste |" && bbeditBinary && ";" && bbeditBinary && comm) 
     1433                          else 
     1434                            put "BBEdit not found in PATH" 
     1435                          end if 
    14271436                           
    14281437                        end if 
     
    14971506  sel = the selection of castlib cl 
    14981507   
    1499   clistr = "bbedit" 
     1508  clistr = mFindUnixAppInPath(me, "bbedit") 
     1509  if length(clistr) < 1 then 
     1510    alert "BBEdit was not found in your PATH!" 
     1511    exit 
     1512  end if 
    15001513   
    15011514  -- home = mDoShellCmd(me, "echo -n $HOME") 
  • trunk/lingosource/castlib1/memberInfo.xml

    r250 r257  
    33        <subversion_version_field> 
    44                <scriptType>#field</scriptType> 
    5                 <comments>http://www.farbflash.de/cgi-bin/versionChecker.pl?movieName=HandlerMenu_OSC?movieName=HandlerMenu_OSC</comments> 
     5                <comments>http://www.farbflash.de/cgi-bin/versionChecker.pl?movieName=HandlerMenu_OSC?movieName=HandlerMenu_OSC?movieName=HandlerMenu_OSC</comments> 
    66                <memberName>subversion_version_field</memberName> 
    77                <fname>subversion_version_field</fname> 
  • trunk/lingosource/castlib1/subversion_version_field.txt

    r253 r257  
    1 r255 
     1r258 
  • trunk/lingosource/castlib1/texthyperlinkBehavior.ls

    r244 r257  
    11-- Hyperlink Behavior for custom hyperlink colors in #text members 
    2 -- ©03 alex da franca -- alex@farbflash.de 
     2-- ©03 alex da franca -- alex@farbflash.de 
    33 
    44property pSprite 
Note: See TracChangeset for help on using the changeset viewer.