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

Changeset 253


Ignore:
Timestamp:
09/29/11 15:38:41 (8 months ago)
Author:
alex
Message:

updated scripts, fixed personal folder on windows, which points to documents on NOT to home as I thought, added fix for subversion 1.7

Location:
trunk/lingosource
Files:
7 edited

Legend:

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

    r250 r253  
    10261026 
    10271027-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     1028 
     1029on mGetUserHomeFolderPath me 
     1030  isMac = (the platform contains "mac") 
     1031  if isMac then 
     1032    CurrentOSXUserName = mGetCurrentOSXUserName(me) 
     1033    return "/Users/" & CurrentOSXUserName 
     1034  end if 
     1035   
     1036  homedir = baSysFolder("personal") 
     1037  old = the itemdelimiter 
     1038  the itemdelimiter = "\" 
     1039  delete the last item of homedir 
     1040  delete the last item of homedir 
     1041  the itemdelimiter = old 
     1042  return homedir 
     1043end 
     1044 
     1045-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    10281046-- get the absolute pathname of alex linked library script from members comment 
    10291047-- memref is required => member reference 
     
    10531071     
    10541072    if comm starts "~" then -- OSX current user directory 
    1055       if isMac then 
    1056         put "/Users/"&CurrentOSXUserName into char 1 of comm 
    1057       else 
    1058         offs = offset("/", comm) 
    1059         repeat while offs > 0 
    1060           put "\" into char offs of comm 
    1061           offs = offset("/", comm) 
    1062         end repeat 
    1063         put baSysFolder("personal") into char 1 to 2 of comm 
    1064         aPath = comm 
    1065       end if 
     1073       
     1074      put mGetUserHomeFolderPath(me) into char 1 of comm 
     1075      aPath = comm 
     1076      --      if isMac then 
     1077      --        put "/Users/"&CurrentOSXUserName into char 1 of comm 
     1078      --      else 
     1079      --        offs = offset("/", comm) 
     1080      --        repeat while offs > 0 
     1081      --          put "\" into char offs of comm 
     1082      --          offs = offset("/", comm) 
     1083      --        end repeat 
     1084      --        put baSysFolder("personal") into char 1 to 2 of comm 
     1085      --        aPath = comm 
     1086      --      end if 
    10661087    end if 
    10671088     
     
    10831104         
    10841105        if comm starts "/Users/alex/" then 
    1085           put baSysFolder("personal") into char 1 to 12 of comm 
     1106          put mGetUserHomeFolderPath(me) & "\" into char 1 to 12 of comm 
    10861107        end if 
    10871108        aPath = comm 
     
    10921113    else if comm starts "@" then -- relative path with @ 
    10931114       
    1094       if delim <> ":" then 
    1095         offs = offset(":", comm) 
     1115      if delim <> "" then 
     1116        offs = offset("", comm) 
    10961117        repeat while offs > 0 
    10971118          put delim into char offs of comm 
    1098           offs = offset(":", comm) 
     1119          offs = offset("", comm) 
    10991120        end repeat 
    11001121      end if 
     
    11351156  the itemdelimiter = olddelim 
    11361157   
     1158  put "Path from member comments is" && aPath 
     1159   
    11371160  return aPath 
    11381161   
    11391162end 
    1140  
    1141  
    1142  
    11431163 
    11441164-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
  • trunk/lingosource/castlib1/subversion_version_field.txt

    r250 r253  
    1 r251 
     1r255 
  • trunk/lingosource/castlib1/svn_Utilities.ls

    r245 r253  
    34503450  if length(workingFolder) < 1 then return "" 
    34513451   
     3452  if checkIfPathIsSVNWorkingCopy(me, workingFolder) <> 1 then 
     3453    alert workingFolder && "does not appear to be a svn working copy." 
     3454    workingCopies.deleteprop(movieIdentifier) 
     3455    return "" 
     3456  end if 
     3457   
     3458  workingCopies.setaprop(movieIdentifier, workingFolder) 
     3459   
     3460  if savePrefs = 1 then setPref("svn_workingCopies_paths.txt", string(workingCopies)) 
     3461   
     3462  return workingFolder 
     3463   
     3464end 
     3465 
     3466-- starting with version 1.7 now subversion keeps its metadata in only the root of a working copy 
     3467-- instead like how it was before in every folder, like it has been in git from the beginning 
     3468-- good move! But we now must check all the path upwoards to find the .svn folder in order to check 
     3469-- whether we have a working directory 
     3470 
     3471on checkIfPathIsSVNWorkingCopy me, aPath 
     3472    if length(aPath) < 1 then return 0 
     3473   
    34523474  delim = the last char of the applicationpath 
    3453   if the last char of workingFolder <> delim then put delim after workingFolder 
    3454    
    3455   if baFolderExists(workingFolder & ".svn") <> 1 then 
    3456      
    3457     alert workingFolder && "does not appear to be a svn working copy." 
    3458      
    3459     workingCopies.deleteprop(movieIdentifier) 
    3460      
    3461     return "" 
    3462   end if 
    3463    
    3464   workingCopies.setaprop(movieIdentifier, workingFolder) 
    3465    
    3466   if savePrefs = 1 then setPref("svn_workingCopies_paths.txt", string(workingCopies)) 
    3467    
    3468   return workingFolder 
    3469    
     3475  if the last char of aPath <> delim then put delim after aPath 
     3476   
     3477  if baFolderExists(aPath & ".svn") <> 1 then 
     3478    olddelim = the itemdelimiter 
     3479    the itemdelimiter = delim 
     3480    delete the last item of aPath 
     3481    delete the last item of aPath 
     3482    the itemdelimiter = olddelim 
     3483    return checkIfPathIsSVNWorkingCopy(me, aPath) 
     3484  end if 
     3485   
     3486  return 1 
    34703487end 
    3471  
  • trunk/lingosource/castlib2/PseudoXMLPS.ls

    r245 r253  
    886886on mEscapeSpecialChars me, str 
    887887   
    888   val = mReplaceAllGT(me, val, "&", "&amp;") 
    889   val = mReplaceAllGT(me, string(str), "<", "&lt;") 
     888  val = mReplaceAllGT(me, string(str), "&", "&amp;") 
     889  val = mReplaceAllGT(me, val, "<", "&lt;") 
    890890  val = mReplaceAllGT(me, val, ">", "&gt;") 
    891891  val = mReplaceAllGT(me, val, "'", "&apos;") 
  • trunk/lingosource/castlib2/aleXtrasMovieScript.ls

    r245 r253  
    115115      put "Script" && QUOTE & str_scrName & QUOTE && "is missing! This may cause unwanted behavior" 
    116116    end if 
    117     inst = [] 
    118   end if 
     117      inst = [] 
     118    end if 
    119119  if ilk(inst) = #instance then 
    120120    if inst.handler(#new) = 1 then inst.new() 
     
    237237  end repeat 
    238238  includes.deleteOne(#commonMovieScript) 
    239   globs[#gParentScriptInstances] = includes 
     239    globs[#gParentScriptInstances] = includes 
    240240   
    241241  exit 
     
    284284  if not(objectP(incl)) then 
    285285    put "No scriptinstances stored" 
    286     exit 
     286  exit 
    287287  end if 
    288288   
    289289  anz = count(incl) 
    290290  repeat with n = 1 to anz 
    291     put RETURN & "scr = mGetXScript(#"&incl.getPropAt(n)&")" & RETURN 
     291    put RETURN & "scr = xscr().mGetInstance(" & QUOTE & incl.getPropAt(n) & QUOTE & ")" & RETURN 
    292292  end repeat 
    293293  put RETURN & "put scr.handlers()" & RETURN 
  • trunk/lingosource/castlib2/commonMovieScript.ls

    r245 r253  
    416416end 
    417417 
     418 
     419-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     420 
     421on mIsAtLeastVersionOf me, proplist_or_number_productVersionInfo 
     422  ----------------------------------- 
     423  --         CREATED: 08.02.2011 
     424  --         ACTION: Check whether player version number and productbuildversion 
     425  --                 meet at least a certain value 
     426  --         INPUT: <proplist_or_number_productVersionInfo> ; proplist or number ; if number: => 
     427  --                                                             at least version xy 
     428  --                             if proplist then at least version productVersionInfo[#versionNumber] => #number 
     429  --                                  AND (if defined) productVersionInfo[#buildnumber] => number 
     430  --         RETURNS: boolean (integer) => true if current version is at least the specified version or higher 
     431  ----------------------------------- 
     432   
     433  if ilk(proplist_or_number_productVersionInfo) = #proplist then 
     434    versionNumber = proplist_or_number_productVersionInfo[#versionNumber] 
     435    buildnumber = proplist_or_number_productVersionInfo[#buildnumber] 
     436  else 
     437    versionNumber = proplist_or_number_productVersionInfo 
     438    buildnumber = 0 
     439  end if 
     440   
     441  if ilk(versionNumber, #number) <> 1 then versionNumber = 0 -- in dubio pro reo 
     442  if ilk(buildnumber, #number) <> 1 then buildnumber = 0 -- in dubio pro reo 
     443   
     444  currVersion = mGetVersionNumber(me) 
     445   
     446  if currVersion > versionNumber then return true 
     447  if currVersion < versionNumber then return false 
     448   
     449  env = mGetEnvironment(me) 
     450  currentBuildNumber = integer(env[#productBuildVersion]) 
     451  if buildnumber > currentBuildNumber then return false 
     452  return true 
     453end 
     454 
    418455-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    419456 
     
    680717      retval = sendSprite(spr, hnd, callbackObject, p1, p2, p3) 
    681718  end case 
     719   
     720  -- due to a stupid bug in 11.5.9.629 we can get <NULL> as a result of call() and on windows/shockwave it compares to 1 as true 
     721  -- voidP(<NULL>) = false, but ilk(<NULL>) = #void therefore we force void here 
     722  -- unfortunately there is another bug in director, which will throw a script error, if we use ilk() on deeted 3-D models 
     723  -- therefore we have to check voidP() BEFORE ilk()! oh well... 
     724  if voidP(retval) then retval = void 
     725  if ilk(retval) = #void then retval = void 
    682726   
    683727  return retval 
     
    16541698 
    16551699-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     1700 
     1701on mCheckForValidImage me, image_img 
     1702  ----------------------------------- 
     1703  -- CREATED: 21.04.2010 
     1704  -- ACTION: Check whether the parameter is a valid image object. 
     1705  --         Unfortunately there are sometimes cases where we end up with an 
     1706  --         image object, which errors out on each IL operation 
     1707  --         It is image:0 its ilk() is #image, but you can't even refer to its width 
     1708  --         without running into script errors. Therefore we need a lame string comparison 
     1709  --         as this image object has none of an image objects properties and methods :-( 
     1710  --         LAME!! Because string comaparison is a lame and slow hack. So don't use this handler "for fun" 
     1711  -- INPUT: <image_img> ; any 
     1712  -- RETURNS: boolean ; true if the parameter is an image with a with or height > 0 
     1713  -- EXAMPLE: put xscr().mCheckForValidImage(image(1,1,1)) 
     1714  --          -- 1 
     1715  ----------------------------------- 
     1716   
     1717  if ilk(image_img) <> #image then return 0 
     1718  if string(image_img) = "<image:0>" then return 0 
     1719  if image_img.width * image_img.height < 1 then return 0 
     1720  return 1 
     1721end 
     1722 
     1723-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    16561724on ____MATH_UTILITIES 
    16571725end 
     
    16841752-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    16851753 
     1754on mIsPowerOfTwo me, integer_num 
     1755  return (bitand(integer_num, integer_num - 1) = 0) 
     1756end 
     1757 
     1758-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     1759 
    16861760on mGetNextPowerOfTwo me, breite 
    16871761  powerList = mGetPowerOf2List(me) 
     
    17441818  the itemdelimiter = olddelim 
    17451819   
    1746    
    1747   len = length(dateiname) 
    1748   ext = "" 
    1749   until = max(1, len-8) -- let's pretend, that a file extension is not langer than 8 chars 
    1750    
    1751   repeat with n = len down to until 
    1752     this = dateiname.char[n] 
    1753     put this before ext 
    1754     delete char n of dateiname 
    1755     if this = "." then exit repeat 
    1756   end repeat 
    1757    
    1758   if char 1 of ext <> "." then -- no extension 
    1759     put ext after dateiname 
    1760     ext = "" 
    1761   end if 
    1762    
    1763   return [#basedir:fname, #basename:dateiname, #extension:ext] 
    1764    
     1820  ext = mSplitFromEnd(me, dateiname, ".") 
     1821   
     1822  return [#basedir:fname, #basename:ext[#basename], #extension:ext[#extension]] 
     1823   
     1824end 
     1825 
     1826-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     1827 
     1828on mSplitFromEnd me, string_source, char_delim 
     1829  ----------------------------------- 
     1830  -- CREATED: 23.03.2010 
     1831  -- ACTION: Get the file extension 
     1832  --         (or use any other SINGLE char to get the remaining bits of a string AFTER that char) 
     1833  -- INPUT: <string_source> ; string ; the input string 
     1834  --        <char_delim> ; string ; one char to be used as the itemdelimiter => optional, default = "." 
     1835  -- RETURNS: property list with [#basename:"", #extension:""] 
     1836  -- EXAMPLE: put xscr().mSplitFromEnd("com.adobe.director.plist", ".") 
     1837  --          -- [#basename:"com.adobe.director", #extension:"plist"] 
     1838  ----------------------------------- 
     1839   
     1840  char_delim = string(char_delim) 
     1841  if length(char_delim) > 0 then 
     1842    char_delim = char 1 of char_delim 
     1843  else 
     1844    char_delim = "." -- defaults to . => find file extension 
     1845  end if 
     1846   
     1847  if offset(char_delim, string_source) < 1 then 
     1848    return [#basename:string_source, #extension:""] 
     1849  end if 
     1850   
     1851  olddelim = the itemdelimiter 
     1852  the itemdelimiter = char_delim 
     1853  ext = the last item of string_source 
     1854  delete the last item of string_source 
     1855  the itemdelimiter = olddelim 
     1856  return [#basename:string_source, #extension:ext] 
    17651857end 
    17661858 
     
    17691861on mConvertAbsolutePathToRelative me, aPath, newDelim, anAbsoluteBasedir 
    17701862   
     1863   
     1864   
    17711865  anAbsoluteBasedir = string(anAbsoluteBasedir) 
     1866  if length(anAbsoluteBasedir) < 1 then 
     1867     
     1868    if not(the runmode contains "auth") then 
     1869      externalPathHackList = mGetPlayBackModeValue(me, #externalPathHackList) 
     1870      if listP(externalPathHackList) then 
     1871         
     1872        delim = the last char of the moviepath 
     1873        if length(delim) < 1 then 
     1874          if (the runmode contains "plug") then 
     1875            delim = "/" 
     1876          else 
     1877            delim = the last char of the applicationpath 
     1878          end if 
     1879        end if 
     1880         
     1881        repeat with thisHack in externalPathHackList 
     1882          if ilk(thisHack) = #proplist then 
     1883            ident = thisHack[#identifier] 
     1884             
     1885            if delim <> "/" then 
     1886              offs = offset("/", ident) 
     1887              repeat while offs > 0 
     1888                put delim into char offs of ident 
     1889                offs = offset("/", ident) 
     1890              end repeat 
     1891            end if 
     1892             
     1893            if offset(ident, aPath) > 0 then 
     1894              if aPath starts thisHack[#basePath] & ident then 
     1895                anAbsoluteBasedir = thisHack[#basePath] 
     1896                exit repeat 
     1897              end if 
     1898            end if 
     1899          end if 
     1900        end repeat 
     1901      end if 
     1902    end if 
     1903     
    17721904  if length(anAbsoluteBasedir) < 1 then anAbsoluteBasedir = the moviepath 
    1773   if length(anAbsoluteBasedir) < 1 then return "" 
     1905     
     1906  end if 
     1907   
     1908  if length(anAbsoluteBasedir) < 1 then return aPath 
    17741909   
    17751910  delim = the last char of the moviepath 
     
    17821917  if offs <> 1 then 
    17831918    put "Script:commonMovieScript; Handler:mConvertAbsolutePathToRelative; The path:" &&QUOTE& aPath &QUOTE&& "is not inside the current path specified" &&QUOTE& anAbsoluteBasedir &QUOTE 
    1784     return "" 
     1919    return aPath 
    17851920  end if 
    17861921  delete char 1 to length(anAbsoluteBasedir) of aPath 
     
    18001935-- convert a relative path to an absolute path: (Sorry, the name of this handler couldn't be more stupid ;-) 
    18011936on mGetRelativePath me, aPath, mp -- mp optional: default = the moviepath 
     1937   
     1938  if aPath contains "maxState" then 
     1939    nothing 
     1940  end if 
     1941   
     1942  if not(the runmode contains "auth") then 
     1943    externalPathHackList = mGetPlayBackModeValue(me, #externalPathHackList) 
     1944    if listP(externalPathHackList) then 
     1945      repeat with thisHack in externalPathHackList 
     1946        if ilk(thisHack) = #proplist then 
     1947          if aPath starts thisHack[#identifier] then 
     1948            mp = thisHack[#basePath] 
     1949            --            alert "changed basepath to:" && mp 
     1950            regexp = thisHack[#regexp] 
     1951            if ilk(regexp) = #proplist then 
     1952              searchString = string(regexp[#searchString]) 
     1953              if length(searchString) > 0 then 
     1954                replacementString = string(regexp[#replacementString]) 
     1955                aPath = jReplaceAll(aPath, searchString, replacementString, "ig", 1) 
     1956              end if 
     1957            end if 
     1958            exit repeat 
     1959          end if 
     1960        end if 
     1961      end repeat 
     1962    end if 
     1963  end if 
    18021964   
    18031965  mp = string(mp) 
     
    20542216    splitPath = mSplitPath(me, fullPath) 
    20552217    dd = 0 
    2056     dup = splitPath.getaprop(#basedir) & splitPath.getaprop(#basename) & backUpSuffix & splitPath.getaprop(#extension) & "_" & dd 
     2218    dup = splitPath.getaprop(#basedir) & splitPath.getaprop(#basename) & backUpSuffix & "." & splitPath.getaprop(#extension) & "_" & dd 
    20572219    repeat while mCheckFileExists(me, dup) = 1 
    20582220      dd = dd + 1 
    2059       dup = splitPath.getaprop(#basedir) & splitPath.getaprop(#basename) & backUpSuffix & splitPath.getaprop(#extension) & "_" & dd 
     2221      dup = splitPath.getaprop(#basedir) & splitPath.getaprop(#basename) & backUpSuffix & "." & splitPath.getaprop(#extension) & "_" & dd 
    20602222    end repeat 
    20612223     
     
    21452307on mUrlEncode me, srcText 
    21462308   
    2147   srcText = urlencode(srcText) 
     2309  srcText = urlencode(string(srcText)) 
    21482310   
    21492311  offs = offset("+", srcText) 
     
    22622424  if integerP(integer(str.char[1])) then put "n__" before str 
    22632425   
     2426  if length(str) < 1 then str = "xxx_" & the milliseconds 
     2427   
    22642428  return str 
    22652429end 
     
    22982462on mHTMLize me, str 
    22992463  if offset("<html", str) < 1 then 
    2300     if offset("<title>", str) < 1 then put "<title>untitled</title>" before str 
     2464    titlePos = offset("</title>", str) 
     2465    if titlePos < 1 then 
     2466      theTitle = "<title>untitled</title>" 
     2467      put theTitle before str 
     2468      firstchar = length(theTitle) 
     2469    else 
     2470      firstchar = titlePos + 7 
     2471    end if 
    23012472    if offset("<body", str) < 1 then 
    2302       put "<body>" before str 
     2473      put "<body>" after char firstchar of str 
    23032474      put "</body>" after str 
    23042475    end if 
     
    25392710-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    25402711 
     2712on mGetDateTimeString me, date_Date 
     2713   
     2714  if ilk(date_Date) <> #date then theDate = the systemdate 
     2715  else theDate = date_Date 
     2716   
     2717  theYear = theDate.year 
     2718   
     2719  theDay = theDate.day 
     2720  if theDay < 10 then theDay = "0" & theDay 
     2721   
     2722  theMonth = theDate.month 
     2723  if theMonth < 10 then theMonth = "0" & theMonth 
     2724   
     2725  theTime = mGetTimeStringFromSeconds(me, theDate.seconds) 
     2726   
     2727  return theYear & "-" & theMonth & "-" & theDay & "T" & theTime 
     2728end 
     2729 
     2730-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2731 
     2732on mGetTimeStringFromSeconds me, integer_SecondsSinceMidnight 
     2733   
     2734  if ilk(integer_SecondsSinceMidnight) <> #integer then secs = (the systemdate).seconds 
     2735  else secs = integer_SecondsSinceMidnight 
     2736   
     2737  hours = secs / 3600 
     2738  if hours < 10 then hours = "0" & hours 
     2739  secs = secs mod 3600 
     2740  mins = secs / 60 
     2741  if mins < 10 then mins = "0" & mins 
     2742  secs = secs mod 60 
     2743  if secs < 10 then secs = "0" & secs 
     2744   
     2745  return hours & ":" & mins & ":" & secs 
     2746end 
     2747 
     2748-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     2749 
    25412750on interface me 
    25422751  str = "Common Movie Script  by alex da franca c2003 -- alex@farbflash.de -- all rigths reserved" 
  • trunk/lingosource/castlib2/scriptTextParser.ls

    r245 r253  
    77-- 
    88-- DESCRIPTION: 
    9 -- - 
     9--              This script parses the scripttext of scriptmembers in order to provide information about 
     10--              handlers, their parameters etc. 
     11--              Obviously this is not of much use, if the movie is protected and thus the scripttext 
     12--              is not available. Nonetheless even without scripttext, there are some infos about scripts 
     13--              which will be provided as a property list with infos or directly as string, which can be "put" 
     14--              into the message window 
    1015-- 
    1116-- REQUIRES: 
     
    1318-- 
    1419-- USAGE: 
    15 -- - 
     20--              This script is used by script "Script_Root_Object" in order to provide some authoring helper handlers 
     21--              for scripts 
    1622-- 
    1723-- EXAMPLE: 
     
    2127 
    2228on handlerList me, script_or_instance_or_member_object, string_keyword, string_prefix, boolean_withLingoDoc, boolean_onlyLingoDoc 
     29  ----------------------------------- 
     30  -- CREATED: 02.03.2010 
     31  -- ACTION: Description 
     32  -- INPUT: <script_or_instance_or_member_object> ; script member 
     33  --        <string_keyword> ; filter, only handlers, which contain/start with/end with this 
     34  --                           keyword will be listed 
     35  --        <string_prefix> ; prefix for the output string of each handler, so that the whole 
     36  --                          line can be used directly for copy+paste 
     37  --        <boolean_withLingoDoc> ; output also the "lingodoc" for each handler 
     38  --                                 "lingodoc" is the comment DIRECTLY after each handler definition 
     39  --                                 until the first NON-comment line 
     40  --        <boolean_onlyLingoDoc> ; only list handlers, which have "lingodoc" (=> public handlers) 
     41  -- RETURNS: string 
     42  -- EXAMPLE: put xscr(#scriptTextParser).handlerList(me, "dler", "xscr(#scriptTextParser)") 
     43  -- -- output lists only handlers which contain the string "dler" 
     44  -- xscr(#scriptTextParser).handlerList(script_or_instance_or_member_object, string_keyword, string_prefix, boolean_withLingoDoc, boolean_onlyLingoDoc) 
     45  -- xscr(#scriptTextParser).mGetHandlerInfoList(member_memref, string_keyword) 
     46  -- xscr(#scriptTextParser).parseHandlerList(list_handlerlist, list_itemList, proplist_memberInfo, string_keyword) 
     47  ----------------------------------- 
    2348   
    2449  infoList = mGetInfoListForItem(me, script_or_instance_or_member_object, string_keyword) 
     
    4772 
    4873on mGetInfoListForItem me, script_or_instance_or_member_object, string_keyword 
     74  ----------------------------------- 
     75  -- CREATED: 02.03.2010 
     76  -- ACTION: Description 
     77  -- INPUT: <script_or_instance_or_member_object> 
     78  --        <string_keyword> 
     79  -- RETURNS: - 
     80  -- EXAMPLE: - 
     81  ----------------------------------- 
     82   
    4983  memberName = "" 
    5084   
     
    86120 
    87121on mGetHandlerInfoList me, member_memref, string_keyword 
     122  ----------------------------------- 
     123  -- CREATED: 02.03.2010 
     124  -- ACTION: Description 
     125  -- INPUT: <member_memref> 
     126  --        <string_keyword> 
     127  -- RETURNS: - 
     128  -- EXAMPLE: - 
     129  ----------------------------------- 
    88130   
    89131  theItems = [] 
Note: See TracChangeset for help on using the changeset viewer.