home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Electronic Whole Earth Catalog
/
ElectronicWholeEarthCatalog.img
/
CRAFT
/
card_136932.txt
< prev
next >
Wrap
Text File
|
1989-02-07
|
22KB
|
1,164 lines
-- card: 136932 from stack: in
-- bmap block id: 0
-- flags: 4000
-- background id: 138931
-- name: Contents
----- HyperTalk script -----
-- do not remove
-- cd Contents script
on showMover
show btn "Put Article"
show btn "After"
show btn "PushMover"
show btn "To Other Stack"
show btn "Do It"
show btn "Un/Lock"
show bg fld "theMover"
show bg fld "theTarget"
end showMover
on hideMover
hide btn "Put Article"
hide btn "After"
hide btn "PushMover"
hide btn "To Other Stack"
hide btn "Do It"
hide btn "Un/Lock"
hide bg fld "theMover"
hide bg fld "theTarget"
end hideMover
-- part 51 (button)
-- low flags: 80
-- high flags: 8002
-- rect: left=12 top=0 right=17 bottom=87
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Put Article
----- HyperTalk script -----
on mouseUp
put value( the selectedLine ) into bg field "theMover"
end mouseUp
-- part 52 (button)
-- low flags: 80
-- high flags: 8002
-- rect: left=12 top=20 right=38 bottom=53
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: After
----- HyperTalk script -----
on mouseUp
put value( the selectedLine) into bg field "theTarget"
end mouseUp
-- part 53 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=380 top=0 right=31 bottom=404
-- title width / last selected line: 0
-- icon id / first selected line: 2730 / 2730
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: pushMover
----- HyperTalk script -----
on mouseUp
put bg field "theMover" into bg field "theTarget"
end mouseUp
-- part 54 (button)
-- low flags: 80
-- high flags: A004
-- rect: left=406 top=0 right=16 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: To Other Stack
----- HyperTalk script -----
on mouseUp
global lastStack, stackList
put bkgnd field "theMover" into sourceTitle
if sourceTitle is empty then
beep
put "No Source Title given!"
exit mouseUp
end if
put bkgnd field "theTarget" into targetTitle
if targetTitle is empty then
-- beep
put "No Target Title given!"
-- exit mouseUp
end if
go to first card in background "Review"
find sourceTitle in bkgnd field "theTitle"
if the result is "not found" then
go to card "Contents"
beep
put "Source Title not found!" into msg
exit mouseUp
end if
put bkgnd field "theTitle" into sourceTitle2
put empty into sourceIds
repeat while sourceTitle2 is in bkgnd field "theTitle"
get the id of this card
put it & return after sourceIds
go to next card
if number of this card is 1 then exit repeat
end repeat
repeat
go to card "Contents"
answer "Found" && number of lines in sourceIds && "cards to move." with "Cancel" or "Review" or "OK"
if it is "Cancel" then exit mouseUp
if it is "OK" then exit repeat
repeat with thisID = 1 to number of lines in sourceIds
go to (line thisID of sourceIds)
end repeat
end repeat
-- start new code
repeat
Ask "Domain Number of target stack?" with lastStack
if it is empty then exit mouseUp
put it into targStackNum
if length( targStackNum ) < 2 then put "0" before targStackNum
put item it of stackList into targetStack
put it into lastStack
put id of this card into testID
push card
go to stack targetStack
if id of this card is testID then
beep
put "Stack not found"
pop card
else
exit repeat
end if
end repeat
go to first card in background "Review"
if targetTitle is empty then
go to last card
put field "theTitle" into targetTitle
else
find targetTitle in bkgnd field "theTitle"
if the result is "not found" then
go to card "Contents"
beep
put "Target Title not found!" into msg
pop card
exit mouseUp
end if
end if
put bkgnd field "theTitle" into targetTitle2
repeat while bkgnd field "theTitle" is targetTitle2
get the id of this card
put it into targetID
go to next card
if number of this card is 1 then exit repeat
end repeat
go to (targetId)
answer "Put them after this card?" with "Cancel" or "OK"
if it is "Cancel" then
pop card
exit mouseUp
end if
pop card
-- now to actually move the cards
repeat with thisId = 1 to number of lines in sourceIds
put (line thisId of sourceIds) into srcCard
go to srcCard
lock screen
put the short name of this bkgnd into thisBkgnd
put getFields() into fieldCount
put "fc: " & fieldCount
push card
-- go get blank template card for this bg
do ("go to first card of bkgnd" && thisBkgnd && "of stack" && targetStack)
doMenu Copy Card
go to targetId
doMenu Paste Card
get the long id of this card
put it into targetId
putFields fieldCount
put targetStack into bg field "theTopic"
put targStackNum & char 3 to length( field accession) of field accession into field accession
if field "theIdent" is "access" then
if field surveyAccession is not empty then
put targStackNum & char 3 to length( field surveyAccession) of field surveyAccession into field surveyAccession
end if
end if
-- move graphic, if appropriate
if thisBkgnd is in "access,picture" then
pop card
-- horrible kluge...
-- make a speck on the card picture, so we never copy a blank pict
choose pencil tool
click at 280,180 -- where there's prob'ly some graphic already
-- we unmake the speck with another pencil click
-- our card looks the same as originally, but is guaranteed to
-- have a nonempty card picture
click at 280,180
choose select tool
domenu "Select All"
doMenu "Copy Picture"
push card
go to targetId
doMenu "Paste Picture"
choose browse tool
-- make it transparent in all cases EXCEPT when fullScreen picture
put no into decision
if thisBkgnd is "access"
then put yes into decision
else if thisBkgnd is "picture" then
-- put "fs: " & field "fullScreen"
if field "fullScreen" is empty
then put yes into decision
end if
if decision is "yes" then
choose select tool
domenu "Select All"
doMenu "transparent"
choose browse tool
end if
end if
unlock screen
pop card
end repeat
-- update both TOC
go to card "Contents"
put offset (sourceTitle, bkgnd field "theContents") into sourceOff
if sourceOff is 0 then
beep
put "Regenerate Contents of Source!"
else
delete char sourceOff to (sourceOff + length(sourceTitle) - 1) of bkgnd field "theContents"
if char sourceOff of bkgnd field "theContents" is return then
delete char sourceOff of bkgnd field "theContents"
end if
if last char of sourceTitle is not return then put return after sourceTitle
end if
push card
go to card "Contents" of stack targetStack
put offset(targetTitle, bkgnd field "theContents") into targetOff
if targetOff is 0 then
beep
put "Regenerate Contents of Target!"
pop card
exit mouseUp
end if
add length(targetTitle) to targetOff
if char targetOff of bkgnd field "theContents" is return then add 1 to targetOff
put sourceTitle before char targetOff of bkgnd field "theContents"
pop card
end mouseUp
function getFields
global nameList
global fContents
put empty into nameList
put empty into fContents
put the number of bg fields into bgfc
repeat with f = 1 to bgfc
put the name of bg field f & tab after nameList
put bg field f & tab after fContents
end repeat
put the number of card fields into crdfc
repeat with f = 1 to crdfc
put the name of card field f & tab after nameList
put card field f & tab after fContents
end repeat
return bgfc + crdfc
end getFields
on putFields fCounts
global nameList
global fContents
put first item of fCounts into bgfc
put last item of fCounts into crdfc
repeat with f = 1 to bgfc
put pullName() into fName
put fName
do "put pullContents() into " & fName
end repeat
end putFields
function pullContents
-- returns tab-delimited chunk from global fContents
-- deletes it from global fContents, too
global fContents
put offset( tab, fContents ) into tabSpot
if tabSpot > 0 then
get char 1 to tabSpot-1 of fContents
delete char 1 to tabSpot of fContents
return it
end if
return empty
end pullContents
function pullName
-- returns tab-delimited chunk from global nameList
-- deletes it from global nameList, too
global nameList
put offset( tab, nameList ) into tabSpot
if tabSpot > 0 then
get char 1 to tabSpot-1 of nameList
delete char 1 to tabSpot of nameList
return it
end if
return empty
end pullName
-- part 55 (button)
-- low flags: 80
-- high flags: A004
-- rect: left=406 top=16 right=32 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Do It
----- HyperTalk script -----
on mouseUp
put bkgnd field "theMover" into sourceTitle
if sourceTitle is empty then
beep
put "No Source Title given!"
exit mouseUp
end if
put bkgnd field "theTarget" into targetTitle
if targetTitle is empty then
beep
put "No Target Title given!"
exit mouseUp
end if
go to first card in background "Review"
find sourceTitle in bkgnd field "theTitle"
if the result is "not found" then
go to card "Contents"
beep
put "Source Title not found!" into msg
exit mouseUp
end if
put bkgnd field "theTitle" into sourceTitle2
put empty into sourceIds
repeat while sourceTitle2 is in bkgnd field "theTitle"
get the id of this card
put it & return after sourceIds
go to next card
if number of this card is 1 then exit repeat
end repeat
repeat
go to card "Contents"
answer "Found" && number of lines in sourceIds && "cards to move." with "Cancel" or "Review" or "OK"
if it is "Cancel" then exit mouseUp
if it is "OK" then exit repeat
repeat with thisID = 1 to number of lines in sourceIds
go to (line thisID of sourceIds)
end repeat
end repeat
go to first card in background "Review"
find targetTitle in bkgnd field "theTitle"
if the result is "not found" then
go to card "Contents"
beep
put "Target Title not found!" into msg
exit mouseUp
end if
put bkgnd field "theTitle" into targetTitle2
repeat while bkgnd field "theTitle" is targetTitle2
get the id of this card
put it into targetID
go to next card
if number of this card is 1 then exit repeat
end repeat
go to (targetId)
answer "Put them after this card?" with "Cancel" or "OK"
if it is "Cancel" then exit mouseUp
push card
repeat with thisId = 1 to number of lines in sourceIds
go to (line thisId of sourceIds)
doMenu Cut Card
pop card
doMenu Paste Card
push card
end repeat
pop card
go to card "Contents"
put offset (sourceTitle, bkgnd field "theContents") into sourceOff
if sourceOff is 0 then
beep
put "Regenerate Contents!"
exit mouseUp
end if
delete char sourceOff to (sourceOff + length(sourceTitle) - 1) of bkgnd field "theContents"
if char sourceOff of bkgnd field "theContents" is return then
delete char sourceOff of bkgnd field "theContents"
end if
if last char of sourceTitle is not return then put return after sourceTitle
put offset(targetTitle, bkgnd field "theContents") into targetOff
if targetOff is 0 then
beep
put "Regenerate Contents!"
exit mouseUp
end if
add length(targetTitle) to targetOff
if char targetOff of bkgnd field "theContents" is return then add 1 to targetOff
put sourceTitle before char targetOff of bkgnd field "theContents"
end mouseUp
-- part 56 (button)
-- low flags: 80
-- high flags: A004
-- rect: left=406 top=32 right=48 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Un/Lock
----- HyperTalk script -----
on mouseUp
get the lockText of fld "theContents"
if it is false then
set the lockText of fld "theContents" to true
else
set the lockText of fld "theContents" to false
end if
end mouseUp
-- part contents for background part 6
----- text -----
Contents
-- part contents for background part 11
----- text -----
Menu
-- part contents for background part 17
----- text -----
CRAFT CONTENTS
-- part contents for background part 33
----- text -----
card id 21559
card id 36577
card id 40506
card id 159894
card id 33900
card id 41693
card id 25351
card id 26517
card id 27945
card id 29077
card id 41829
card id 10089
card id 11611
card id 13608
card id 12718
card id 42223
card id 27304
card id 22065
card id 23272
card id 24283
card id 24328
card id 42400
card id 43170
card id 49003
card id 42670
card id 38940
card id 40014
card id 41130
card id 44164
card id 142324
card id 50258
card id 131346
card id 22836
card id 44722
card id 31216
card id 32254
card id 33366
card id 34711
card id 120552
card id 43917
card id 43378
card id 8153
card id 3229
card id 35317
card id 44994
card id 18776
card id 20013
card id 21011
card id 45132
card id 14802
card id 15385
card id 19428
card id 114114
card id 16386
card id 17637
card id 37172
card id 45365
card id 42794
card id 139848
card id 144463
card id 70141
card id 77482
card id 78234
card id 146225
card id 9540
card id 45597
card id 149168
card id 150099
card id 147305
card id 38257
card id 46888
card id 107966
card id 109300
card id 109492
card id 8900
card id 49938
card id 48220
card id 110335
card id 114780
card id 53107
card id 71647
card id 145080
card id 154438
card id 156465
card id 157808
card id 16029
card id 124470
card id 118154
card id 117098
card id 116215
card id 3839
card id 49645
card id 145639
card id 71367
card id 143777
card id 94505
card id 141939
card id 154336
card id 140551
card id 15818
card id 155213
card id 148124
card id 149677
card id 94780
card id 51317
card id 48414
card id 52247
card id 78510
card id 92344
card id 102929
card id 46340
card id 30135
card id 69660
card id 48696
card id 63570
card id 64734
card id 65547
card id 68652
card id 66712
card id 172014
card id 38791
card id 50930
card id 53673
card id 96531
card id 98589
card id 97639
card id 7306
card id 13350
card id 14261
card id 14379
card id 51646
card id 125312
card id 126854
card id 60310
card id 62613
card id 55997
card id 51787
card id 134705
card id 137007
card id 138095
card id 139013
card id 84689
card id 52874
card id 140276
card id 132307
card id 61520
card id 53782
card id 57329
card id 58348
card id 81717
card id 84892
card id 59350
card id 54260
card id 77688
card id 78740
card id 79637
card id 83853
card id 84193
card id 7583
card id 7752
card id 54350
card id 133869
card id 44517
-- part contents for background part 34
----- text -----
03028002
03106007
03098108
03098119
03022006
03022108
03022119
03022120
03022131
03022142
03022200
03022211
03022222
03022233
03022244
03022302
03100205
03022313
03022324
03022335
03102412
03022404
03022415
03022426
03022506
03022517
03022528
03022539
03022700
03109851
03022722
03109646
03022733
03022802
03022813
03022824
03022835
03022540
03114778
03022608
03022619
03022620
03022631
03023007
03023109
03023110
03023121
03023132
03023201
03023212
03102763
03102796
03102730
03023223
03023234
03024008
03024100
03024111
03100987
03024122
03102514
03102547
03102570
03024144
03024155
03024202
03024213
03024224
03024235
03025009
03025101
03025112
03025123
03102650
03102661
03025134
03025305
03025316
03025327
03025203
03102310
03025214
03025225
03025236
03102229
03025247
03025258
03025350
03025349
03025338
03110707
03102707
03101660
03102638
03102343
03109840
03102434
03102467
03102490
03102809
03101659
03109964
03100830
03101784
03104005
03025407
03102627
03102332
03102365
03102398
03025429
03025430
03105006
03025509
03025510
03025521
03025532
03025543
03025554
03025565
03026000
03026204
03026215
03026226
03026237
03026248
03026259
03102478
03102536
03102569
03027103
03027114
03027125
03027136
03027147
03027158
03027205
03027216
03027238
03027249
03027250
03027227
03027307
03027318
03027330
03027341
03027409
03027410
03027421
03027432
03027443
03027454
03027501
03027512
03027523
03027534
03027545
03102423
03102456
03102489
03027603
03027614
03027625
-- part contents for background part 35
----- text -----
1
2
3
4
2
3
4
4
4
4
3
4
4
4
4
3
4
4
4
4
5
3
4
4
3
4
4
4
3
4
4
4
4
3
4
4
4
4
4
3
4
4
4
2
3
4
4
4
3
4
5
5
5
4
4
2
3
4
4
4
5
5
5
4
4
3
4
4
4
2
3
4
4
5
5
4
3
4
4
3
4
5
5
5
5
4
4
4
4
4
2
3
4
4
4
4
5
5
4
3
4
4
5
5
2
3
4
4
4
4
4
4
2
3
4
4
4
4
4
4
2
3
4
4
4
4
4
5
5
5
3
4
4
4
4
4
3
4
4
4
4
4
3
4
4
4
3
4
4
4
4
4
3
4
4
4
4
5
5
5
3
4
4
-- part contents for background part 18
----- text -----
CRAFT
ONE HIGHLY EVOLVED TOOLBOX
One Highly Evolved Toolbox
ONE HIGHLY EVOLVED TOOLBOX
TOOLS
Tool Catalogs
U.S. General
Sears Power and Hand Tools
Brookstone
The Eastwood Company
Heavy-duty Tools
RENTING TOOLS
Moving Heavy Things
Come-Along Hoist/Winch/Puller
Handyman Jack
Surplus
WHY GOVERNMENT SURPLUS IS CHEAP
Jerryco
Burden’s
MAIL-ORDER DISCOUNT TOOLS AND SUPPLIES
Harbor Freight Salvage
Wholesale Tools
BREAKING THE WHOLESALE BARRIER
Grainger’s
Powertools
Shopsmith
Ryobi 10" Planer
Cutawl
Specialized Tools
Victorinox SwissChamp®
Woodcraft
Garrett Wade Woodworking Tools
Gerstner Tool Chests
Tool Techniques
The Razor Edge Book of Sharpening
Wood Finisher’s Handbook
Welder’s Handbook
Stationary Power Tool Techniques
Tools and How To Use Them
Toolmaking
Pyramid Foundry Sets
The Art of Blacksmithing
The Making of Tools
HARDWARE
Hardware Suppliers
Classic Hardware
C & H Buyer’s Guide
Allen Specialty Hardware
Materials
The WEST SYSTEM‚Ñ¢
The Gougeon Brothers on Boat Construction
West Systems‚Ñ¢ Products Catalog
West System‚Ñ¢ Technical Manual
Livos Non-Toxic Finishes
Devcon
ELECTRONICS
Electronics Know-How
The Art of Electronics
Personal Electronics Book
DON LANCASTER’S COOKBOOK LIBRARY
Active Filter Cookbook
CMOS Cookbook
TTL Cookbook
Consumer Reports - Electronics in The Home
Using Your Meter
Electronics Suppliers
Electronic Buyers Club (EBC)
Mouser Electronics
J & R Music World
GLASS
Cold Glass
GLASS INTRODUCTION
Stained Glass Primers
Stained Glass Primer (Vol. 1)
Stained Glass Primer (Vol. 2)
The Art of Painting on Glass
Hot Glass
Glass Fusing
Glassblowing: A Search for Form
Glasswork Resources
WHERE TO LEARN THE GLASS ARTS
N.Y. Experimental Glass Workshop
Camp Colton Glass Program
Fenton and Gaines Glass Studio
Pilchuck School
Professional Stained Glass Magazine
Whittemore-Durgin Glass Company
Neues Glas
New Work
Glass Art Society Journal
JEWELRY MAKING
Jewelry I
Jewelry Concepts and Techniques
Metal Techniques for Craftsmen
Design and Creation of Jewelry
JEWELRY TECHNIQUES
Creative Casting
Metalwork and Enamelling
Lapidary Journal
Jewelry II
Complete Metalsmith
JEWELRYMAKING EQUIPMENT
Allcraft
Dixon Precision Tools and Equipment
WOODWORKING
Wood
Fine Woodworking Magazine
Fine Woodworking On
Fine Woodworking Techniques
Fine Woodworking Video Workshops
Understanding Wood
Wood Magazine
CERAMICS
Ceramics
CERAMICS INTRODUCTION
Hands in Clay
The Ceramic Spectrum
The Kiln Book
Studio Potter
Ceramics Monthly
TEXTILES
Basketry
BASKETRY INTRODUCTION
Basketry Today with Materials from Nature
The News Basket
The Nature of Basketry
BASKETRY SUPPLIERS
The Caning Shop
Tint & Splint Basketry
H. H. Perkins
Fiber Crafts
Threads
Fiberarts
The Fiberworks Source Book
A Silk Worker’s Handbook
Soft Sculpture
Weaving I
The Key to Weaving
Fashions from the Loom
Working With the Wool: To Weave a Navajo Rug
Techniques of Rug Weaving
Handwoven
Weaving II
Warping All By Yourself
Spinning and Weaving with Wool
Universal Yarn Finder
Needlework
Reader’s Digest Complete Guide to Needlework
Inspiration for Embroidery
The Complete Book of Machine Quilting
Patchwork Patterns
The Textile Booklist
Sewing
Reader’s Digest Complete Guide to Sewing
Power Sewing
Sew Sane
SEWING SUPPLIES
Newark Dressmaker Supply
Clotilde Inc.
Sewing Emporium
Dyeing
Synthetic Dyes for Natural Fibers
The Weaving, Spinning, and Dyeing Book
-- part contents for background part 44
----- text -----
• WHOLE EARTH
• CRAFT
-- part contents for background part 45
----- text -----
stack "WHOLE EARTH"
stack "CRAFT"