#!/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 "$@"  revScriptLibrary3ron resumeStack send menuPick && the cStackName of fld "function list" to btn "library chooser" end resumeStack R revstackfalsecREVGetsupdatetrueScript Library UMS Sans Serif UGeneva UArialUArialUArialUArialWArialWArial Ums sans serifcREVGeometryCachestackID2703 cREVGeneralscriptChecksumC(̺܎vv bookmarks handlerList resumeStackscriptSelection char 66 to 65 prevHandler resumeStack tempScriptscript

on resumeStack

send menuPick && the cStackName of fld "function list" to btn "library chooser"

end resumeStack

 cREVLoadInfoloadchosenrevPreOpenStackfalse 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 RrevcardfalsecREVGeometryCacheIDs10237709540782688 96448473250212431023881100726170001023882124029170031023609265210268310236089875932677 964487407132100610237709085682685 96448740713310091023874805155269310236091069492680 96448740713510141023882180269269910236091070512681102388118937017002 96448740713710181023608987682267810238747878492692 9644874071382684 9644848116191244 96448740714010111023770988091268910237709085762686102387695651526951023881157810170011023770988098269010238788497492697 cREVGeneralscriptChecksummi3I9q(Ia bookmarks handlerList preOpenCard resizeStack arrowKey tempScript prevHandler preOpenCardscriptSelectionchar 584 to 583scriptm

on 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

cREVGeometryCachetotal27order u v x y { | } ~        BkBjBiBh 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  cStackNamelibSoundXMLTextHello cREVGeneralscriptChecksum +er revUniqueID 964487407132 bookmarks handlerListarrowKey mouseUp tempScript prevHandlerarrowKeyscriptSelectionchar 1179 to 1974script

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&&"<font color=gray45><b><i>function</i><b></font>" into tDisplay

exit repeat

case "on"

put tFunction&&"<font color=gray45><b><i>handler</i><b></font>" into tDisplay

exit repeat

break

case "setProp"

put tFunction&&"<font color=gray45><b><i>setProp</i><b></font>" into tDisplay

exit repeat

break

case "getProp"

put tFunction&&"<font color=gray45><b><i>getProp</i><b></font>" 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

 cREVGeometryMaster,scaleBottomObjectSideBottomMastertrueMaster,scaletopObjectRefMaster,scaleLeftObjectRefMaster,scaleBottomObjectRefCardMaster,scaleBottomAbsolutetrueMaster,scaleBottomtrueMaster,scaleTopObjectSidecenterMaster,scaleLeftObjectSidecenterMaster,scalebottomDistance-23Master,expectedRect 6,190,234,434Master,scaleRightAbsolutefalseMaster,scaleRightfalseMaster,scalerightDistance0Master,scaleLeftAbsolutefalseMaster,scaleRightObjectSidecenterMaster,scaleRightObjectRefMaster,scaleTopAbsolutefalseMaster,scaleLeftfalseMaster,scaleTopfalseMaster,cardRanking1Master,scaletopDistance0Master,scaleleftDistance0  mouseDown n`@library chooser uNon menuPick pWhich if pWhich is "" then put line 1 of me into pWhich if char 1 to 3 of pWhich is "lib" then put char 4 to -1 of pWhich into pWhich set the label of me to pWhich put "lib" & pWhich into tStackName 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 hide stack tStackName set the directory to tSaveDirectory put the cRevGeneral["handlerList"] of stack tStackName into tFunctions repeat for each line tLine in tFunctions if char 1 to 4 of tLine <> "priv" then put tLine & cr after tPublicFunctions end if end repeat put char 1 to - 2 of tPublicFunctions into fld "function list" put the cContributingAuthors of stack tStackName into fld "contributing authors" put the cLibraryPurpose of stack tStackName into fld "library purpose" put the cVersion of stack tStackName into fld "version" set the cStackName of fld "function list" to tStackName if the cLoad of stack tStackName is "" then set the hilite of btn "Load" to true else set the hilite of btn "Load" to the cLoad of stack tStackName end if set the hilitedLines of fld "function list" to 1 send "mouseUp" to fld "function list" end menuPick SoundKCursor DataChecking iCoachDataAPI iCoachRowing PDF SMTP Sound Stat XMLText cREVGeneralscriptChecksum*.JinLc revUniqueID 964487407133 bookmarks handlerListmenuPickscriptSelection char 71 to 70 prevHandlermenuPick tempScriptscript

on menuPick pWhich

if pWhich is "" then put line 1 of me into pWhich

if char 1 to 3 of pWhich is "lib" then put char 4 to -1 of pWhich into pWhich

set the label of me to pWhich

put "lib" & pWhich into tStackName

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

hide stack tStackName

set the directory to tSaveDirectory

put the cRevGeneral["handlerList"] of stack tStackName into tFunctions

repeat for each line tLine in tFunctions

if char 1 to 4 of tLine <> "priv" then

put tLine & cr after tPublicFunctions

end if

end repeat

put char 1 to - 2 of tPublicFunctions into fld "function list"

put the cContributingAuthors of stack tStackName into fld "contributing authors"

put the cLibraryPurpose of stack tStackName into fld "library purpose"

put the cVersion of stack tStackName into fld "version"

set the cStackName of fld "function list" to tStackName

if the cLoad of stack tStackName is "" then

set the hilite of btn "Load" to true

else

set the hilite of btn "Load" to the cLoad of stack tStackName

end if

set the hilitedLines of fld "function list" to 1

send "mouseUp" to fld "function list"

end menuPick

 description)p on closeField put line (the hilitedLines of fld "function list") of fld "function list" into tFunction put the cStackName of fld "function list" into tStackName set the cDescription[tFunction] of stack tStackName to me save stack tStackName end closeField Ra] cREVGeometryMaster,scaleBottomObjectSideBottomMastertrueMaster,scaletopObjectRefMaster,scaleLeftObjectRefMaster,scaleBottomObjectRefCardMaster,scaleBottomAbsolutetrueMaster,scaleBottomtrueMaster,scaleTopObjectSidecenterMaster,scaleLeftObjectSidecenterMaster,scalebottomDistance-23Master,expectedRect236,338,539,438Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-5Master,scaleLeftAbsolutefalseMaster,scaleRightObjectSideRightMaster,scaleRightObjectRefCardMaster,scaleTopAbsolutefalseMaster,scaleLeftfalseMaster,scaleTopfalseMaster,cardRanking2Master,scaletopDistance0Master,scaleleftDistance0 cREVGeneralscriptChecksum#u5xߞ2&USC revUniqueID 964487407140 bookmarks handlerList closeFieldscriptSelectionchar 265 to 264 prevHandler closeField tempScriptscript9

on closeField

put line (the hilitedLines of fld "function list") of fld "function list" into tFunction

put the cStackName of fld "function list" into tStackName

set the cDescription[tFunction] of stack tStackName to me

save stack tStackName

end closeField

 If you handle the mouseDown message just make sure it is passed unless you want to override the sound management for that object. p`@<S[  New Field 3 @g cREVGeneral revUniqueID 964487407135 Documentation:Newg Xon mouseUp ask "Please name the new library:" if it is empty then exit mouseUp put "lib" & it into tNewName 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 set the name of the templateStack to tNewName set the destroyStack of the templateStack to false set the visible of the templateStack to false create stack reset the templateStack set the mainStack of stack tNewName to tNewName save stack tNewName as (the directory & "/" & tNewName & ".rev") set the directory to tSaveDirectory lock screen preOpencard send "menuPick" && tNewName to btn "library chooser" of stack "revScriptLibrary" set the label of btn "library chooser" of stack "revScriptLibrary" to char 4 to -1 of tNewName unlock screen end mouseUp @8dBjNew Library... cREVGeneralscriptChecksum{MY󛚋]+ revUniqueID 964487407137 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 11 to 10scriptk

on mouseUp

ask "Please name the new library:"

if it is empty then exit mouseUp

put "lib" & it into tNewName

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

set the name of the templateStack to tNewName

set the destroyStack of the templateStack to false

set the visible of the templateStack to false

create stack

reset the templateStack

set the mainStack of stack tNewName to tNewName

save stack tNewName as (the directory & "/" & tNewName & ".rev")

set the directory to tSaveDirectory

lock screen

preOpencard

send "menuPick" && tNewName to btn "library chooser" of stack "revScriptLibrary"

set the label of btn "library chooser" of stack "revScriptLibrary" to char 4 to -1 of tNewName

unlock screen

end mouseUp

 New Field 3 y cREVGeneral revUniqueID 964484732502 Library Contents: New ButtonAgG cREVGeometryMaster,scaleBottomObjectSidecenterMastertrueMaster,scaletopObjectRefMaster,scaleLeftObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutefalseMaster,scaleBottomfalseMaster,scaleTopObjectSidecenterMaster,scaleLeftObjectSidecenterMaster,scalebottomDistance0Master,expectedRect 3,118,500,120Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-8Master,scaleLeftAbsolutefalseMaster,scaleRightObjectSideRightMaster,scaleRightObjectRefcardMaster,scaleTopAbsolutefalseMaster,scaleLeftfalseMaster,scaleTopfalseMaster,cardRanking1Master,scaletopDistance0Master,scaleleftDistance0 cREVGeneral revUniqueID 964484811619 u New Field 3 g cREVGeneral revUniqueID 1023608987593 Returns: vreturns)pon closeField put line (the hilitedLines of fld "function list") of fld "function list" into tFunction put the cStackName of fld "function list" into tStackName set the cReturns[tFunction] of stack tStackName to me save stack tStackName end closeField a( cREVGeometryMaster,scaleBottomObjectSideBottomMastertrueMaster,scaleLeftObjectRefMaster,scaletopObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutetrueMaster,scaleBottomfalseMaster,scaleLeftObjectSidecenterMaster,scaleTopObjectSidecenterMaster,expectedRect236,142,500,196Master,scalebottomDistance-31Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-5Master,scaleTopAbsolutefalseMaster,scaleRightObjectRefCardMaster,scaleRightObjectSideRightMaster,scaleLeftAbsolutefalseMaster,scaleTopfalseMaster,scaleLeftfalseMaster,cardRanking1Master,scaleleftDistance0Master,scaletopDistance0 cREVGeneralscriptChecksumʲܦ PۨI bookmarks revUniqueID 1023608987682 handlerList closeField tempScript prevHandler closeFieldscriptSelectionchar 184 to 183script5

on closeField

put line (the hilitedLines of fld "function list") of fld "function list" into tFunction

put the cStackName of fld "function list" into tStackName

set the cReturns[tFunction] of stack tStackName to me

save stack tStackName

end closeField

  w`@<& x New Field 3 g cREVGeneral revUniqueID 1023609106949 Parameters: y parameters)pon closeField put line (the hilitedLines of fld "function list") of fld "function list" into tFunction put the cStackName of fld "function list" into tStackName set the cParameters[tFunction] of stack tStackName to me save stack tStackName end closeField a( cREVGeometryMaster,scaleBottomObjectSideBottomMastertrueMaster,scaletopObjectRefMaster,scaleLeftObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutetrueMaster,scaleBottomfalseMaster,scaleTopObjectSidecenterMaster,scaleLeftObjectSidecenterMaster,scalebottomDistance-31Master,expectedRect236,72,500,126Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-5Master,scaleLeftAbsolutefalseMaster,scaleRightObjectSideRightMaster,scaleRightObjectRefCardMaster,scaleTopAbsolutefalseMaster,scaleLeftfalseMaster,scaleTopfalseMaster,cardRanking1Master,scaletopDistance0Master,scaleleftDistance0 cREVGeneralscriptChecksum-IvWܣM revUniqueID 1023609107051 bookmarks handlerList closeFieldscriptSelection char 1 to 0 prevHandler closeField tempScriptscript8

on closeField

put line (the hilitedLines of fld "function list") of fld "function list" into tFunction

put the cStackName of fld "function list" into tStackName

set the cParameters[tFunction] of stack tStackName to me

save stack tStackName

end closeField

  z`@<& {Editg XYon mouseUp edit the script of stack the cStackName of fld "function list" end mouseUp @eBiEdit the script cREVGeometry Master,expectedRect 4,145,230,165Master,movevDistance155Master,moveVObjectSideTopMaster,movehDistance -0.263366Master,moveHObjectSidecenterMastertrueMaster,moveVObjectRefcardMaster,moveHObjectRefMaster,moveVAbsolutetrueMaster,cardRanking1 Master,moveVtrueMaster,moveHAbsolutefalse Master,moveHfalse cREVGeneralscriptChecksum=t}MfL bookmarks revUniqueID 1023609265210 handlerListmouseUpscriptSelection prevHandlermouseUp tempScriptscriptt

on mouseUp

edit the script of stack the cStackName of fld "function list"

end mouseUp

 |Deleteg Xon mouseUp put the cStackName of fld "function list" into tStackName answer warning "Really delete library" && char 4 to -1 of tStackName & "? This cannot be undone." with "Cancel" or "Delete" if it is "cancel" then exit mouseUp put the fileName of stack tStackName into tFilePath delete stack tStackName delete file tFilePath set the defaultStack to "revScriptLibrary" preOpenCard end mouseUp @^BhDelete Library cREVGeneralscriptChecksum{^=p Fޣ revUniqueID 964487407138 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 1 to 0script

on mouseUp

put the cStackName of fld "function list" into tStackName

answer warning "Really delete library" && char 4 to -1 of tStackName & "? This cannot be undone." with "Cancel" or "Delete"

if it is "cancel" then exit mouseUp

put the fileName of stack tStackName into tFilePath

delete stack tStackName

delete file tFilePath

set the defaultStack to "revScriptLibrary"

preOpenCard

end mouseUp

} New Field 3  cREVGeneral revUniqueID 1023770908568 )Library Purpose & General Documentation: ~library purpose)pon closeField put the cStackName of fld "function list" into tStackName set the cLibraryPurpose of stack tStackName to me save stack tStackName end closeField 0av cREVGeometryMaster,scaleBottomObjectSideBottomMastertrueMaster,scaleLeftObjectRefMaster,scaletopObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutetrueMaster,scaleBottomfalseMaster,scaleLeftObjectSidecenterMaster,scaleTopObjectSidecenterMaster,expectedRect236,72,500,126Master,scalebottomDistance-31Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-5Master,scaleTopAbsolutefalseMaster,scaleRightObjectRefCardMaster,scaleRightObjectSideRightMaster,scaleLeftAbsolutefalseMaster,scaleTopfalseMaster,scaleLeftfalseMaster,cardRanking1Master,scaleleftDistance0Master,scaletopDistance0 cREVGeneralscriptChecksumyƷo]ia bookmarks revUniqueID 1023770908576 handlerList closeField tempScript prevHandler closeFieldscriptSelectionchar 100 to 99script

