#!/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 "$@" tFolderPath function theFolderPath put the filename of this stack into tPath set the itemdel to "/" If (IsOSX()) then get offset(".app/Contents/MacOS/", tPath) if it > 0 then delete char it to len(tPath) of tPath end if end if delete last item of tPath return tPath end theFolderPath function IsOSX if the platform is not "MacOS" then return false get the systemversion set the itemdel to "." if item 1 of it >= 10 then return true return false end IsOSX f r The Folder Path U Lucida Grande U Geneva U Osaka,Japanese U Osaka U Osaka U geneva,english U Osaka,Japanese U osaka,japanese U ,japanese U Lucida Grande U Lucida Grande U Osaka,Japanese U Geneva U ms sans serif U osaka,japanese U ,japanese U osaka,japanese U ,japanese cREVGeneral scriptChecksum ;TGy48} bookmarks debugObjects handlerList theFolderPath IsOSXtempScript prevHandler openStackscriptSelection char 1 to 0script
function theFolderPath
put the filename of this stack into tPath
set the itemdel to "/"
If (IsOSX()) then
get offset(".app/Contents/MacOS/", tPath)
if it > 0 then
delete char it to len(tPath) of tPath
end if
end if
delete last item of tPath
return tPath
end theFolderPath
function IsOSX
if the platform is not "MacOS" then return false
get the systemversion
set the itemdel to "."
if item 1 of it >= 10 then return true
return false
end IsOSX
Pon opencard get the filename of this stack if it is empty then answer information jpAnswer(saveThisStack, jpText, 2) ask file "Save this stack as 004.rev" with "004.rev" if the result is not "Cancel" then save this stack as it end if repeat with i=1 to 4 if platform() is "Win32" then set the textSize of btn i to 12 else set the textSize of btn i to 11 end if end repeat if platform() is "Win32" then set the text of btn "tScript" to "00000~0g0n000" & CRLF &\ "00000Qn00000h000000" & CRLF & \ "000000ܥO0" & CRLF & "0000000n00000000" else set the text of btn "tScript" to "000000~0g0n00" & uniencode(LF) &\ "00000Q0n00000h000000n000" & uniencode(LF) & \ "0000000Q0" & uniencode(LF) & "00000000000000" end if end opencard on notSaved if the filename of this stack is empty then beep answer warning jpAnswer(NotSaved, jpText, 2) exit to top end if end notSaved 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 cREVGeneral scriptChecksum q!6[?5 bookmarks handlerList %opencard notSaved jpAnswer englishTagscriptSelection char 886 to 885prevHandler englishTagtempScript script Ron opencard
get the filename of this stack
if it is empty then
answer information jpAnswer(saveThisStack, jpText, 2)
ask file "Save this stack as 004.rev" with "004.rev"
if the result is not "Cancel" then save this stack as it
end if
repeat with i=1 to 4
if platform() is "Win32" then
set the textSize of btn i to 12
else
set the textSize of btn i to 11
end if
end repeat
if platform() is "Win32" then
set the text of btn "tScript" to "Õ0©0ë0À0ü0~0g0n0Ñ0¹0" & CRLF &\
"Õ0©0ë0À0ü0 Qn0Õ0¡0¤0ë0h0Õ0©0ë0À0ü0" & CRLF & \
"Õ0©0ë0À0ü00O0" & CRLF & "Õ0©0ë0À0ü0Ñ0¹0n0Õ0¡0ó0¯0·0ç0ó0"
else
set the text of btn "tScript" to "フォルダーまでのパス" & uniencode(LF) &\
"フォルダー内のファイルとフォルダーのリスト" & uniencode(LF) & \
"フォルダーを開ける" & uniencode(LF) & "ファンクションフォルダーパス"
end if
end opencard
on notSaved
if the filename of this stack is empty then
beep
answer warning jpAnswer(NotSaved, jpText, 2)
exit to top
end if
end notSaved
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
@ jpText )h ,j p cREVGeneral revUniqueID 1081305031676 bookmarks handlerList tempScript prevHandler scriptSelection char 1 to 0script