#!/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 "$@" resizeWd X X Resize Window TT U Geneva U Osaka,Japanese U Osaka U Lucida Grande U Lucida Sans Unicode U Lucida Sans Unicode,Japanese U Osaka U geneva,english U Geneva U Osaka,Japanese U Lucida Grande U Geneva U Osaka,Japanese U Osaka cREVGeneral scriptChecksum ُ B~ bookmarks handlerList scriptSelection char 1 to 0prevHandler preOpenScripttempScript script
P on resizeStack x,y set the loc of btn 1 to x-(40 + the width of btn 1 /2), y -40 set the rect of fld 1 to 40, 40, x -40, y -80 end resizeStack cREVGeneral scriptChecksum ܻ:g[_XLC4w bookmarks handlerList resizeStackscriptSelection char 148 to 147prevHandler resizeStacktempScript scripton resizeStack x,y
set the loc of btn 1 to x-(40 + the width of btn 1 /2), y -40
set the rect of fld 1 to 40, 40, x -40, y -80
end resizeStack
@ Button 1 Epon mouseUp answer information jpAnswer(wdWidth, jpText, 2) &\ englishTag() & the width of this stack &"" &\ jpAnswer(wdHeight, jpText, 2) &\ englishTag() & the height of this stack &"" &\ jpAnswer(fldRect, jpText, 2) &\ englishTag() & the rect of fld 1 &"" &\ jpAnswer(btnLoc, jpText, 2) &\ englishTag() & the loc of btn 1 &"" as sheet end mouseUp function jpAnswer pTag, pFldName, pCdNum get ("get the text of fld "& pFldName &" of cd "& pCdNum ) do it get the htmlText of line (lineOffset(pTag, IT) + 1) to (lineOffset("/"& pTag, IT) -1) \ of fld pFldName cd pCdNum return replaceText(IT, "", " ") end jpAnswer function englishTag return "" end englishTag ] R cREVGeneral scriptChecksum +aEEbhɭnrevUniqueID 1081124146306 bookmarks handlerList mouseUp jpAnswer englishTagtempScript prevHandler englishTagscriptSelection char 11 to 10scripton mouseUp
answer information jpAnswer(wdWidth, jpText, 2) &\
englishTag() & the width of this stack &"</font></p>" &\
jpAnswer(wdHeight, jpText, 2) &\
englishTag() & the height of this stack &"</font></p>" &\
jpAnswer(fldRect, jpText, 2) &\
englishTag() & the rect of fld 1 &"</font></p>" &\
jpAnswer(btnLoc, jpText, 2) &\
englishTag() & the loc of btn 1 &"</font></p>" as sheet
end mouseUp
function jpAnswer pTag, pFldName, pCdNum
get ("get the text of fld "& pFldName &" of cd "& pCdNum )
do it
get the htmlText of line (lineOffset(pTag, IT) + 1) to (lineOffset("/"& pTag, IT) -1) \
of fld pFldName cd pCdNum
return replaceText(IT, "</p>", " ")
end jpAnswer
function englishTag
return "<font face=Geneva size=12>"
end englishTag
Field 1 )` ( (@ cREVGeneral bookmarks revUniqueID 1081124348091handlerList scriptSelection char 1 to 0prevHandler tempScript script scriptGrp i l cREVGeneral revUniqueID 1081126030027 scCd ew on mouseUp get the script of cd 1 if the environment is "development" then edit script of cd 1 else answer "Card Script:" &cr&cr& it end if end mouseUp d Card Script cREVGeneral scriptChecksum v