on closeField

put the cStackName of fld "function list" into tStackName

set the cLibraryPurpose of stack tStackName to me

save stack tStackName

end closeField

 *Library for the management of GUI sounds. `@<1t New ButtonAgG cREVGeometryMaster,scaleBottomObjectSidecenterMastertrueMaster,scaletopObjectRefMaster,scaleLeftObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutefalseMaster,scaleBottomfalseMaster,scaleTopObjectSidecenterMaster,scaleLeftObjectSidecenterMaster,scalebottomDistance0Master,expectedRect 4,28,501,30Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-7Master,scaleLeftAbsolutefalseMaster,scaleRightObjectSideRightMaster,scaleRightObjectRefcardMaster,scaleTopAbsolutefalseMaster,scaleLeftfalseMaster,scaleTopfalseMaster,cardRanking1Master,scaletopDistance0Master,scaleleftDistance0 cREVGeneral revUniqueID 1023770954078 New Field 3  cREVGeneral revUniqueID 1023770988091 Contributing Authors: contributing authors)pon closeField put the cStackName of fld "function list" into tStackName set the cContributingAuthors of stack tStackName to me save stack tStackName end closeField 0F cREVGeometryMaster,scaleBottomObjectSideMastertrueMaster,scaletopObjectRefMaster,scaleLeftObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsoluteMaster,scaleBottomfalseMaster,scaleTopObjectSideMaster,scaleLeftObjectSideMaster,scalebottomDistanceMaster,expectedRect 4,48,232,92Master,scaleRightAbsoluteMaster,scaleRightfalseMaster,scalerightDistanceMaster,scaleLeftAbsoluteMaster,scaleRightObjectSideMaster,scaleRightObjectRefMaster,scaleTopAbsoluteMaster,scaleLeftfalseMaster,scaleTopfalseMaster,cardRanking0Master,scaletopDistanceMaster,scaleleftDistance cREVGeneralscriptChecksum׋|q revUniqueID 1023770988098 bookmarks handlerList closeFieldscriptSelectionchar 17 to 154 prevHandler closeField tempScriptscript

on closeField

put the cStackName of fld "function list" into tStackName

set the cContributingAuthors of stack tStackName to me

save stack tStackName

end closeField

 VMonte Goulding, mailto:monte@sweattechnologies.com, http://www.sweattechnologies.com;  `@1D New Field 3 yk cREVGeneral revUniqueID 1023874787849 Version Number: version)pon closeField put the cStackName of fld "function list" into tStackName set the cVersion of stack tStackName to me save stack tStackName end closeField ]z cREVGeometryMaster,scaleBottomObjectSideBottomMastertrueMaster,scaleLeftObjectRefMaster,scaletopObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutetrueMaster,scaleBottomfalseMaster,scaleLeftObjectSidecenterMaster,scaleTopObjectSidecenterMaster,expectedRect 4,48,232,114Master,scalebottomDistance-31Master,scaleRightAbsolutetrueMaster,scaleRightfalseMaster,scalerightDistance-5Master,scaleTopAbsolutefalseMaster,scaleRightObjectRefMaster,scaleRightObjectSideRightMaster,scaleLeftAbsolutefalseMaster,scaleTopfalseMaster,scaleLeftfalseMaster,cardRanking0Master,scaleleftDistance0Master,scaletopDistance0 cREVGeneralscriptChecksumSe97 bookmarks revUniqueID 1023874805155 handlerList closeField tempScript prevHandler closeFieldscriptSelection char 14 to 13script

