Changeset 257 for trunk/lingosource
- Timestamp:
- 10/03/11 18:02:39 (8 months ago)
- Location:
- trunk/lingosource/castlib1
- Files:
-
- 5 edited
-
alexUtilities.ls (modified) (2 diffs)
-
bbedit_Utilities.ls (modified) (13 diffs)
-
memberInfo.xml (modified) (1 diff)
-
subversion_version_field.txt (modified) (1 diff)
-
texthyperlinkBehavior.ls (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/alexUtilities.ls
r245 r257 3540 3540 end if 3541 3541 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, "â", "À", "ã", "Ã¥", "ç", "é", "Ú", "ê", "ë", "Ã", "ì", "î", "ï", "ñ", "ó", "ò", "ÃŽ", "ö", "õ", "ú", "ù", "û", "ÃŒ", "Ê", "Þ", "Å", "ÿ"]) 3548 3548 3549 3549 end … … 3647 3647 on mFindUnixAppInPath me, whichBinaryName 3648 3648 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 3654 3659 3655 3660 return "" -
trunk/lingosource/castlib1/bbedit_Utilities.ls
r253 r257 54 54 editor = string(editor) 55 55 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 57 61 else 58 62 clistr = QUOTE & editor & QUOTE … … 118 122 end if 119 123 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 120 130 cl = the activecastlib 121 131 sel = the selection of castlib cl 122 123 132 124 133 repeat with sub in sel … … 152 161 alert "Unable to save file:" && tempSrcHFSPath 153 162 else 154 mDoShellCmd(me, "bbedit--wait --resume " & tempSrcPath)163 mDoShellCmd(me, bbeditBinary && "--wait --resume " & tempSrcPath) 155 164 156 165 theText = mGetTextFromFile(me, tempSrcHFSPath) 157 166 158 167 if length(theText) < 1 then 159 alert "Something seems wrong: the length of the new text is 0, n ating 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." 160 169 else 161 170 if theType = #script then … … 185 194 alert "Unable to save temp file:" && tempSrcHFSPath 186 195 else 187 mDoShellCmd(me, "bbedit "& tempSrcPath)196 mDoShellCmd(me, bbeditBinary && tempSrcPath) 188 197 end if 189 198 … … 426 435 end if 427 436 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." 431 446 else 432 bbdiffpath = ""433 alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer."434 end if435 436 if length(bbdiffpath) > 0 then437 447 if mCheckForXtra(me, "FileIO") = 0 then 438 448 alert "FileIO Xtra missing!" … … 520 530 neuer.text = theText 521 531 copyToClipBoard(neuer) 522 mDoShellCmd(me, "pbpaste | bbedit")532 mDoShellCmd(me, "pbpaste |" && bbeditBinary) 523 533 524 534 525 535 neuer.text = theText2 526 536 copyToClipBoard(neuer) 527 mDoShellCmd(me, "pbpaste | bbedit")537 mDoShellCmd(me, "pbpaste |" && bbeditBinary) 528 538 529 539 … … 623 633 end if 624 634 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 639 638 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 641 640 end if 642 641 … … 1155 1154 1156 1155 the itemdelimiter = olddelim 1157 1158 put "Path from member comments is" && aPath1159 1156 1160 1157 return aPath … … 1316 1313 1317 1314 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 then1320 bbdiffpath = bbdiffpath[1]1321 else1322 bbdiffpath = ""1315 1316 bbeditBinary = mFindUnixAppInPath(me, "bbedit") 1317 1318 bbdiffpath = mFindUnixAppInPath(me, "bbdiff") 1319 if length(bbdiffpath) < 1 then 1323 1320 alert "Consider installing BBEdits command line tools. If we could use bbdiff it would be way nicer." 1324 1321 end if … … 1406 1403 put "-------------------------------------------------------" 1407 1404 put RETURN&"neuer = new(#field)"&RETURN&"neuer.text = "&memref&".scripttext"&RETURN&"neuer.copyToClipBoard()"&RETURN&"neuer.erase()"&RETURN 1408 put RETURN&"shell_cmd(""E&"PBPaste | BBedit ; BBedit " & line 1 of memref.comments & QUOTE&")"&RETURN 1405 if length(bbeditBinary) > 0 then 1406 put RETURN&"shell_cmd(""E&"PBPaste |" && bbeditBinary && ";" && bbeditBinary && line 1 of memref.comments & QUOTE&")"&RETURN 1407 else 1408 put "BBEdit not found in PATH" 1409 end if 1409 1410 else 1410 1411 … … 1412 1413 put "-------------------------------------------------------" 1413 1414 put RETURN&"neuer = new(#field)"&RETURN&"neuer.text = "&memref&".scripttext"&RETURN&"neuer.copyToClipBoard()"&RETURN&"neuer.erase()"&RETURN 1414 put RETURN&"shell_cmd(""E&"PBPaste | BBedit ; BBedit " & line 1 of memref.comments "E&")"&RETURN 1415 1415 if length(bbeditBinary) > 0 then 1416 put RETURN&"shell_cmd(""E&"PBPaste |" && bbeditBinary && ";" && bbeditBinary && line 1 of memref.comments & QUOTE&")"&RETURN 1417 else 1418 put "BBEdit not found in PATH" 1419 end if 1416 1420 else 1417 1421 … … 1424 1428 if char 1 of comm = "~" then put "$HOME" into char 1 of comm 1425 1429 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 1427 1436 1428 1437 end if … … 1497 1506 sel = the selection of castlib cl 1498 1507 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 1500 1513 1501 1514 -- home = mDoShellCmd(me, "echo -n $HOME") -
trunk/lingosource/castlib1/memberInfo.xml
r250 r257 3 3 <subversion_version_field> 4 4 <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> 6 6 <memberName>subversion_version_field</memberName> 7 7 <fname>subversion_version_field</fname> -
trunk/lingosource/castlib1/subversion_version_field.txt
r253 r257 1 r25 51 r258 -
trunk/lingosource/castlib1/texthyperlinkBehavior.ls
r244 r257 1 1 -- Hyperlink Behavior for custom hyperlink colors in #text members 2 -- ©03 alex da franca -- alex@farbflash.de2 -- ©03 alex da franca -- alex@farbflash.de 3 3 4 4 property pSprite
Note: See TracChangeset
for help on using the changeset viewer.
