home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Hyper / T / The Personal Touch.sit / The Personal Touch / The Personal Touch / background_4872.txt < prev    next >
Encoding:
Text File  |  1988-05-03  |  12.9 KB  |  619 lines

  1. -- background: 4872 from stack: in
  2. -- bmap block id: 76867
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: File Card
  6. ----- HyperTalk script -----
  7. on opencard
  8.   global lastfile
  9.   put the name of this card into lastfile
  10.   set hilite of bkgnd button "File Card" to true
  11.   if bkgnd field "Last Call" is empty then
  12.     set showname of bkgnd button id 83 to true
  13.   end if
  14. end opencard
  15.  
  16. on closecard
  17.   set hilite of bkgnd button "File Card" to false
  18.   set showname of bkgnd button id 83 to false
  19.   set hilite of bkgnd button "Notes" to false
  20.   hide field "Notes"
  21. end closecard
  22.  
  23. on hidestuff
  24.   set cursor to 4
  25.   set lockscreen to true
  26.   hide bkgnd button "Select Label"
  27.   hide bkgnd button "Sort Cards"
  28.   hide bkgnd button "Delete Card"
  29.   hide bkgnd button "Duplicate Card"
  30.   hide bkgnd button "New Card"
  31.   hide bkgnd button id 77
  32. end hidestuff
  33.  
  34.  
  35.  
  36.  
  37. -- part 1 (field)
  38. -- low flags: 00
  39. -- high flags: 4001
  40. -- rect: left=127 top=64 right=130 bottom=440
  41. -- title width / last selected line: 0
  42. -- icon id / first selected line: 0 / 0
  43. -- text alignment: 0
  44. -- font id: 3
  45. -- text size: 12
  46. -- style flags: 256
  47. -- line height: 16
  48. -- part name: Name / Address
  49.  
  50.  
  51. -- part 6 (button)
  52. -- low flags: 00
  53. -- high flags: 2000
  54. -- rect: left=225 top=275 right=304 bottom=265
  55. -- title width / last selected line: 0
  56. -- icon id / first selected line: 17779 / 17779
  57. -- text alignment: 1
  58. -- font id: 0
  59. -- text size: 12
  60. -- style flags: 0
  61. -- line height: 16
  62. -- part name: Prev
  63. ----- HyperTalk script -----
  64. on mouseUp
  65.   set lockscreen to true
  66.   wait 20
  67.   if the mouse is down then go to first card of this bkgnd
  68.   else
  69.     go to prev card of this bkgnd
  70.   end if
  71. end mouseUp
  72.  
  73.  
  74.  
  75. -- part 7 (button)
  76. -- low flags: 00
  77. -- high flags: 2000
  78. -- rect: left=279 top=275 right=304 bottom=320
  79. -- title width / last selected line: 0
  80. -- icon id / first selected line: 8419 / 8419
  81. -- text alignment: 1
  82. -- font id: 0
  83. -- text size: 12
  84. -- style flags: 0
  85. -- line height: 16
  86. -- part name: Next
  87. ----- HyperTalk script -----
  88. on mouseUp
  89.   set lockscreen to true
  90.   wait 20
  91.   if the mouse is down then go to last card of this bkgnd
  92.   else
  93.     go to next card of this bkgnd
  94.   end if
  95. end mouseUp
  96.  
  97.  
  98.  
  99. -- part 11 (field)
  100. -- low flags: 00
  101. -- high flags: 4001
  102. -- rect: left=131 top=150 right=170 bottom=262
  103. -- title width / last selected line: 0
  104. -- icon id / first selected line: 0 / 0
  105. -- text alignment: 65535
  106. -- font id: 3
  107. -- text size: 12
  108. -- style flags: 256
  109. -- line height: 16
  110. -- part name: Home Phone
  111.  
  112.  
  113. -- part 36 (button)
  114. -- low flags: 00
  115. -- high flags: 0004
  116. -- rect: left=9 top=290 right=336 bottom=47
  117. -- title width / last selected line: 0
  118. -- icon id / first selected line: 20098 / 20098
  119. -- text alignment: 1
  120. -- font id: 0
  121. -- text size: 12
  122. -- style flags: 0
  123. -- line height: 16
  124. -- part name: Home
  125. ----- HyperTalk script -----
  126. on mouseUp
  127.   wait 20
  128.   if the mouse is down then
  129.     domenu "Open Stack..."
  130.   else
  131.     visual effect iris close
  132.     go to Home
  133.   end if
  134. end mouseUp
  135.  
  136.  
  137.  
  138. -- part 39 (button)
  139. -- low flags: 80
  140. -- high flags: A002
  141. -- rect: left=8 top=91 right=116 bottom=127
  142. -- title width / last selected line: 0
  143. -- icon id / first selected line: 0 / 0
  144. -- text alignment: 1
  145. -- font id: 0
  146. -- text size: 12
  147. -- style flags: 0
  148. -- line height: 16
  149. -- part name: Sort Cards
  150. ----- HyperTalk script -----
  151. on mouseUp
  152.   hidestuff
  153.   sort by first line of field "Name / Address" in bkgnd "File Card"
  154.   go to bkgnd "File Card"
  155. end mouseUp
  156.  
  157.  
  158.  
  159.  
  160. -- part 42 (button)
  161. -- low flags: 00
  162. -- high flags: 0000
  163. -- rect: left=105 top=149 right=169 bottom=131
  164. -- title width / last selected line: 0
  165. -- icon id / first selected line: 30696 / 30696
  166. -- text alignment: 1
  167. -- font id: 0
  168. -- text size: 12
  169. -- style flags: 0
  170. -- line height: 16
  171. -- part name: 
  172. ----- HyperTalk script -----
  173. on mouseUp
  174.   set cursor to 4
  175.   get first line of field "Home Phone"
  176.   if it is empty then ask "Dial what number?"
  177.   if it is not empty then
  178.     put it & ";" & return into number
  179.     dial number with modem "ATDT"
  180.     Wait 3 seconds
  181.     dial "" with modem "ath"
  182.   end if
  183. end mouseUp
  184.  
  185.  
  186.  
  187. -- part 43 (field)
  188. -- low flags: 00
  189. -- high flags: 4001
  190. -- rect: left=307 top=150 right=170 bottom=439
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 0 / 0
  193. -- text alignment: 65535
  194. -- font id: 3
  195. -- text size: 12
  196. -- style flags: 256
  197. -- line height: 16
  198. -- part name: Work Phone
  199.  
  200.  
  201. -- part 44 (button)
  202. -- low flags: 00
  203. -- high flags: 0000
  204. -- rect: left=280 top=149 right=169 bottom=307
  205. -- title width / last selected line: 0
  206. -- icon id / first selected line: 30696 / 30696
  207. -- text alignment: 1
  208. -- font id: 0
  209. -- text size: 12
  210. -- style flags: 0
  211. -- line height: 16
  212. -- part name: 
  213. ----- HyperTalk script -----
  214. on mouseUp
  215.   set cursor to 4
  216.   get first line of field "Work Phone"
  217.   if it is empty then ask "Dial what number?"
  218.   if it is not empty then
  219.     put it & ";" & return into number
  220.     dial number with modem "ATDT"
  221.     Wait 3 seconds
  222.     dial "" with modem "ath"
  223.   end if
  224. end mouseUp
  225.  
  226.  
  227.  
  228. -- part 48 (field)
  229. -- low flags: 00
  230. -- high flags: 4000
  231. -- rect: left=224 top=196 right=215 bottom=310
  232. -- title width / last selected line: 0
  233. -- icon id / first selected line: 0 / 0
  234. -- text alignment: 1
  235. -- font id: 3
  236. -- text size: 12
  237. -- style flags: 256
  238. -- line height: 16
  239. -- part name: Date
  240.  
  241.  
  242. -- part 49 (field)
  243. -- low flags: 80
  244. -- high flags: 0007
  245. -- rect: left=104 top=146 right=224 bottom=440
  246. -- title width / last selected line: 0
  247. -- icon id / first selected line: 0 / 0
  248. -- text alignment: 0
  249. -- font id: 3
  250. -- text size: 9
  251. -- style flags: 0
  252. -- line height: 12
  253. -- part name: Notes
  254.  
  255.  
  256. -- part 50 (button)
  257. -- low flags: 00
  258. -- high flags: 8002
  259. -- rect: left=115 top=234 right=263 bottom=198
  260. -- title width / last selected line: 0
  261. -- icon id / first selected line: 0 / 0
  262. -- text alignment: 1
  263. -- font id: 3
  264. -- text size: 12
  265. -- style flags: 0
  266. -- line height: 16
  267. -- part name: Notes
  268. ----- HyperTalk script -----
  269. on mouseUp
  270.   if hilite of bkgnd button "Notes" is false then
  271.     Show field "Notes"
  272.     set hilite of bkgnd button "Notes" to true
  273.   else
  274.     hide field "Notes"
  275.     set hilite of bkgnd button "Notes" to false
  276.   end if
  277. end mouseUp
  278.  
  279.  
  280.  
  281. -- part 54 (button)
  282. -- low flags: 80
  283. -- high flags: A002
  284. -- rect: left=8 top=43 right=68 bottom=127
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 1
  288. -- font id: 0
  289. -- text size: 12
  290. -- style flags: 0
  291. -- line height: 16
  292. -- part name: Duplicate Card
  293. ----- HyperTalk script -----
  294. on mouseUp
  295.   hidestuff
  296.   domenu "Copy Card"
  297.   domenu "Paste Card"
  298. end mouseUp
  299.  
  300.  
  301.  
  302. -- part 55 (button)
  303. -- low flags: 80
  304. -- high flags: A002
  305. -- rect: left=8 top=67 right=92 bottom=127
  306. -- title width / last selected line: 0
  307. -- icon id / first selected line: 0 / 0
  308. -- text alignment: 1
  309. -- font id: 0
  310. -- text size: 12
  311. -- style flags: 0
  312. -- line height: 16
  313. -- part name: Delete Card
  314. ----- HyperTalk script -----
  315. on mouseUp
  316.   hidestuff
  317.   put the name of next card in bkgnd "File Card" into temp
  318.   domenu "Delete Card"
  319.   go to temp
  320. end mouseUp
  321.  
  322.  
  323.  
  324. -- part 56 (field)
  325. -- low flags: 01
  326. -- high flags: 0000
  327. -- rect: left=349 top=235 right=248 bottom=431
  328. -- title width / last selected line: 0
  329. -- icon id / first selected line: 0 / 0
  330. -- text alignment: 1
  331. -- font id: 3
  332. -- text size: 9
  333. -- style flags: 0
  334. -- line height: 12
  335. -- part name: Last Call
  336.  
  337.  
  338. -- part 63 (field)
  339. -- low flags: 01
  340. -- high flags: 0001
  341. -- rect: left=349 top=248 right=262 bottom=431
  342. -- title width / last selected line: 0
  343. -- icon id / first selected line: 0 / 0
  344. -- text alignment: 1
  345. -- font id: 3
  346. -- text size: 9
  347. -- style flags: 0
  348. -- line height: 12
  349. -- part name: E/T
  350. ----- HyperTalk script -----
  351.  
  352.  
  353.  
  354.  
  355. -- part 52 (button)
  356. -- low flags: 00
  357. -- high flags: 8004
  358. -- rect: left=60 top=290 right=336 bottom=98
  359. -- title width / last selected line: 0
  360. -- icon id / first selected line: 1009 / 1009
  361. -- text alignment: 1
  362. -- font id: 0
  363. -- text size: 12
  364. -- style flags: 0
  365. -- line height: 16
  366. -- part name: Find
  367. ----- HyperTalk script -----
  368. on mouseup
  369.   Global findname
  370.   wait 20
  371.   if the mouse is down and findname is not empty then
  372.     findperson
  373.   else
  374.     ask "Find..." with findname
  375.     if it is "Cancel" then
  376.       exit mouseup
  377.     end if
  378.  
  379.     if it is not empty then
  380.       put it into findname
  381.       findperson
  382.     end if
  383.   end if
  384. end mouseup
  385.  
  386. on findperson
  387.   Global findname
  388.   set lockscreen to true
  389.   go to next card in this bkgnd
  390.   Find findname in bkgnd field "Name / Address"
  391.   if the result is not empty then
  392.     Find findname in bkgnd field "Notes"
  393.     if the result is not empty then
  394.       answer "No match found." with "OK"
  395.       go to prev card in this bkgnd
  396.     end if
  397.   end if
  398. end findperson
  399.  
  400.  
  401.  
  402. -- part 53 (button)
  403. -- low flags: 80
  404. -- high flags: A002
  405. -- rect: left=8 top=19 right=44 bottom=127
  406. -- title width / last selected line: 0
  407. -- icon id / first selected line: 0 / 0
  408. -- text alignment: 1
  409. -- font id: 0
  410. -- text size: 12
  411. -- style flags: 0
  412. -- line height: 16
  413. -- part name: New Card
  414. ----- HyperTalk script -----
  415. on mouseUp
  416.   hidestuff
  417.   go to last card in bkgnd "File Card"
  418.   domenu "New Card"
  419.   set lockscreen to false
  420.   click at 185,75
  421. end mouseUp
  422.  
  423.  
  424.  
  425. -- part 73 (button)
  426. -- low flags: 00
  427. -- high flags: 8002
  428. -- rect: left=133 top=2 right=20 bottom=252
  429. -- title width / last selected line: 0
  430. -- icon id / first selected line: 0 / 0
  431. -- text alignment: 1
  432. -- font id: 0
  433. -- text size: 12
  434. -- style flags: 0
  435. -- line height: 16
  436. -- part name: Calender
  437. ----- HyperTalk script -----
  438. on mouseUp
  439.   global topcal
  440.   set cursor to 4
  441.   if topcal is empty then
  442.     go to bkgnd "Calender"
  443.   else
  444.     go to topcal
  445.   end if
  446. end mouseUp
  447.  
  448.  
  449.  
  450. -- part 74 (button)
  451. -- low flags: 00
  452. -- high flags: 8002
  453. -- rect: left=259 top=2 right=20 bottom=378
  454. -- title width / last selected line: 0
  455. -- icon id / first selected line: 0 / 0
  456. -- text alignment: 1
  457. -- font id: 0
  458. -- text size: 12
  459. -- style flags: 0
  460. -- line height: 16
  461. -- part name: Label Maker
  462. ----- HyperTalk script -----
  463. on mouseUp
  464.   global topcard
  465.   set cursor to 4
  466.   if topcard is empty then
  467.     go to bkgnd "Label Maker"
  468.   else
  469.     go to topcard
  470.   end if
  471. end mouseUp
  472.  
  473.  
  474.  
  475. -- part 75 (button)
  476. -- low flags: 00
  477. -- high flags: 8002
  478. -- rect: left=385 top=2 right=20 bottom=504
  479. -- title width / last selected line: 0
  480. -- icon id / first selected line: 0 / 0
  481. -- text alignment: 1
  482. -- font id: 0
  483. -- text size: 12
  484. -- style flags: 0
  485. -- line height: 16
  486. -- part name: Note Organizer
  487. ----- HyperTalk script -----
  488. on mouseUp
  489.   global topnote
  490.   set cursor to 4
  491.   if topnote is empty then
  492.     go to bkgnd "Note Organizer"
  493.   else
  494.     go to topnote
  495.   end if
  496. end mouseUp
  497.  
  498.  
  499.  
  500. -- part 76 (button)
  501. -- low flags: 00
  502. -- high flags: 8002
  503. -- rect: left=8 top=2 right=20 bottom=127
  504. -- title width / last selected line: 0
  505. -- icon id / first selected line: 0 / 0
  506. -- text alignment: 1
  507. -- font id: 0
  508. -- text size: 12
  509. -- style flags: 0
  510. -- line height: 16
  511. -- part name: File Card
  512. ----- HyperTalk script -----
  513. on mouseUp
  514.   set lockscreen to true
  515.   show bkgnd button "New Card"
  516.   show bkgnd button "Duplicate Card"
  517.   show bkgnd button "Delete Card"
  518.   show bkgnd button "Sort Cards"
  519.   show bkgnd button "Select Label"
  520.   show bkgnd button id 77
  521. end mouseUp
  522.  
  523.  
  524.  
  525. -- part 77 (button)
  526. -- low flags: 80
  527. -- high flags: 0000
  528. -- rect: left=8 top=2 right=20 bottom=127
  529. -- title width / last selected line: 0
  530. -- icon id / first selected line: 0 / 0
  531. -- text alignment: 1
  532. -- font id: 0
  533. -- text size: 12
  534. -- style flags: 0
  535. -- line height: 16
  536. -- part name: 
  537. ----- HyperTalk script -----
  538. on mouseUp
  539.   hidestuff
  540. end mouseUp
  541.  
  542.  
  543.  
  544.  
  545. -- part 78 (button)
  546. -- low flags: 80
  547. -- high flags: A002
  548. -- rect: left=8 top=115 right=141 bottom=127
  549. -- title width / last selected line: 0
  550. -- icon id / first selected line: 0 / 0
  551. -- text alignment: 1
  552. -- font id: 0
  553. -- text size: 12
  554. -- style flags: 0
  555. -- line height: 16
  556. -- part name: Select Label
  557. ----- HyperTalk script -----
  558. on mouseUp
  559.   global topcard
  560.   set lockscreen to true
  561.   set cursor to 4
  562.   push card
  563.   get field "Name / Address"
  564.   go to last card in bkgnd "Label Maker"
  565.   domenu "Copy Card"
  566.   domenu "Paste Card"
  567.   put the name of this card into topcard
  568.   put line 1 of it into card field "Name"
  569.   put line 2 of it into card field "Address1"
  570.   if line 3 of it is empty then
  571.     put line 4 of it into card field "Address2"
  572.     put empty into card field "City"
  573.   else
  574.     put line 3 of it into card field "Address2"
  575.     put line 4 of it into card field "City"
  576.   end if
  577.   pop card
  578. end mouseUp
  579.  
  580.  
  581.  
  582. -- part 83 (button)
  583. -- low flags: 00
  584. -- high flags: 0000
  585. -- rect: left=348 top=234 right=263 bottom=432
  586. -- title width / last selected line: 0
  587. -- icon id / first selected line: 0 / 0
  588. -- text alignment: 1
  589. -- font id: 3
  590. -- text size: 12
  591. -- style flags: 0
  592. -- line height: 16
  593. -- part name: Timer
  594. ----- HyperTalk script -----
  595. on mouseUp
  596.   wait 20
  597.   if the mouse is down then
  598.     put empty into bkgnd field "Last Call"
  599.     put empty into bkgnd field "E/T"
  600.     set showname of bkgnd button id 83 to true
  601.     exit mouseup
  602.   end if
  603.   set cursor to 4
  604.   set showname of bkgnd button id 83 to false
  605.   set hilite of bkgnd button id 83 to true
  606.   put the date into field "Last Call"
  607.   put the seconds into starting
  608.   repeat until the mouseclick
  609.     put the seconds into present
  610.     put present - starting into elapsed
  611.     convert elapsed to dateitems
  612.     put item 4 of elapsed & ":" & item 5 of elapsed & ":" & item 6 of elapsed into field "E/T"
  613.   end repeat
  614.   set hilite of bkgnd button id 83 to false
  615.  
  616. end mouseUp
  617.  
  618.  
  619.