on closeField

put the cStackName of fld "function list" into tStackName

set the cVersion of stack tStackName to me

save stack tStackName

end closeField

 0.1 Load`eon mouseUp put the cStackName of fld "function list" into tStackName set the cLoad of stack tStackName to the hilite of me save stack tStackName end mouseUp Load library at startup cREVGeneralscriptChecksumn=1@ revUniqueID 1023876956515 bookmarks handlerListmouseUp tempScript prevHandlerscriptSelectionchar 125 to 124script

on mouseUp

put the cStackName of fld "function list" into tStackName

set the cLoad of stack tStackName to the hilite of me

save stack tStackName

end mouseUp

 function ` cREVGeometryMaster,scaleBottomObjectSidecenterMastertrueMaster,scaleLeftObjectRefMaster,scaletopObjectRefMaster,scaleBottomObjectRefMaster,scaleBottomAbsolutefalseMaster,scaleBottomfalseMaster,scaleLeftObjectSideRightMaster,scaleTopObjectSidecenterMaster,expectedRect236,176,522,206Master,scalebottomDistance0Master,scaleRightAbsolutetrueMaster,scaleRighttrueMaster,scalerightDistance-6Master,scaleTopAbsolutefalseMaster,scaleRightObjectRefCardMaster,scaleRightObjectSideRightMaster,scaleLeftAbsolutetrueMaster,scaleTopfalseMaster,scaleLeftfalseMaster,cardRanking1Master,scaleleftDistance-292Master,scaletopDistance0 cREVGeneral revUniqueID 1023878849749 mouseDown handler @ffccbb  HTMLg X |on mouseUp if the platform is "MacOS" then put "MSIEHTML" into tFilter else put "*.html" into tFilter end if ask file "Save HTML Documentation as:" with filter tFilter if it is "" or the result is "cancel" then exit mouseUp put "file:"&it into tURL set the itemDel to "." if the number of items of tURL > 1 then if not(item -1 of tURL is "htm" or item -1 of tURL is "html") then put "html" into item -1 of tURL end if else put ".html" after tURL end if put the cStackName of fld "function list" into tStackName put replaceText(replaceText(the cContributingAuthors of stack tStackName,","," "),";",cr) into tAuthors repeat for each word tWord in tAuthors switch char 1 to 7 of tWord case "http://" case "mailto:" replace tWord with ""&tWord&"" in tAuthors break end switch end repeat put "Script Library Documentation - " & tStackName & ""& the cStyle of me &"

