#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" revScriptLibrary 3 ron resumeStack send menuPick && the cStackName of fld "function list" to btn "library chooser" end resumeStack R revstack falsecREVGetsupdate true Script Library U MS Sans Serif U Geneva U Arial U Arial U Arial U Arial W Arial W Arial U ms sans serif cREVGeometryCache stackID 2703 cREVGeneral scriptChecksum C(̺vv bookmarks handlerList resumeStackscriptSelection char 66 to 65prevHandler resumeStacktempScript script
on resumeStack
send menuPick && the cStackName of fld "function list" to btn "library chooser"
end resumeStack
cREVLoadInfo load chosenrevPreOpenStack false P4on preOpenCard put the fileName of stack "home" into tFilePath set the itemDel to "/" put "components/save/userscripts" into item -1 of tFilePath set the itemDel to comma put the directory into tSaveDirectory set the directory to tFilePath put the files into tFilesList repeat for each line l in tFilesList if there is a stack l then put char 4 to -1 of the short name of stack l & cr after tStacksList end repeat set the directory to tSaveDirectory delete last char of tStacksList set the text of btn "library chooser" to tStacksList send "menuPick" && line 1 of tStacksList to btn "library chooser" end preOpenCard on resizeStack revUpdateGeometry end resizeStack on arrowKey if the focusedObject is empty then send "arrowKey" to fld "function list" pass arrowKey end arrowKey R revcard false cREVGeometryCacheIDs 1023770954078 2688 964484732502 12431023881100726 170001023882124029 170031023609265210 26831023608987593 2677 964487407132 10061023770908568 2685 964487407133 10091023874805155 26931023609106949 2680 964487407135 10141023882180269 26991023609107051 26811023881189370 17002 964487407137 10181023608987682 26781023874787849 2692 964487407138 2684 964484811619 1244 964487407140 10111023770988091 26891023770908576 26861023876956515 26951023881157810 170011023770988098 26901023878849749 2697 cREVGeneral scriptChecksum mi3I9q(Ia bookmarks handlerList preOpenCard resizeStack arrowKeytempScript prevHandler preOpenCardscriptSelection char 584 to 583script mon preOpenCard
put the fileName of stack "home" into tFilePath
set the itemDel to "/"
put "components/save/userscripts" into item -1 of tFilePath
set the itemDel to comma
put the directory into tSaveDirectory
set the directory to tFilePath
put the files into tFilesList
repeat for each line l in tFilesList
if there is a stack l then put char 4 to -1 of the short name of stack l & cr after tStacksList
end repeat
set the directory to tSaveDirectory
delete last char of tStacksList
set the text of btn "library chooser" to tStacksList
send "menuPick" && line 1 of tStacksList to btn "library chooser"
end preOpenCard
on resizeStack
revUpdateGeometry
end resizeStack
on arrowKey
if the focusedObject is empty
then send "arrowKey" to fld "function list"
pass arrowKey
end arrowKey
cREVGeometryCache total 27order u v x y { | } ~ Bk Bj Bi Bh function list )p!on arrowKey send "mouseUp" to me in 10 milliseconds pass arrowKey end arrowKey on mouseUp lock messages lock screen put the cStackName of me into tStackName set the defaultStack to tStackName put line (the hilitedLines of me) of me into tFunction if tCard is empty then set the defaultStack to "revScriptLibrary" put empty into fld "description" put empty into fld "parameters" put empty into fld "returns" disable fld "returns" disable fld "parameters" disable fld "description" disable btn "edit" unlock screen exit mouseUp else set the defaultStack to "revScriptLibrary" enable fld "parameters" enable fld "returns" enable fld "description" enable btn "delete" end if set the defaultStack to tStackName put the cDescription[tFunction] of stack tStackName into fld "description" of stack "revScriptLibrary" put the cParameters[tFunction] of stack tStackName into fld "parameters" of stack "revScriptLibrary" put the cReturns[tFunction] of stack tStackName into fld "returns" of stack "revScriptLibrary" put the script of stack tStackName into tScript set the caseSensitive to true repeat forever put lineOffset(tFunction,tScript) into tLineNumber put line tLineNumber of tScript into tLine if tScript is "" then exit repeat switch word 1 of tLine case "function" put tFunction&&"function" into tDisplay exit repeat case "on" put tFunction&&"handler" into tDisplay exit repeat break case "setProp" put tFunction&&"setProp" into tDisplay exit repeat break case "getProp" put tFunction&&"getProp" into tDisplay exit repeat break default delete line 1 to tLineNumber of tScript break end switch end repeat set the htmlText of fld "function" of stack "revScriptLibrary" to tDisplay unlock screen end mouseUp cStackName libSoundXMLText