#!/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 "$@" A Snapshot Tfunction 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 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 n s Export Snapshot U Lucida Grande U Lucida Grande U Lucida Grande U Osaka U Osaka,Japanese U Geneva U Osaka U geneva,english U Osaka,Japanese U ,japanese U ,japanese U osaka,japanese U osaka,japanese U Geneva cREVGeneral scriptChecksum TlmW^>' bookmarks debugObjects handlerList 'theFolderPath IsOSX jpAnswer englishTagscriptSelection char 288 to 287prevHandler IsOSXtempScript scriptfunction 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
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
Pion opencard get the filename of this stack if it is empty then answer information jpAnswer(saveThisStack, jpText, 3) ask file "Save this stack as 005.rev" with "005.rev" if the result is not "Cancel" then save this stack as it end if set the defaultfolder to theFolderPath() put theFolderPath() into fld "tDefaultfolderPath" end openCard cREVGeneral scriptChecksum e.x,߮qdmڿ bookmarks handlerList opencardtempScript prevHandler opencardscriptSelection char 177 to 176scripton opencard
get the filename of this stack
if it is empty then
answer information jpAnswer(saveThisStack, jpText, 3)
ask file "Save this stack as 005.rev" with "005.rev"
if the result is not "Cancel" then save this stack as it
end if
set the defaultfolder to theFolderPath()
put theFolderPath() into fld "tDefaultfolderPath"
end openCard
P on openCard setImageList end openCard global gFileList on setImageList put the files into gFileList filter gFileList without ".*" filter gFileList with "*.jpg" put gFileList into fld "tImageList" end setImageList cREVGeneral scriptChecksum mu[yF! bookmarks handlerList openCard setImageListscriptSelection char 224 to 223prevHandler openCardtempScript scripton openCard
setImageList
end openCard
global gFileList
on setImageList
put the files into gFileList
filter gFileList without ".*"
filter gFileList with "*.jpg"
put gFileList into fld "tImageList"
end setImageList
! " @ jpText )h ,j p cREVGeneral bookmarks revUniqueID 1081473855079handlerList scriptSelection char 1 to 0prevHandler tempScript script