" & \ "Script Library Documentation - " & tStackName &"

Version "& the cVersion of stack tStackName& "

" & \ "

Contributing Authors

"& replaceText(tAuthors,cr,"
") & "

Library Purpose and General Documetation

"&\ replaceText(the cLibraryPurpose of stack tStackName,cr,"
") &"

Functions and Handlers

" into tHTML put fld "function list" into tFunctions put the script of stack tStackName into tScript repeat for each line tLine in tFunctions put "

"&getName(tLine,tScript)&"

" after tHTML if the cParameters[tLine] of stack tStackName <> "" then put "

Parameters

"& replaceText(the cParameters[tLine] of stack tStackName,cr,"
")&"

" after tHTML if the cReturns[tLine] of stack tStackName <> "" then put "

Returns

"& replaceText(the cReturns[tLine] of stack tStackName,cr,"
")&"

" after tHTML if the cDescription[tLine] of stack tStackName <> "" then put "

Documentation

"& replaceText(the cDescription[tLine] of stack tStackName,cr,"
")&"

" after tHTML end repeat put "" after tHTML put tHTML into url tURL end mouseUp function getName pFunction,pScript set the caseSensitive to true repeat forever put lineOffset(pFunction,pScript) into tLineNumber put line tLineNumber of pScript into tLine if pScript is "" then exit repeat switch word 1 of tLine case "function" put pFunction&&"(function)" into tName exit repeat case "on" put pFunction&&"(handler)" into tName exit repeat break case "setProp" put pFunction&&"(setProp)" into tName exit repeat break case "getProp" put pFunction&&"(getProp)" into tName exit repeat break default delete line 1 to tLineNumber of pScript break end switch end repeat return tName end getName @cStyleDBkGenerate HTML documentation cREVGeometry Master,movevDistance-11Master,expectedRect 8,411,192,431Master,moveVObjectSideBottomMaster,movehDistance -0.263366Master,moveHObjectSidecenterMastertrueMaster,moveVObjectRefcardMaster,moveHObjectRefMaster,cardRanking1Master,moveVAbsolutetrue Master,moveVtrueMaster,moveHAbsolutefalse Master,moveHfalse cREVGeneralscriptChecksum n#)pϻMZ ! revUniqueID 1023882180269 bookmarks handlerListmouseUp getName tempScript prevHandlergetNamescriptSelectionchar 711 to 710scriptg

