home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / AppleScript / TCP-IP ScriptAdd 1.1.2.sit / TCP_IP Scripting Addition 1.1.2 / Examples 1.2 / Text Versions / Drag and Drop FTP 1.1 (text) < prev    next >
MacBinary  |  1994-09-18  |  6.9 KB  |  [TEXT/ToyS]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Drag and Drop FTP 1.1 (text)

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Sep 18 13:47:11 1994, modified Sun Sep 18 13:47:11 1994, creator 'ToyS', type ASCII, 5843 bytes "Drag and Drop FTP 1.1 (text)" , at 0x1753 929 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID SpeedScript document (C64) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ToyS]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1c 44 72 61 67 20 61 | 6e 64 20 44 72 6f 70 20 |..Drag a|nd Drop |
|00000010| 46 54 50 20 31 2e 31 20 | 28 74 65 78 74 29 00 00 |FTP 1.1 |(text)..|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 54 6f 79 | 53 00 00 00 00 00 00 00 |.TEXTToy|S.......|
|00000050| 00 00 00 00 00 16 d3 00 | 00 03 a1 aa a2 2d 9f aa |........|.....-..|
|00000060| a2 2d 9f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.-......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ee 6f 00 00 |........|.....o..|
|00000080| 28 2a 0d 44 72 61 67 20 | 61 6e 64 20 44 72 6f 70 |(*.Drag |and Drop|
|00000090| 20 46 54 50 0d 76 65 72 | 73 69 6f 6e 20 31 2e 31 | FTP.ver|sion 1.1|
|000000a0| 0d 43 6f 70 79 72 69 67 | 68 74 20 a9 20 31 39 39 |.Copyrig|ht . 199|
|000000b0| 34 20 62 79 20 41 74 75 | 6c 20 42 75 74 74 65 2e |4 by Atu|l Butte.|
|000000c0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000d0| 72 76 65 64 2e 0d 0d 52 | 75 6e 20 6d 65 20 77 69 |rved...R|un me wi|
|000000e0| 74 68 6f 75 74 20 61 6e | 79 20 64 6f 63 75 6d 65 |thout an|y docume|
|000000f0| 6e 74 73 20 74 6f 20 66 | 69 72 73 74 20 73 65 74 |nts to f|irst set|
|00000100| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 20 68 6f 73 | destina|tion hos|
|00000110| 74 20 61 6e 64 20 75 73 | 65 72 2d 69 64 2e 20 54 |t and us|er-id. T|
|00000120| 68 65 6e 20 64 72 6f 70 | 0d 66 69 6c 65 73 20 6f |hen drop|.files o|
|00000130| 6e 20 6d 65 20 61 6e 64 | 20 74 68 65 79 20 77 69 |n me and| they wi|
|00000140| 6c 6c 20 62 65 20 73 65 | 6e 74 20 74 6f 20 74 68 |ll be se|nt to th|
|00000150| 61 74 20 68 6f 73 74 20 | 76 69 61 20 46 54 50 2e |at host |via FTP.|
|00000160| 0d 0d 41 74 75 6c 20 42 | 75 74 74 65 0d 61 74 75 |..Atul B|utte.atu|
|00000170| 6c 5f 62 75 74 74 65 40 | 62 72 6f 77 6e 2e 65 64 |l_butte@|brown.ed|
|00000180| 75 0d 2a 29 0d 0d 67 6c | 6f 62 61 6c 20 4c 46 2c |u.*)..gl|obal LF,|
|00000190| 20 43 52 2c 20 43 52 4c | 46 0d 0d 70 72 6f 70 65 | CR, CRL|F..prope|
|000001a0| 72 74 79 20 66 74 70 5f | 73 65 74 20 3a 20 66 61 |rty ftp_|set : fa|
|000001b0| 6c 73 65 0d 70 72 6f 70 | 65 72 74 79 20 66 74 70 |lse.prop|erty ftp|
|000001c0| 5f 68 6f 73 74 20 3a 20 | 22 22 0d 70 72 6f 70 65 |_host : |"".prope|
|000001d0| 72 74 79 20 66 74 70 5f | 75 73 65 72 20 3a 20 22 |rty ftp_|user : "|
|000001e0| 22 0d 70 72 6f 70 65 72 | 74 79 20 66 74 70 5f 64 |".proper|ty ftp_d|
|000001f0| 69 72 65 63 74 6f 72 79 | 20 3a 20 22 22 0d 70 72 |irectory| : "".pr|
|00000200| 6f 70 65 72 74 79 20 66 | 74 70 5f 74 72 61 6e 73 |operty f|tp_trans|
|00000210| 66 65 72 5f 74 79 70 65 | 20 3a 20 22 22 0d 0d 6f |fer_type| : ""..o|
|00000220| 6e 20 72 75 6e 0d 09 73 | 65 74 20 64 69 61 6c 6f |n run..s|et dialo|
|00000230| 67 5f 72 65 73 70 6f 6e | 73 65 20 74 6f 20 28 64 |g_respon|se to (d|
|00000240| 69 73 70 6c 61 79 20 64 | 69 61 6c 6f 67 20 22 45 |isplay d|ialog "E|
|00000250| 6e 74 65 72 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |nter the| name of|
|00000260| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 77 68 65 | the mac|hine whe|
|00000270| 72 65 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 73 |re you w|ant to s|
|00000280| 65 6e 64 20 66 69 6c 65 | 73 20 64 72 6f 70 70 65 |end file|s droppe|
|00000290| 64 20 6f 6e 20 6d 65 22 | 20 64 65 66 61 75 6c 74 |d on me"| default|
|000002a0| 20 61 6e 73 77 65 72 20 | 66 74 70 5f 68 6f 73 74 | answer |ftp_host|
|000002b0| 29 0d 09 69 66 20 28 62 | 75 74 74 6f 6e 20 72 65 |)..if (b|utton re|
|000002c0| 74 75 72 6e 65 64 20 6f | 66 20 64 69 61 6c 6f 67 |turned o|f dialog|
|000002d0| 5f 72 65 73 70 6f 6e 73 | 65 20 ad 20 22 4f 4b 22 |_respons|e . "OK"|
|000002e0| 29 20 74 68 65 6e 0d 09 | 09 72 65 74 75 72 6e 0d |) then..|.return.|
|000002f0| 09 65 6c 73 65 0d 09 09 | 73 65 74 20 66 74 70 5f |.else...|set ftp_|
|00000300| 68 6f 73 74 20 74 6f 20 | 74 65 78 74 20 72 65 74 |host to |text ret|
|00000310| 75 72 6e 65 64 20 6f 66 | 20 64 69 61 6c 6f 67 5f |urned of| dialog_|
|00000320| 72 65 73 70 6f 6e 73 65 | 0d 09 65 6e 64 20 69 66 |response|..end if|
|00000330| 0d 09 0d 09 73 65 74 20 | 64 69 61 6c 6f 67 5f 72 |....set |dialog_r|
|00000340| 65 73 70 6f 6e 73 65 20 | 74 6f 20 28 64 69 73 70 |esponse |to (disp|
|00000350| 6c 61 79 20 64 69 61 6c | 6f 67 20 22 45 6e 74 65 |lay dial|og "Ente|
|00000360| 72 20 79 6f 75 72 20 75 | 73 65 72 d0 69 64 20 6f |r your u|ser.id o|
|00000370| 6e 20 22 20 26 20 66 74 | 70 5f 68 6f 73 74 20 64 |n " & ft|p_host d|
|00000380| 65 66 61 75 6c 74 20 61 | 6e 73 77 65 72 20 66 74 |efault a|nswer ft|
|00000390| 70 5f 75 73 65 72 29 0d | 09 69 66 20 28 62 75 74 |p_user).|.if (but|
|000003a0| 74 6f 6e 20 72 65 74 75 | 72 6e 65 64 20 6f 66 20 |ton retu|rned of |
|000003b0| 64 69 61 6c 6f 67 5f 72 | 65 73 70 6f 6e 73 65 20 |dialog_r|esponse |
|000003c0| ad 20 22 4f 4b 22 29 20 | 74 68 65 6e 0d 09 09 72 |. "OK") |then...r|
|000003d0| 65 74 75 72 6e 0d 09 65 | 6c 73 65 0d 09 09 73 65 |eturn..e|lse...se|
|000003e0| 74 20 66 74 70 5f 75 73 | 65 72 20 74 6f 20 74 65 |t ftp_us|er to te|
|000003f0| 78 74 20 72 65 74 75 72 | 6e 65 64 20 6f 66 20 64 |xt retur|ned of d|
|00000400| 69 61 6c 6f 67 5f 72 65 | 73 70 6f 6e 73 65 0d 09 |ialog_re|sponse..|
|00000410| 65 6e 64 20 69 66 0d 09 | 0d 09 73 65 74 20 64 69 |end if..|..set di|
|00000420| 61 6c 6f 67 5f 72 65 73 | 70 6f 6e 73 65 20 74 6f |alog_res|ponse to|
|00000430| 20 28 64 69 73 70 6c 61 | 79 20 64 69 61 6c 6f 67 | (displa|y dialog|
|00000440| 20 22 45 6e 74 65 72 20 | 74 68 65 20 64 69 72 65 | "Enter |the dire|
|00000450| 63 74 6f 72 79 20 6f 6e | 20 22 20 26 20 66 74 70 |ctory on| " & ftp|
|00000460| 5f 68 6f 73 74 20 26 20 | 22 20 69 6e 20 77 68 69 |_host & |" in whi|
|00000470| 63 68 20 74 6f 20 73 74 | 6f 72 65 20 74 68 65 20 |ch to st|ore the |
|00000480| 66 69 6c 65 73 2c 20 6f | 72 20 70 72 65 73 73 20 |files, o|r press |
|00000490| 52 65 74 75 72 6e 20 66 | 6f 72 20 64 65 66 61 75 |Return f|or defau|
|000004a0| 6c 74 20 64 69 72 65 63 | 74 6f 72 79 22 20 64 65 |lt direc|tory" de|
|000004b0| 66 61 75 6c 74 20 61 6e | 73 77 65 72 20 66 74 70 |fault an|swer ftp|
|000004c0| 5f 64 69 72 65 63 74 6f | 72 79 29 0d 09 69 66 20 |_directo|ry)..if |
|000004d0| 28 62 75 74 74 6f 6e 20 | 72 65 74 75 72 6e 65 64 |(button |returned|
|000004e0| 20 6f 66 20 64 69 61 6c | 6f 67 5f 72 65 73 70 6f | of dial|og_respo|
|000004f0| 6e 73 65 20 ad 20 22 4f | 4b 22 29 20 74 68 65 6e |nse . "O|K") then|
|00000500| 0d 09 09 72 65 74 75 72 | 6e 0d 09 65 6c 73 65 0d |...retur|n..else.|
|00000510| 09 09 73 65 74 20 66 74 | 70 5f 64 69 72 65 63 74 |..set ft|p_direct|
|00000520| 6f 72 79 20 74 6f 20 74 | 65 78 74 20 72 65 74 75 |ory to t|ext retu|
|00000530| 72 6e 65 64 20 6f 66 20 | 64 69 61 6c 6f 67 5f 72 |rned of |dialog_r|
|00000540| 65 73 70 6f 6e 73 65 0d | 09 65 6e 64 20 69 66 0d |esponse.|.end if.|
|00000550| 09 0d 09 73 65 74 20 64 | 69 61 6c 6f 67 5f 72 65 |...set d|ialog_re|
|00000560| 73 70 6f 6e 73 65 20 74 | 6f 20 28 64 69 73 70 6c |sponse t|o (displ|
|00000570| 61 79 20 64 69 61 6c 6f | 67 20 22 44 6f 20 79 6f |ay dialo|g "Do yo|
|00000580| 75 20 77 61 6e 74 20 74 | 68 65 73 65 20 64 6f 77 |u want t|hese dow|
|00000590| 6e 6c 6f 61 64 65 64 20 | 61 73 20 28 31 29 20 4d |nloaded |as (1) M|
|000005a0| 61 63 42 69 6e 61 72 79 | 20 66 69 6c 65 73 2c 20 |acBinary| files, |
|000005b0| 28 32 29 20 74 65 78 74 | 20 66 69 6c 65 73 2c 20 |(2) text| files, |
|000005c0| 6f 72 20 28 33 29 20 72 | 61 77 20 64 61 74 61 20 |or (3) r|aw data |
|000005d0| 66 69 6c 65 73 3f 22 20 | 64 65 66 61 75 6c 74 20 |files?" |default |
|000005e0| 61 6e 73 77 65 72 20 22 | 31 22 29 0d 09 69 66 20 |answer "|1")..if |
|000005f0| 28 62 75 74 74 6f 6e 20 | 72 65 74 75 72 6e 65 64 |(button |returned|
|00000600| 20 6f 66 20 64 69 61 6c | 6f 67 5f 72 65 73 70 6f | of dial|og_respo|
|00000610| 6e 73 65 20 ad 20 22 4f | 4b 22 29 20 74 68 65 6e |nse . "O|K") then|
|00000620| 0d 09 09 72 65 74 75 72 | 6e 0d 09 65 6c 73 65 0d |...retur|n..else.|
|00000630| 09 09 73 65 74 20 66 74 | 70 5f 74 72 61 6e 73 66 |..set ft|p_transf|
|00000640| 65 72 5f 74 79 70 65 20 | 74 6f 20 28 28 74 65 78 |er_type |to ((tex|
|00000650| 74 20 72 65 74 75 72 6e | 65 64 20 6f 66 20 64 69 |t return|ed of di|
|00000660| 61 6c 6f 67 5f 72 65 73 | 70 6f 6e 73 65 29 20 61 |alog_res|ponse) a|
|00000670| 73 20 69 6e 74 65 67 65 | 72 29 0d 09 65 6e 64 20 |s intege|r)..end |
|00000680| 69 66 0d 09 0d 09 73 65 | 74 20 66 74 70 5f 73 65 |if....se|t ftp_se|
|00000690| 74 20 74 6f 20 74 72 75 | 65 0d 65 6e 64 20 72 75 |t to tru|e.end ru|
|000006a0| 6e 0d 0d 6f 6e 20 6f 70 | 65 6e 20 28 64 6f 63 4c |n..on op|en (docL|
|000006b0| 69 73 74 29 0d 09 73 65 | 74 20 4c 46 20 74 6f 20 |ist)..se|t LF to |
|000006c0| 28 41 53 43 49 49 20 63 | 68 61 72 61 63 74 65 72 |(ASCII c|haracter|
|000006d0| 20 6f 66 20 31 30 29 0d | 09 73 65 74 20 43 52 20 | of 10).|.set CR |
|000006e0| 74 6f 20 28 41 53 43 49 | 49 20 63 68 61 72 61 63 |to (ASCI|I charac|
|000006f0| 74 65 72 20 6f 66 20 31 | 33 29 0d 09 73 65 74 20 |ter of 1|3)..set |
|00000700| 43 52 4c 46 20 74 6f 20 | 43 52 20 26 20 4c 46 0d |CRLF to |CR & LF.|
|00000710| 09 73 65 74 20 6f 6c 64 | 44 65 6c 69 6d 69 74 65 |.set old|Delimite|
|00000720| 72 73 20 74 6f 20 41 70 | 70 6c 65 53 63 72 69 70 |rs to Ap|pleScrip|
|00000730| 74 27 73 20 74 65 78 74 | 20 69 74 65 6d 20 64 65 |t's text| item de|
|00000740| 6c 69 6d 69 74 65 72 73 | 0d 09 73 65 74 20 41 70 |limiters|..set Ap|
|00000750| 70 6c 65 53 63 72 69 70 | 74 27 73 20 74 65 78 74 |pleScrip|t's text|
|00000760| 20 69 74 65 6d 20 64 65 | 6c 69 6d 69 74 65 72 73 | item de|limiters|
|00000770| 20 74 6f 20 7b 22 2e 22 | 7d 0d 09 73 65 74 20 6c | to {"."|}..set l|
|00000780| 6f 63 61 6c 41 64 64 72 | 20 74 6f 20 28 74 63 70 |ocalAddr| to (tcp|
|00000790| 20 6d 79 20 61 64 64 72 | 65 73 73 29 0d 09 73 65 | my addr|ess)..se|
|000007a0| 74 20 6c 6f 63 61 6c 41 | 64 64 72 4c 69 73 74 20 |t localA|ddrList |
|000007b0| 74 6f 20 74 65 78 74 20 | 69 74 65 6d 73 20 6f 66 |to text |items of|
|000007c0| 20 6c 6f 63 61 6c 41 64 | 64 72 0d 09 73 65 74 20 | localAd|dr..set |
|000007d0| 41 70 70 6c 65 53 63 72 | 69 70 74 27 73 20 74 65 |AppleScr|ipt's te|
|000007e0| 78 74 20 69 74 65 6d 20 | 64 65 6c 69 6d 69 74 65 |xt item |delimite|
|000007f0| 72 73 20 74 6f 20 7b 22 | 2c 22 7d 0d 09 73 65 74 |rs to {"|,"}..set|
|00000800| 20 6c 6f 63 61 6c 41 64 | 64 72 43 6f 6d 6d 61 53 | localAd|drCommaS|
|00000810| 74 72 69 6e 67 20 74 6f | 20 6c 6f 63 61 6c 41 64 |tring to| localAd|
|00000820| 64 72 4c 69 73 74 20 61 | 73 20 73 74 72 69 6e 67 |drList a|s string|
|00000830| 0d 09 73 65 74 20 41 70 | 70 6c 65 53 63 72 69 70 |..set Ap|pleScrip|
|00000840| 74 27 73 20 74 65 78 74 | 20 69 74 65 6d 20 64 65 |t's text| item de|
|00000850| 6c 69 6d 69 74 65 72 73 | 20 74 6f 20 6f 6c 64 44 |limiters| to oldD|
|00000860| 65 6c 69 6d 69 74 65 72 | 73 0d 09 0d 09 69 66 20 |elimiter|s....if |
|00000870| 6e 6f 74 20 66 74 70 5f | 73 65 74 20 74 68 65 6e |not ftp_|set then|
|00000880| 0d 09 09 72 75 6e 0d 09 | 65 6e 64 20 69 66 0d 09 |...run..|end if..|
|00000890| 0d 09 73 65 74 20 64 69 | 61 6c 6f 67 5f 72 65 73 |..set di|alog_res|
|000008a0| 70 6f 6e 73 65 20 74 6f | 20 28 64 69 73 70 6c 61 |ponse to| (displa|
|000008b0| 79 20 64 69 61 6c 6f 67 | 20 22 45 6e 74 65 72 20 |y dialog| "Enter |
|000008c0| 74 68 65 20 70 61 73 73 | 77 6f 72 64 20 66 6f 72 |the pass|word for|
|000008d0| 20 22 20 26 20 66 74 70 | 5f 75 73 65 72 20 26 20 | " & ftp|_user & |
|000008e0| 22 40 22 20 26 20 66 74 | 70 5f 68 6f 73 74 20 26 |"@" & ft|p_host &|
|000008f0| 20 72 65 74 75 72 6e 20 | 26 20 22 4e 6f 74 65 3a | return |& "Note:|
|00000900| 20 77 68 61 74 20 79 6f | 75 20 74 79 70 65 20 69 | what yo|u type i|
|00000910| 73 20 76 69 73 69 62 6c | 65 21 22 20 64 65 66 61 |s visibl|e!" defa|
|00000920| 75 6c 74 20 61 6e 73 77 | 65 72 20 22 22 29 0d 09 |ult answ|er "")..|
|00000930| 69 66 20 28 62 75 74 74 | 6f 6e 20 72 65 74 75 72 |if (butt|on retur|
|00000940| 6e 65 64 20 6f 66 20 64 | 69 61 6c 6f 67 5f 72 65 |ned of d|ialog_re|
|00000950| 73 70 6f 6e 73 65 20 ad | 20 22 4f 4b 22 29 20 74 |sponse .| "OK") t|
|00000960| 68 65 6e 0d 09 09 72 65 | 74 75 72 6e 0d 09 65 6c |hen...re|turn..el|
|00000970| 73 65 0d 09 09 73 65 74 | 20 66 74 70 5f 70 61 73 |se...set| ftp_pas|
|00000980| 73 77 6f 72 64 20 74 6f | 20 74 65 78 74 20 72 65 |sword to| text re|
|00000990| 74 75 72 6e 65 64 20 6f | 66 20 64 69 61 6c 6f 67 |turned o|f dialog|
|000009a0| 5f 72 65 73 70 6f 6e 73 | 65 0d 09 65 6e 64 20 69 |_respons|e..end i|
|000009b0| 66 0d 09 0d 09 73 65 74 | 20 73 73 73 20 74 6f 20 |f....set| sss to |
|000009c0| 28 74 63 70 20 63 6f 6e | 6e 65 63 74 20 74 6f 20 |(tcp con|nect to |
|000009d0| 68 6f 73 74 20 66 74 70 | 5f 68 6f 73 74 20 70 6f |host ftp|_host po|
|000009e0| 72 74 20 32 31 29 0d 09 | 74 72 79 0d 09 09 72 65 |rt 21)..|try...re|
|000009f0| 61 64 72 65 73 70 6f 6e | 73 65 28 73 73 73 29 0d |adrespon|se(sss).|
|00000a00| 09 09 69 66 20 28 66 74 | 70 5f 75 73 65 72 20 ad |..if (ft|p_user .|
|00000a10| 20 22 22 29 20 74 68 65 | 6e 0d 09 09 09 74 63 70 | "") the|n....tcp|
|00000a20| 20 77 72 69 74 65 20 73 | 74 72 65 61 6d 20 73 73 | write s|tream ss|
|00000a30| 73 20 64 61 74 61 20 22 | 55 53 45 52 20 22 20 26 |s data "|USER " &|
|00000a40| 20 66 74 70 5f 75 73 65 | 72 20 26 20 72 65 74 75 | ftp_use|r & retu|
|00000a50| 72 6e 20 75 73 69 6e 67 | 20 49 53 4f 38 38 35 39 |rn using| ISO8859|
|00000a60| 31 0d 09 09 09 72 65 61 | 64 72 65 73 70 6f 6e 73 |1....rea|drespons|
|00000a70| 65 28 73 73 73 29 0d 09 | 09 65 6e 64 20 69 66 0d |e(sss)..|.end if.|
|00000a80| 09 09 69 66 20 28 66 74 | 70 5f 70 61 73 73 77 6f |..if (ft|p_passwo|
|00000a90| 72 64 20 ad 20 22 22 29 | 20 74 68 65 6e 0d 09 09 |rd . "")| then...|
|00000aa0| 09 74 63 70 20 77 72 69 | 74 65 20 73 74 72 65 61 |.tcp wri|te strea|
|00000ab0| 6d 20 73 73 73 20 64 61 | 74 61 20 22 50 41 53 53 |m sss da|ta "PASS|
|00000ac0| 20 22 20 26 20 66 74 70 | 5f 70 61 73 73 77 6f 72 | " & ftp|_passwor|
|00000ad0| 64 20 26 20 72 65 74 75 | 72 6e 20 75 73 69 6e 67 |d & retu|rn using|
|00000ae0| 20 49 53 4f 38 38 35 39 | 31 0d 09 09 09 72 65 61 | ISO8859|1....rea|
|00000af0| 64 72 65 73 70 6f 6e 73 | 65 28 73 73 73 29 0d 09 |drespons|e(sss)..|
|00000b00| 09 65 6e 64 20 69 66 0d | 09 09 69 66 20 28 66 74 |.end if.|..if (ft|
|00000b10| 70 5f 64 69 72 65 63 74 | 6f 72 79 20 ad 20 22 22 |p_direct|ory . ""|
|00000b20| 29 20 74 68 65 6e 0d 09 | 09 09 74 63 70 20 77 72 |) then..|..tcp wr|
|00000b30| 69 74 65 20 73 74 72 65 | 61 6d 20 73 73 73 20 64 |ite stre|am sss d|
|00000b40| 61 74 61 20 22 43 57 44 | 20 22 20 26 20 66 74 70 |ata "CWD| " & ftp|
|00000b50| 5f 64 69 72 65 63 74 6f | 72 79 20 26 20 72 65 74 |_directo|ry & ret|
|00000b60| 75 72 6e 20 75 73 69 6e | 67 20 49 53 4f 38 38 35 |urn usin|g ISO885|
|00000b70| 39 31 0d 09 09 09 72 65 | 61 64 72 65 73 70 6f 6e |91....re|adrespon|
|00000b80| 73 65 28 73 73 73 29 0d | 09 09 65 6e 64 20 69 66 |se(sss).|..end if|
|00000b90| 0d 09 09 0d 09 09 72 65 | 70 65 61 74 20 77 69 74 |......re|peat wit|
|00000ba0| 68 20 61 46 69 6c 65 20 | 69 6e 20 64 6f 63 4c 69 |h aFile |in docLi|
|00000bb0| 73 74 0d 09 09 09 73 65 | 74 20 61 46 69 6c 65 20 |st....se|t aFile |
|00000bc0| 74 6f 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 61 |to conte|nts of a|
|00000bd0| 46 69 6c 65 0d 09 09 09 | 0d 09 09 09 69 66 20 66 |File....|....if f|
|00000be0| 74 70 5f 74 72 61 6e 73 | 66 65 72 5f 74 79 70 65 |tp_trans|fer_type|
|00000bf0| 20 ad 20 32 20 74 68 65 | 6e 0d 09 09 09 09 74 63 | . 2 the|n.....tc|
|00000c00| 70 20 77 72 69 74 65 20 | 73 74 72 65 61 6d 20 73 |p write |stream s|
|00000c10| 73 73 20 64 61 74 61 20 | 22 54 59 50 45 20 49 22 |ss data |"TYPE I"|
|00000c20| 20 26 20 72 65 74 75 72 | 6e 20 75 73 69 6e 67 20 | & retur|n using |
|00000c30| 49 53 4f 38 38 35 39 31 | 0d 09 09 09 09 72 65 61 |ISO88591|.....rea|
|00000c40| 64 72 65 73 70 6f 6e 73 | 65 28 73 73 73 29 0d 09 |drespons|e(sss)..|
|00000c50| 09 09 65 6c 73 65 0d 09 | 09 09 09 74 63 70 20 77 |..else..|...tcp w|
|00000c60| 72 69 74 65 20 73 74 72 | 65 61 6d 20 73 73 73 20 |rite str|eam sss |
|00000c70| 64 61 74 61 20 22 54 59 | 50 45 20 41 22 20 26 20 |data "TY|PE A" & |
|00000c80| 72 65 74 75 72 6e 20 75 | 73 69 6e 67 20 49 53 4f |return u|sing ISO|
|00000c90| 38 38 35 39 31 0d 09 09 | 09 09 72 65 61 64 72 65 |88591...|..readre|
|00000ca0| 73 70 6f 6e 73 65 28 73 | 73 73 29 0d 09 09 09 65 |sponse(s|ss)....e|
|00000cb0| 6e 64 20 69 66 0d 09 09 | 09 0d 09 09 09 73 65 74 |nd if...|.....set|
|00000cc0| 20 64 61 74 61 5f 73 74 | 72 65 61 6d 20 74 6f 20 | data_st|ream to |
|00000cd0| 28 74 63 70 20 77 61 69 | 74 20 66 6f 72 20 63 6f |(tcp wai|t for co|
|00000ce0| 6e 6e 65 63 74 29 0d 09 | 09 09 73 65 74 20 64 61 |nnect)..|..set da|
|00000cf0| 74 61 5f 73 74 72 65 61 | 6d 5f 73 74 61 74 75 73 |ta_strea|m_status|
|00000d00| 20 74 6f 20 28 74 63 70 | 20 73 74 61 74 75 73 20 | to (tcp| status |
|00000d10| 73 74 72 65 61 6d 20 64 | 61 74 61 5f 73 74 72 65 |stream d|ata_stre|
|00000d20| 61 6d 29 0d 09 09 09 73 | 65 74 20 70 6f 72 74 48 |am)....s|et portH|
|00000d30| 69 42 79 74 65 20 74 6f | 20 72 6f 75 6e 64 20 28 |iByte to| round (|
|00000d40| 6c 6f 63 61 6c 20 70 6f | 72 74 20 6f 66 20 64 61 |local po|rt of da|
|00000d50| 74 61 5f 73 74 72 65 61 | 6d 5f 73 74 61 74 75 73 |ta_strea|m_status|
|00000d60| 29 20 2f 20 32 35 36 20 | 72 6f 75 6e 64 69 6e 67 |) / 256 |rounding|
|00000d70| 20 64 6f 77 6e 0d 09 09 | 09 73 65 74 20 70 6f 72 | down...|.set por|
|00000d80| 74 4c 6f 42 79 74 65 20 | 74 6f 20 28 6c 6f 63 61 |tLoByte |to (loca|
|00000d90| 6c 20 70 6f 72 74 20 6f | 66 20 64 61 74 61 5f 73 |l port o|f data_s|
|00000da0| 74 72 65 61 6d 5f 73 74 | 61 74 75 73 29 20 6d 6f |tream_st|atus) mo|
|00000db0| 64 20 32 35 36 0d 09 09 | 09 74 63 70 20 77 72 69 |d 256...|.tcp wri|
|00000dc0| 74 65 20 73 74 72 65 61 | 6d 20 73 73 73 20 64 61 |te strea|m sss da|
|00000dd0| 74 61 20 22 50 4f 52 54 | 20 22 20 26 20 6c 6f 63 |ta "PORT| " & loc|
|00000de0| 61 6c 41 64 64 72 43 6f | 6d 6d 61 53 74 72 69 6e |alAddrCo|mmaStrin|
|00000df0| 67 20 26 20 22 2c 22 20 | 26 20 70 6f 72 74 48 69 |g & "," |& portHi|
|00000e00| 42 79 74 65 20 26 20 22 | 2c 22 20 26 20 70 6f 72 |Byte & "|," & por|
|00000e10| 74 4c 6f 42 79 74 65 20 | 26 20 72 65 74 75 72 6e |tLoByte |& return|
|00000e20| 20 75 73 69 6e 67 20 49 | 53 4f 38 38 35 39 31 0d | using I|SO88591.|
|00000e30| 09 09 09 72 65 61 64 72 | 65 73 70 6f 6e 73 65 28 |...readr|esponse(|
|00000e40| 73 73 73 29 0d 09 09 09 | 0d 09 09 09 73 65 74 20 |sss)....|....set |
|00000e50| 61 66 69 6c 65 6e 61 6d | 65 20 74 6f 20 61 46 69 |afilenam|e to aFi|
|00000e60| 6c 65 20 61 73 20 73 74 | 72 69 6e 67 0d 09 09 09 |le as st|ring....|
|00000e70| 73 65 74 20 6f 6c 64 44 | 65 6c 69 6d 69 74 65 72 |set oldD|elimiter|
|00000e80| 73 20 74 6f 20 41 70 70 | 6c 65 53 63 72 69 70 74 |s to App|leScript|
|00000e90| 27 73 20 74 65 78 74 20 | 69 74 65 6d 20 64 65 6c |'s text |item del|
|00000ea0| 69 6d 69 74 65 72 73 0d | 09 09 09 73 65 74 20 41 |imiters.|...set A|
|00000eb0| 70 70 6c 65 53 63 72 69 | 70 74 27 73 20 74 65 78 |ppleScri|pt's tex|
|00000ec0| 74 20 69 74 65 6d 20 64 | 65 6c 69 6d 69 74 65 72 |t item d|elimiter|
|00000ed0| 73 20 74 6f 20 7b 22 3a | 22 7d 0d 09 09 09 73 65 |s to {":|"}....se|
|00000ee0| 74 20 74 68 65 46 69 6c | 65 4e 61 6d 65 20 74 6f |t theFil|eName to|
|00000ef0| 20 6c 61 73 74 20 74 65 | 78 74 20 69 74 65 6d 20 | last te|xt item |
|00000f00| 6f 66 20 61 66 69 6c 65 | 6e 61 6d 65 0d 09 09 09 |of afile|name....|
|00000f10| 73 65 74 20 41 70 70 6c | 65 53 63 72 69 70 74 27 |set Appl|eScript'|
|00000f20| 73 20 74 65 78 74 20 69 | 74 65 6d 20 64 65 6c 69 |s text i|tem deli|
|00000f30| 6d 69 74 65 72 73 20 74 | 6f 20 7b 22 20 22 7d 0d |miters t|o {" "}.|
|00000f40| 09 09 09 73 65 74 20 64 | 20 74 6f 20 74 65 78 74 |...set d| to text|
|00000f50| 20 69 74 65 6d 73 20 6f | 66 20 74 68 65 46 69 6c | items o|f theFil|
|00000f60| 65 4e 61 6d 65 0d 09 09 | 09 73 65 74 20 41 70 70 |eName...|.set App|
|00000f70| 6c 65 53 63 72 69 70 74 | 27 73 20 74 65 78 74 20 |leScript|'s text |
|00000f80| 69 74 65 6d 20 64 65 6c | 69 6d 69 74 65 72 73 20 |item del|imiters |
|00000f90| 74 6f 20 7b 22 5f 22 7d | 0d 09 09 09 73 65 74 20 |to {"_"}|....set |
|00000fa0| 74 68 65 46 69 6c 65 4e | 61 6d 65 20 74 6f 20 64 |theFileN|ame to d|
|00000fb0| 20 61 73 20 73 74 72 69 | 6e 67 0d 09 09 09 73 65 | as stri|ng....se|
|00000fc0| 74 20 41 70 70 6c 65 53 | 63 72 69 70 74 27 73 20 |t AppleS|cript's |
|00000fd0| 74 65 78 74 20 69 74 65 | 6d 20 64 65 6c 69 6d 69 |text ite|m delimi|
|00000fe0| 74 65 72 73 20 74 6f 20 | 6f 6c 64 44 65 6c 69 6d |ters to |oldDelim|
|00000ff0| 69 74 65 72 73 0d 09 09 | 09 0d 09 09 09 74 63 70 |iters...|.....tcp|
|00001000| 20 77 72 69 74 65 20 73 | 74 72 65 61 6d 20 73 73 | write s|tream ss|
|00001010| 73 20 64 61 74 61 20 22 | 53 54 4f 52 20 22 20 26 |s data "|STOR " &|
|00001020| 20 74 68 65 46 69 6c 65 | 4e 61 6d 65 20 26 20 72 | theFile|Name & r|
|00001030| 65 74 75 72 6e 20 26 20 | 4c 46 0d 09 09 09 72 65 |eturn & |LF....re|
|00001040| 61 64 72 65 73 70 6f 6e | 73 65 28 73 73 73 29 0d |adrespon|se(sss).|
|00001050| 09 09 09 0d 09 09 09 72 | 65 70 65 61 74 20 75 6e |.......r|epeat un|
|00001060| 74 69 6c 20 28 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |til (con|nection |
|00001070| 73 74 61 74 75 73 20 6f | 66 20 28 74 63 70 20 73 |status o|f (tcp s|
|00001080| 74 61 74 75 73 20 73 74 | 72 65 61 6d 20 64 61 74 |tatus st|ream dat|
|00001090| 61 5f 73 74 72 65 61 6d | 29 20 3d 20 43 6f 6e 6e |a_stream|) = Conn|
|000010a0| 65 63 74 65 64 29 0d 09 | 09 09 65 6e 64 20 72 65 |ected)..|..end re|
|000010b0| 70 65 61 74 0d 09 09 09 | 74 72 79 0d 09 09 09 09 |peat....|try.....|
|000010c0| 69 66 20 66 74 70 5f 74 | 72 61 6e 73 66 65 72 5f |if ftp_t|ransfer_|
|000010d0| 74 79 70 65 20 3d 20 31 | 20 74 68 65 6e 0d 09 09 |type = 1| then...|
|000010e0| 09 09 09 74 63 70 20 73 | 65 6e 64 20 73 74 72 65 |...tcp s|end stre|
|000010f0| 61 6d 20 64 61 74 61 5f | 73 74 72 65 61 6d 20 73 |am data_|stream s|
|00001100| 6f 75 72 63 65 20 28 61 | 46 69 6c 65 29 20 75 73 |ource (a|File) us|
|00001110| 69 6e 67 20 4d 61 63 42 | 69 6e 61 72 79 0d 09 09 |ing MacB|inary...|
|00001120| 09 09 65 6c 73 65 20 69 | 66 20 66 74 70 5f 74 72 |..else i|f ftp_tr|
|00001130| 61 6e 73 66 65 72 5f 74 | 79 70 65 20 3d 20 32 20 |ansfer_t|ype = 2 |
|00001140| 74 68 65 6e 0d 09 09 09 | 09 09 74 63 70 20 73 65 |then....|..tcp se|
|00001150| 6e 64 20 73 74 72 65 61 | 6d 20 64 61 74 61 5f 73 |nd strea|m data_s|
|00001160| 74 72 65 61 6d 20 73 6f | 75 72 63 65 20 28 61 46 |tream so|urce (aF|
|00001170| 69 6c 65 29 20 75 73 69 | 6e 67 20 49 53 4f 38 38 |ile) usi|ng ISO88|
|00001180| 35 39 31 0d 09 09 09 09 | 65 6c 73 65 20 69 66 20 |591.....|else if |
|00001190| 66 74 70 5f 74 72 61 6e | 73 66 65 72 5f 74 79 70 |ftp_tran|sfer_typ|
|000011a0| 65 20 3d 20 33 20 74 68 | 65 6e 0d 09 09 09 09 09 |e = 3 th|en......|
|000011b0| 74 63 70 20 73 65 6e 64 | 20 73 74 72 65 61 6d 20 |tcp send| stream |
|000011c0| 64 61 74 61 5f 73 74 72 | 65 61 6d 20 73 6f 75 72 |data_str|eam sour|
|000011d0| 63 65 20 28 61 46 69 6c | 65 29 20 75 73 69 6e 67 |ce (aFil|e) using|
|000011e0| 20 52 61 77 20 44 61 74 | 61 20 46 6f 72 6b 0d 09 | Raw Dat|a Fork..|
|000011f0| 09 09 09 65 6e 64 20 69 | 66 0d 09 09 09 6f 6e 20 |...end i|f....on |
|00001200| 65 72 72 6f 72 20 6d 73 | 67 20 6e 75 6d 62 65 72 |error ms|g number|
|00001210| 20 6e 75 6d 20 66 72 6f | 6d 20 6f 62 6a 20 70 61 | num fro|m obj pa|
|00001220| 72 74 69 61 6c 20 72 65 | 73 75 6c 74 20 70 72 0d |rtial re|sult pr.|
|00001230| 09 09 09 09 74 63 70 20 | 63 6c 6f 73 65 20 73 74 |....tcp |close st|
|00001240| 72 65 61 6d 20 64 61 74 | 61 5f 73 74 72 65 61 6d |ream dat|a_stream|
|00001250| 0d 09 09 09 09 65 72 72 | 6f 72 20 6d 73 67 20 6e |.....err|or msg n|
|00001260| 75 6d 62 65 72 20 6e 75 | 6d 20 66 72 6f 6d 20 64 |umber nu|m from d|
|00001270| 61 74 61 5f 73 74 72 65 | 61 6d 0d 09 09 09 65 6e |ata_stre|am....en|
|00001280| 64 20 74 72 79 0d 09 09 | 09 74 63 70 20 63 6c 6f |d try...|.tcp clo|
|00001290| 73 65 20 73 74 72 65 61 | 6d 20 64 61 74 61 5f 73 |se strea|m data_s|
|000012a0| 74 72 65 61 6d 0d 09 09 | 09 0d 09 09 09 72 65 61 |tream...|.....rea|
|000012b0| 64 72 65 73 70 6f 6e 73 | 65 28 73 73 73 29 0d 09 |drespons|e(sss)..|
|000012c0| 09 65 6e 64 20 72 65 70 | 65 61 74 0d 09 09 0d 09 |.end rep|eat.....|
|000012d0| 09 74 63 70 20 77 72 69 | 74 65 20 73 74 72 65 61 |.tcp wri|te strea|
|000012e0| 6d 20 73 73 73 20 64 61 | 74 61 20 22 51 55 49 54 |m sss da|ta "QUIT|
|000012f0| 22 20 26 20 72 65 74 75 | 72 6e 20 75 73 69 6e 67 |" & retu|rn using|
|00001300| 20 49 53 4f 38 38 35 39 | 31 0d 09 09 72 65 61 64 | ISO8859|1...read|
|00001310| 72 65 73 70 6f 6e 73 65 | 28 73 73 73 29 0d 09 09 |response|(sss)...|
|00001320| 0d 09 09 74 63 70 20 63 | 6c 6f 73 65 20 73 74 72 |...tcp c|lose str|
|00001330| 65 61 6d 20 73 73 73 0d | 09 09 72 65 74 75 72 6e |eam sss.|..return|
|00001340| 0d 09 6f 6e 20 65 72 72 | 6f 72 20 6d 73 67 20 6e |..on err|or msg n|
|00001350| 75 6d 62 65 72 20 6e 75 | 6d 20 66 72 6f 6d 20 6f |umber nu|m from o|
|00001360| 62 6a 20 70 61 72 74 69 | 61 6c 20 72 65 73 75 6c |bj parti|al resul|
|00001370| 74 20 70 72 0d 09 09 74 | 72 79 0d 09 09 09 74 63 |t pr...t|ry....tc|
|00001380| 70 20 77 72 69 74 65 20 | 73 74 72 65 61 6d 20 73 |p write |stream s|
|00001390| 73 73 20 64 61 74 61 20 | 22 51 55 49 54 22 20 26 |ss data |"QUIT" &|
|000013a0| 20 72 65 74 75 72 6e 20 | 75 73 69 6e 67 20 49 53 | return |using IS|
|000013b0| 4f 38 38 35 39 31 0d 09 | 09 09 72 65 61 64 72 65 |O88591..|..readre|
|000013c0| 73 70 6f 6e 73 65 28 73 | 73 73 29 0d 09 09 6f 6e |sponse(s|ss)...on|
|000013d0| 20 65 72 72 6f 72 0d 09 | 09 65 6e 64 20 74 72 79 | error..|.end try|
|000013e0| 0d 09 09 0d 09 09 74 63 | 70 20 63 6c 6f 73 65 20 |......tc|p close |
|000013f0| 73 74 72 65 61 6d 20 73 | 73 73 0d 09 09 65 72 72 |stream s|ss...err|
|00001400| 6f 72 20 6d 73 67 20 6e | 75 6d 62 65 72 20 6e 75 |or msg n|umber nu|
|00001410| 6d 20 66 72 6f 6d 20 6f | 62 6a 20 70 61 72 74 69 |m from o|bj parti|
|00001420| 61 6c 20 72 65 73 75 6c | 74 20 70 72 0d 09 65 6e |al resul|t pr..en|
|00001430| 64 20 74 72 79 0d 65 6e | 64 20 6f 70 65 6e 0d 0d |d try.en|d open..|
|00001440| 6f 6e 20 72 65 61 64 72 | 65 73 70 6f 6e 73 65 28 |on readr|esponse(|
|00001450| 73 73 74 72 65 61 6d 29 | 0d 09 73 65 74 20 63 6f |sstream)|..set co|
|00001460| 6e 74 69 6e 75 65 63 68 | 61 72 20 74 6f 20 22 2d |ntinuech|ar to "-|
|00001470| 22 0d 09 73 65 74 20 77 | 68 6f 6c 65 6d 65 73 73 |"..set w|holemess|
|00001480| 61 67 65 20 74 6f 20 22 | 22 0d 09 72 65 70 65 61 |age to "|"..repea|
|00001490| 74 20 75 6e 74 69 6c 20 | 63 6f 6e 74 69 6e 75 65 |t until |continue|
|000014a0| 63 68 61 72 20 3d 20 22 | 20 22 0d 09 09 72 65 70 |char = "| "...rep|
|000014b0| 65 61 74 20 75 6e 74 69 | 6c 20 28 74 63 70 20 61 |eat unti|l (tcp a|
|000014c0| 68 65 61 64 20 63 68 61 | 72 61 63 74 65 72 73 20 |head cha|racters |
|000014d0| 4c 46 20 73 74 72 65 61 | 6d 20 73 73 74 72 65 61 |LF strea|m sstrea|
|000014e0| 6d 29 0d 09 09 65 6e 64 | 20 72 65 70 65 61 74 0d |m)...end| repeat.|
|000014f0| 09 09 73 65 74 20 72 65 | 61 64 6c 69 6e 65 20 74 |..set re|adline t|
|00001500| 6f 20 28 74 63 70 20 72 | 65 61 64 20 73 74 72 65 |o (tcp r|ead stre|
|00001510| 61 6d 20 73 73 74 72 65 | 61 6d 20 75 6e 74 69 6c |am sstre|am until|
|00001520| 20 63 68 61 72 61 63 74 | 65 72 73 20 4c 46 20 75 | charact|ers LF u|
|00001530| 73 69 6e 67 20 49 53 4f | 38 38 35 39 31 29 0d 09 |sing ISO|88591)..|
|00001540| 09 73 65 74 20 73 63 61 | 6e 20 74 6f 20 28 73 63 |.set sca|n to (sc|
|00001550| 61 6e 6c 69 6e 65 28 72 | 65 61 64 6c 69 6e 65 29 |anline(r|eadline)|
|00001560| 29 0d 09 09 73 65 74 20 | 63 6f 6e 74 69 6e 75 65 |)...set |continue|
|00001570| 63 68 61 72 20 74 6f 20 | 69 74 65 6d 20 32 20 6f |char to |item 2 o|
|00001580| 66 20 73 63 61 6e 0d 09 | 09 73 65 74 20 77 68 6f |f scan..|.set who|
|00001590| 6c 65 6d 65 73 73 61 67 | 65 20 74 6f 20 77 68 6f |lemessag|e to who|
|000015a0| 6c 65 6d 65 73 73 61 67 | 65 20 26 20 22 20 22 20 |lemessag|e & " " |
|000015b0| 26 20 69 74 65 6d 20 33 | 20 6f 66 20 73 63 61 6e |& item 3| of scan|
|000015c0| 0d 09 65 6e 64 20 72 65 | 70 65 61 74 0d 09 73 65 |..end re|peat..se|
|000015d0| 74 20 65 72 72 6f 72 43 | 6f 64 65 20 74 6f 20 69 |t errorC|ode to i|
|000015e0| 74 65 6d 20 31 20 6f 66 | 20 73 63 61 6e 20 61 73 |tem 1 of| scan as|
|000015f0| 20 69 6e 74 65 67 65 72 | 0d 09 69 66 20 28 65 72 | integer|..if (er|
|00001600| 72 6f 72 43 6f 64 65 20 | b3 20 34 30 30 29 20 74 |rorCode |. 400) t|
|00001610| 68 65 6e 0d 09 09 64 69 | 73 70 6c 61 79 20 64 69 |hen...di|splay di|
|00001620| 61 6c 6f 67 20 22 45 72 | 72 6f 72 3a 20 22 20 26 |alog "Er|ror: " &|
|00001630| 20 77 68 6f 6c 65 6d 65 | 73 73 61 67 65 0d 09 09 | wholeme|ssage...|
|00001640| 65 72 72 6f 72 20 77 68 | 6f 6c 65 6d 65 73 73 61 |error wh|olemessa|
|00001650| 67 65 20 6e 75 6d 62 65 | 72 20 65 72 72 6f 72 43 |ge numbe|r errorC|
|00001660| 6f 64 65 0d 09 65 6e 64 | 20 69 66 0d 65 6e 64 20 |ode..end| if.end |
|00001670| 72 65 61 64 72 65 73 70 | 6f 6e 73 65 0d 0d 2d 2d |readresp|onse..--|
|00001680| 20 4d 61 74 63 68 65 73 | 20 6c 69 6e 65 73 20 6c | Matches| lines l|
|00001690| 69 6b 65 3a 0d 2d 2d 20 | 32 35 30 20 74 65 73 74 |ike:.-- |250 test|
|000016a0| 2e 2e 2e 20 53 65 6e 64 | 65 72 20 6f 6b 0d 0d 6f |... Send|er ok..o|
|000016b0| 6e 20 73 63 61 6e 6c 69 | 6e 65 28 6c 6c 69 6e 65 |n scanli|ne(lline|
|000016c0| 29 0d 09 72 65 74 75 72 | 6e 20 7b 63 68 61 72 61 |)..retur|n {chara|
|000016d0| 63 74 65 72 73 20 31 20 | 74 68 72 6f 75 67 68 20 |cters 1 |through |
|000016e0| 33 20 6f 66 20 6c 6c 69 | 6e 65 20 61 73 20 73 74 |3 of lli|ne as st|
|000016f0| 72 69 6e 67 2c 20 63 68 | 61 72 61 63 74 65 72 20 |ring, ch|aracter |
|00001700| 34 20 6f 66 20 6c 6c 69 | 6e 65 20 61 73 20 73 74 |4 of lli|ne as st|
|00001710| 72 69 6e 67 2c 20 c2 0d | 09 09 63 68 61 72 61 63 |ring, ..|..charac|
|00001720| 74 65 72 73 20 35 20 74 | 68 72 6f 75 67 68 20 65 |ters 5 t|hrough e|
|00001730| 6e 64 20 6f 66 20 6c 6c | 69 6e 65 20 61 73 20 73 |nd of ll|ine as s|
|00001740| 74 72 69 6e 67 7d 0d 65 | 6e 64 20 73 63 61 6e 6c |tring}.e|nd scanl|
|00001750| 69 6e 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ine.....|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 01 00 00 00 02 ff | 00 00 01 ff 00 00 00 a2 |........|........|
|00001790| 00 00 00 02 05 54 72 61 | 73 68 01 00 00 00 00 2d |.....Tra|sh.....-|
|000017a0| 00 00 63 2a aa 39 0e ec | aa a1 d1 45 00 00 00 00 |..c*.9..|...E....|
|000017b0| 1c 44 72 61 67 20 61 6e | 64 20 44 72 6f 70 20 46 |.Drag an|d Drop F|
|000017c0| 54 50 20 31 2e 31 20 28 | 74 65 78 74 29 46 02 00 |TP 1.1 (|text)F..|
|000017d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 aa e5 26 cc 00 00 | 00 00 00 00 03 a1 30 35 |....&...|......05|
|00001800| 21 00 00 b4 00 00 00 00 | 00 00 60 d4 00 00 00 00 |!.......|..`.....|
|00001810| 00 00 00 00 00 00 00 00 | 00 06 48 ef 00 06 4a 00 |........|..H...J.|
|00001820| a7 24 ac 00 a9 72 f0 e3 | 00 00 00 00 00 00 00 00 |.$...r..|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 06 73 00 73 00 00 |........|...s.s..|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 79 70 65 20 4f 6e |........|..ype On|
|00001860| 20 43 61 6c 6c 02 02 00 | 00 00 63 64 65 76 26 56 | Call...|..cdev&V|
|00001870| 30 35 21 00 00 b4 00 00 | 00 00 00 00 60 d4 00 00 |05!.....|....`...|
|00001880| 00 00 00 0a 58 e0 00 07 | d0 00 00 03 20 00 00 00 |....X...|.... ...|
|00001890| 00 0a 58 e0 00 07 d0 00 | 00 03 20 00 00 00 00 1a |..X.....|.. .....|
|000018a0| 40 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |@.......|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 78 00 00 |........|.....x..|
|000018c0| 00 00 00 08 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 ff ff ff ff 00 00 | 00 34 00 00 00 24 00 00 |........|.4...$..|
|000018e0| 00 00 20 6f 00 04 a0 5f | 20 6f 00 04 a1 28 a0 23 |.. o..._| o...(.#|
|000018f0| 4e 75 43 54 6f 20 72 75 | 6e 20 74 68 69 73 20 73 |NuCTo ru|n this s|
|00001900| 63 72 69 70 74 20 61 70 | 70 6c 69 63 61 74 69 6f |cript ap|plicatio|
|00001910| 6e 2c 20 79 6f 75 20 6d | 75 73 74 20 66 69 72 73 |n, you m|ust firs|
|00001920| 74 20 69 6e 73 74 61 6c | 6c 20 41 70 70 6c 65 53 |t instal|l AppleS|
|00001930| 63 72 69 70 74 2e 00 00 | 00 ff 44 72 61 67 20 61 |cript...|..Drag a|
|00001940| 6e 64 20 44 72 6f 70 20 | 46 54 50 0d 76 65 72 73 |nd Drop |FTP.vers|
|00001950| 69 6f 6e 20 31 2e 31 0d | 43 6f 70 79 72 69 67 68 |ion 1.1.|Copyrigh|
|00001960| 74 20 a9 20 31 39 39 34 | 20 62 79 20 41 74 75 6c |t . 1994| by Atul|
|00001970| 20 42 75 74 74 65 2e 20 | 41 6c 6c 20 52 69 67 68 | Butte. |All Righ|
|00001980| 74 73 20 52 65 73 65 72 | 76 65 64 2e 0d 0d 52 75 |ts Reser|ved...Ru|
|00001990| 6e 20 6d 65 20 77 69 74 | 68 6f 75 74 20 61 6e 79 |n me wit|hout any|
|000019a0| 20 64 6f 63 75 6d 65 6e | 74 73 20 74 6f 20 66 69 | documen|ts to fi|
|000019b0| 72 73 74 20 73 65 74 20 | 64 65 73 74 69 6e 61 74 |rst set |destinat|
|000019c0| 69 6f 6e 20 68 6f 73 74 | 20 61 6e 64 20 75 73 65 |ion host| and use|
|000019d0| 72 2d 69 64 2e 20 54 68 | 65 6e 20 64 72 6f 70 20 |r-id. Th|en drop |
|000019e0| 66 69 6c 65 73 20 6f 6e | 20 6d 65 20 61 6e 64 20 |files on| me and |
|000019f0| 74 68 65 79 20 77 69 6c | 6c 20 62 65 20 73 65 6e |they wil|l be sen|
|00001a00| 74 20 74 6f 20 74 68 61 | 74 20 68 6f 73 74 20 76 |t to tha|t host v|
|00001a10| 69 61 20 46 54 50 2e 0d | 0d 41 74 75 6c 20 42 75 |ia FTP..|.Atul Bu|
|00001a20| 74 74 65 0d 61 74 75 6c | 5f 62 75 74 74 65 40 62 |tte.atul|_butte@b|
|00001a30| 72 6f 77 6e 2e 65 64 75 | 0d 00 00 00 2a 00 02 00 |rown.edu|....*...|
|00001a40| 00 00 00 00 0c 00 0a 00 | 02 01 00 00 09 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 11 00 | 0c 00 0a 00 02 00 00 00 |........|........|
|00001a60| 09 00 00 00 00 00 00 00 | 00 00 14 00 4b 00 0a 01 |........|....K...|
|00001a70| d0 02 00 00 28 00 02 01 | dd 02 5d 00 00 00 00 00 |....(...|..].....|
|00001a80| 00 01 00 00 00 02 ff 00 | 00 01 ff 00 00 00 a2 00 |........|........|
|00001a90| 4d c5 94 12 00 00 00 00 | 1c 00 a2 00 05 53 49 5a |M.......|.....SIZ|
|00001aa0| 45 00 01 00 32 73 63 73 | 7a 00 00 00 4a 4e 4f 54 |E...2scs|z...JNOT|
|00001ab0| 49 00 00 00 56 54 45 58 | 54 00 00 00 62 73 74 79 |I...VTEX|T...bsty|
|00001ac0| 6c 00 00 00 6e 57 50 6f | 73 00 00 00 7a 00 00 ff |l...nWPo|s...z...|
|00001ad0| ff 00 00 00 00 00 50 32 | 24 00 01 ff ff 00 00 00 |......P2|$.......|
|00001ae0| 0e 00 50 34 9c 00 00 ff | ff 00 00 00 1c 00 50 35 |..P4....|......P5|
|00001af0| 18 00 80 ff ff 50 00 00 | 3a 00 4d d0 2c 04 68 ff |.....P..|:.M.,.h.|
|00001b00| ff 00 00 00 b6 00 50 32 | c4 04 68 ff ff 00 00 01 |......P2|..h.....|
|00001b10| b9 00 50 34 f4 00 80 ff | ff 00 00 01 e7 00 50 32 |..P4....|......P2|
|00001b20| a8 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+