home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 1995 Winter / Mac Expert - Winter 95.iso / Les fichiers / Communications / AppleTalk Remote access / Scripts ARA ƒ / SL-100 MADO < prev    next >
Encoding:
Text File  |  1991-12-17  |  1.3 KB  |  92 lines  |  [mlts/slnk]

  1. !
  2. !  SL-100 976 script
  3. !  connects to remote Mac using SL-100 modem pool at 9600 baud.
  4. !  (c) 1991 Apple Computer
  5. !  by Jim Baldwin
  6. !
  7. !  Version 1.0a1
  8. !
  9. @ORIGINATE
  10. !
  11. @LABEL 1
  12. !
  13. ! communicate with the SL-100 at 9600 baud
  14. ! send . <cr> to bring up menu
  15. !
  16. serreset 9600, 0, 8, 1
  17. write ".\13"
  18. pause 10
  19. !
  20. !  Dial the number (insert the 9 for outside connection)
  21. @LABEL 8
  22. note "Dialing ^1" 3
  23. write "9^1\13"
  24. !
  25. !
  26. @LABEL 9
  27. matchstr 1 11 "CONNECT 2400"
  28. matchstr 2 12 "CONNECT 9600"
  29. matchstr 3 50 "NO CARRIER"
  30. matchstr 4 50 "ERROR"
  31. matchstr 5 52 "NO DIALTONE"
  32. matchstr 6 53 "BUSY"
  33. matchstr 7 54 "CALL RELEASED"
  34. matchstr 8 13 "CONNECTION IN PROGRESS"
  35. matchstr 9 14 "CALL CONNECTED - SESSION STARTED"
  36. matchread 700
  37. jump 59
  38. !
  39. @LABEL 11
  40. note "Communicating at 2400 bps." 2
  41. serreset 2400, 0, 8, 1
  42. jump 15
  43. !
  44. @LABEL 12
  45. note "Communicating at 9600 bps." 2
  46. jump 15
  47. !
  48. @LABEL 13
  49. note "Connection in progress..." 2
  50. jump 9
  51. !
  52. @LABEL 14
  53. note "Intense beeping back and forth..." 2
  54. jump 9
  55. !
  56. @LABEL 15
  57. pause 20
  58. exit 0
  59. !
  60. ! @ANSWER
  61. ! Set up the modem to answer
  62. ! (SL-100 cannot answer, so just exit)
  63. !
  64. @ANSWER
  65. exit 0
  66. !
  67. ! 50: error messages
  68. ! No carrier
  69. @LABEL 50
  70. exit -6021
  71. ! No Dial Tone
  72. @LABEL 52
  73. exit -6020
  74. ! Busy
  75. @LABEL 53
  76. exit -6022
  77. ! Call Released
  78. @LABEL 54
  79. note "The remote modem has hung up on you!" 2
  80. exit -6021
  81. ! Modem error
  82. @LABEL 59
  83. exit -6019
  84. !
  85. ! Hang up the modem
  86. !
  87. @HANGUP
  88. write "+++"
  89. exit 0
  90.  
  91.