on mouseUp

if the platform is "MacOS" then

put "MSIEHTML" into tFilter

else

put "*.html" into tFilter

end if

ask file "Save HTML Documentation as:" with filter tFilter

if it is "" or the result is "cancel" then exit mouseUp

put "file:"&it into tURL

set the itemDel to "."

if the number of items of tURL > 1 then

if not(item -1 of tURL is "htm" or item -1 of tURL is "html") then

put "html" into item -1 of tURL

end if

else

put ".html" after tURL

end if

put the cStackName of fld "function list" into tStackName

put replaceText(replaceText(the cContributingAuthors of stack tStackName,","," "),";",cr) into tAuthors

repeat for each word tWord in tAuthors

switch char 1 to 7 of tWord

case "http://"

case "mailto:"

replace tWord with "<a href="&tWord&">"&tWord&"</a>" in tAuthors

break

end switch

end repeat

put "<html><head><title>Script Library Documentation - " & tStackName & "</title>"& the cStyle of me &"<head><body><h1>" & \

"Script Library Documentation - " & tStackName &"</h1><p><b>Version "& the cVersion of stack tStackName& "</b></p>" & \

"<h2>Contributing Authors</h2><p>"& replaceText(tAuthors,cr,"<br/>") & "</p><h2>Library Purpose and General Documetation</h2><p>"&\

