home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Webster's Millennium Amer…Sign Language Dictionary
/
ASL.ISO
/
mac
/
SHARED.cst
/
00026_Script_26
< prev
next >
Wrap
Text File
|
2001-09-17
|
3KB
|
85 lines
--∂ï
-- modify this to work with <tell window "dData">
on cats
set castOffset=29
set cNums=["17","09","04","01","02","15","19","11","12","03","13","14","20","06","21","05","07","08","10","18","16"]
repeat with i = 1 to count(cNums)
put "" into catVar
put getAt(cNums,i) into catRef
repeat with j = 5001 to 5001+2180
set the itemDelimiter to "*"
if item 5 of the text of cast j contains catRef then put the name of cast j&return after catVar
end repeat
put catvar into field i+castOffset
--halt
end repeat
set the itemDelimiter to ","
end cats
on cNames
set catNames=""
repeat with i = 30 to 50
put the name of cast i &return after catNames
end repeat
set the text of cast 29 to catNames
end cNames
on bigHint --item 12
global gWordList
put 0 into hintSize
set the itemDelimiter to "*"
repeat with i = 1 to count(gWordList)
set cstNum = i+5000
tell window "dData" to put the text of cast cstNum into dataVar
put item 12 of dataVar into hintText
if the number of chars of hintText > hintSize and not (cstNum = 6230) then
set hintSize = the number of chars of hintText
set bigHint = hintText
set hintCast = cstNum
end if
end repeat
set the itemDelimiter to ","
--put hintSize&&bigHint&&"cast-"&hintCast
end
--cast-6230; name
on smallHint --item 12
global gWordList
put 9999 into hintSize
set the itemDelimiter to "*"
repeat with i = 1 to count(gWordList)
set cstNum = i+5000
tell window "dData" to put the text of cast cstNum into dataVar
put item 12 of dataVar into hintText
if the number of chars of hintText < hintSize then
set hintSize = the number of chars of hintText
set bigHint = hintText
set hintCast = cstNum
end if
end repeat
set the itemDelimiter to ","
--put hintSize&&bigHint&&"cast-"&hintCast
end
--cast-6230; name
----PETEMACK 06.27.01
--on HintList
-- global gHintList,gWordList
-- set gHintList = [:]
-- set the itemDelimiter to "*"
-- repeat with i = 1 to count(gWordList)
-- set cstNum = i+5000
-- tell window "dData" to put item 12 of the text of cast cstNum into hintText
-- tell window "dData" to put the name of cast cstNum into aWord
-- AddProp gHintList, the number of chars of hintText, aWord
-- end repeat
-- set the itemDelimiter to ","
-- sort(gHintList)
-- set aFile = fileio(mNew,"?write","Untitled")
-- aFile(mWriteString,string(gHintList))
-- aFile(mDispose)
-- --put gHintList
--end