#!/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 "$@" J setImage jfunction 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 ` set the filename of image U Lucida Grande U ,japanese U Osaka U Osaka,Japanese U Geneva U Osaka U geneva,english U Osaka,Japanese U Lucida Grande U ,japanese U ,Japanese U ms sans serif @U Lucida Grande U Geneva U Lucida Sans Unicode cREVGeneral scriptChecksum 2%?#BuܳJ bookmarks handlerList jpAnswer englishTagscriptSelection char 362 to 361prevHandler englishTagtempScript scriptfunction 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
Pon openCard put the defaultFolder into fld "tDefaultFolder" 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 ldDAG bookmarks handlerList openCard setImageListscriptSelection char 275 to 274prevHandler openCardtempScript scripton openCard
put the defaultFolder into fld "tDefaultFolder"
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
. ' = > ? @ creatFolder ex global gFileList on mouseUp create folder specialFolderPath("Desktop") &"/myFolder" set the defaultFolder to specialFolderPath("Desktop") &"/myFolder" put the defaultFolder into fld "tDefaultFolder" disable me put "" into gFileList put "" into fld "tImageList" end mouseUp L )00000T 0 m y F o l d e r0 0O\0c0f cREVGeneral scriptChecksum ڎXֆvrevUniqueID 1081801177677 bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 243 to 242scriptglobal gFileList
on mouseUp
create folder specialFolderPath("Desktop") &"/myFolder"
set the defaultFolder to specialFolderPath("Desktop") &"/myFolder"
put the defaultFolder into fld "tDefaultFolder"
disable me
put "" into gFileList
put "" into fld "tImageList"
end mouseUp
snap ex global gFileList local lSnapNum on mouseUp set the JPEGQuality to 50 snapNum export snapshot to file "RevSnap_"&lSnapNum&".jpg" \ as JPEG put 0 into lSnapNum set the cursor to hand if platForm() is "MacOS" then set the fileType to "prewJPEG" end if setImageList end mouseUp on snapNum put gFileList into myList filter myList with "RevSnap_*" replace "RevSnap_" with "" myList set the itemDel to "." repeat with i=1 to the num of lines of myList put i into lSnapNum if item 1 of line i of myList is not i then exit snapNum end if end repeat put lSnapNum +1 into lSnapNum end snapNum 000000000d0 cREVGeneral scriptChecksum O7-{QאbreakPoints handlerList mouseUp snapNumscriptSelection char 646 to 645 bookmarks revUniqueID 1081820513934prevHandler mouseUptempScript script sglobal gFileList
local lSnapNum
on mouseUp
set the JPEGQuality to 50
snapNum
export snapshot to file "RevSnap_"&lSnapNum&".jpg" \
as JPEG
put 0 into lSnapNum
set the cursor to hand
if platForm() is "MacOS" then
set the fileType to "prewJPEG"
end if
setImageList
end mouseUp
on snapNum
put gFileList into myList
filter myList with "RevSnap_*"
replace "RevSnap_" with "" myList
set the itemDel to "."
repeat with i=1 to the num of lines of myList
put i into lSnapNum
if item 1 of line i of myList is not i then
exit snapNum
end if
end repeat
put lSnapNum +1 into lSnapNum
end snapNum
jpText )h *f cREVGeneral revUniqueID 1081820694001 bookmarks handlerList tempScript prevHandler scriptSelection char 1 to 0script