replaceText(the cLibraryPurpose of stack tStackName,cr,"<br/>") &"</p><h2>Functions and Handlers</h2>" into tHTML

put fld "function list" into tFunctions

put the script of stack tStackName into tScript

repeat for each line tLine in tFunctions

put "<h3>"&getName(tLine,tScript)&"</h3>" after tHTML

if the cParameters[tLine] of stack tStackName <> "" then put "<h4>Parameters</h4><p>"& replaceText(the cParameters[tLine] of stack tStackName,cr,"<br/>")&"</p>" after tHTML

if the cReturns[tLine] of stack tStackName <> "" then put "<h4>Returns</h4><p>"& replaceText(the cReturns[tLine] of stack tStackName,cr,"<br/>")&"</p>" after tHTML

if the cDescription[tLine] of stack tStackName <> "" then put "<h4>Documentation</h4><p>"& replaceText(the cDescription[tLine] of stack tStackName,cr,"<br/>")&"</p>" after tHTML

end repeat

put "</body></html>" after tHTML

put tHTML into url tURL

end mouseUp

function getName pFunction,pScript

set the caseSensitive to true

repeat forever

put lineOffset(pFunction,pScript) into tLineNumber

put line tLineNumber of pScript into tLine

if pScript is "" then exit repeat

switch word 1 of tLine

case "function"

put pFunction&&"(function)" into tName

exit repeat

case "on"

put pFunction&&"(handler)" into tName

exit repeat

break

case "setProp"

put pFunction&&"(setProp)" into tName

exit repeat

break

case "getProp"

put pFunction&&"(getProp)" into tName

exit repeat

break

default

delete line 1 to tLineNumber of pScript

break

end switch

end repeat

return tName

end getName

Bk ftv2doc.gif@GIF89a! ,tpI8m 'H)p"y @)r@j @#f\!i!0 N tZ%