Changeset 155
- Timestamp:
- 02/21/08 08:37:53 (4 years ago)
- Location:
- trunk/lingosource/castlib1
- Files:
-
- 3 edited
-
OSCmenu_Utilities.ls (modified) (1 diff)
-
alexUtilities.ls (modified) (6 diffs)
-
bbedit_Utilities.ls (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/OSCmenu_Utilities.ls
r153 r155 28 28 29 29 subli.add("Insert lingodoc script abstract") 30 pLookUpCommandList.setaprop("Insert script abstract", ["snipAbstract me", "alexUtilities"])30 pLookUpCommandList.setaprop("Insert lingodoc script abstract", ["snipAbstract me", "alexUtilities"]) 31 31 32 32 subli.add("Insert lingodoc handler description") 33 pLookUpCommandList.setaprop("Insert divider", ["snipTitle me", "alexUtilities"])33 pLookUpCommandList.setaprop("Insert lingodoc handler description", ["snipTitle me", "alexUtilities"]) 34 34 35 35 li.add("") -
trunk/lingosource/castlib1/alexUtilities.ls
r153 r155 390 390 if the runmode contains "Plugin" then return retval 391 391 392 fio = new(xtra "fileio") 393 394 if not objectP(fio) then return retval 395 396 retval = fio.displayOpen() 397 398 fio = void 392 if mCheckForXtra(me, "BudAPI") = 1 then -- if buddy is present... 393 394 -- if the platform contains "mac" then filter = "" 395 -- else filter = "*.*" 396 return baGetFilename("Please select file", "", "Filename", "*.*", 1, "Select file", 1, -2, -2) 397 398 else 399 fio = new(xtra "fileio") 400 401 if not objectP(fio) then return retval 402 403 retval = fio.displayOpen() 404 405 fio = void 406 407 end if 399 408 400 409 return retval … … 2533 2542 2534 2543 on snipTitle me 2535 str = "-----------------------------------\ 2536 -- CREATED: <currentDate>\ 2537 -- ACTION: Description\ 2538 -- INPUT: -\ 2539 -- RETURNS: -\ 2540 -- CALLER: -\ 2541 -- DEBUG: -\ 2542 -- TODO: -\ 2543 -----------------------------------" 2544 pasteFieldContent str, 1 2544 2545 str = "-----------------------------------"&\ 2546 RETURN & " -- CREATED: <currentDate>"&\ 2547 RETURN & " -- ACTION: Description"&\ 2548 RETURN & " -- INPUT: -"&\ 2549 RETURN & " -- RETURNS: -"&\ 2550 RETURN & " -- CALLER: -"&\ 2551 RETURN & " -- DEBUG: -"&\ 2552 RETURN & " -- TODO: -"&\ 2553 RETURN & "-----------------------------------" 2554 2555 mPasteItem me, str, 1 2556 2545 2557 end 2546 2558 … … 2548 2560 2549 2561 on snipAbstract me 2550 str = "-- <Scriptname>\ 2551 -----------------------------------\ 2552 -- CREATED:\ 2553 -- <currentDate>\ 2554 --\ 2555 -- DESCRIPTION:\ 2556 -- -\ 2557 --\ 2558 -- REQUIRES:\ 2559 -- (Prerequisites)\ 2560 --\ 2561 -- USAGE:\ 2562 -- -\ 2563 --\ 2564 -- PARAMS:\ 2565 -- -\ 2566 --\ 2567 -- RETURNS:\ 2568 -- -\ 2569 --\ 2570 -- WARNINGS:\ 2571 -- -\ 2572 --\ 2573 -- TODO:\ 2574 -- -\ 2575 -----------------------------------" 2576 pasteFieldContent str, 1 2577 end 2578 2579 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2580 2581 on pasteFieldContent whichFieldname, replacePlaceHolder 2582 m = member(whichFieldname) 2583 if ilk(m) <> #member then exit 2584 if [#field, #text].getPos(m.type) > 0 then mPasteItem m.text, replacePlaceHolder 2562 2563 str = " -- <Scriptname>"&\ 2564 RETURN & " -----------------------------------"&\ 2565 RETURN & " -- CREATED:"&\ 2566 RETURN & " -- <currentDate>"&\ 2567 RETURN & " --"&\ 2568 RETURN & " -- DESCRIPTION:"&\ 2569 RETURN & " -- -"&\ 2570 RETURN & " --"&\ 2571 RETURN & " -- REQUIRES:"&\ 2572 RETURN & " -- (Prerequisites)"&\ 2573 RETURN & " --"&\ 2574 RETURN & " -- USAGE:"&\ 2575 RETURN & " -- -"&\ 2576 RETURN & " --"&\ 2577 RETURN & " -- PARAMS:"&\ 2578 RETURN & " -- -"&\ 2579 RETURN & " --"&\ 2580 RETURN & " -- RETURNS:"&\ 2581 RETURN & " -- -"&\ 2582 RETURN & " --"&\ 2583 RETURN & " -- WARNINGS:"&\ 2584 RETURN & " -- -"&\ 2585 RETURN & " --"&\ 2586 RETURN & " -- TODO:"&\ 2587 RETURN & " -- -"&\ 2588 RETURN & " -----------------------------------" 2589 2590 mPasteItem me, str, 1 2591 2585 2592 end 2586 2593 … … 2628 2635 2629 2636 2630 if ilk(theMem) = #member then2637 if ilk(theMem) = #member then 2631 2638 if theMem.type = #script then 2632 2639 … … 2636 2643 placeholders = [["<currentDate>", the short date], ["<scriptname>", theMem.name]] 2637 2644 2638 repeat with repl in placeholders2639 if repl[1] <> repl[2] then2645 repeat with repl in placeholders 2646 if repl[1] <> repl[2] then 2640 2647 offs = offset(repl[1], theText) 2641 2648 repeat while offs > 0 … … 2643 2650 offs = offset(repl[1], theText) 2644 2651 end repeat 2645 end if2646 end repeat2652 end if 2653 end repeat 2647 2654 2648 2655 end if -
trunk/lingosource/castlib1/bbedit_Utilities.ls
r153 r155 103 103 104 104 if length(theText) > 0 then 105 106 105 107 106 if doLiveEdit then … … 142 141 end if 143 142 144 tempSrc Path = mGetTempFilePath(me, theName & ".ls")145 tempSrc HFSPath = mConvertUnix2Hfs(me, tempSrcPath)143 tempSrcHFSPath = mGetTempFilePath(me, theName & ".ls") 144 tempSrcPath = mConvertHfs2Unix(me, tempSrcHFSPath) 146 145 147 146 … … 153 152 mDoShellCmd(me, "bbedit " & tempSrcPath) 154 153 end if 155 156 154 157 155 end if … … 290 288 waitparam = " &" 291 289 editor = mGetMacBinary(me, editor) 292 tempSrcPath = tempSrcHFSPath290 tempSrcPath = mConvertHfs2Unix(me, tempSrcHFSPath) 293 291 else 294 292 waitparam = ""
Note: See TracChangeset
for help on using the changeset viewer.
