home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-07-01 | 12.6 KB | [TEXT/R*ch] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Jul 1 00:00:00 1994, modified Fri Jul 1 00:00:00 1994, creator BBEdit, type ASCII, 12259 bytes "DSUserProcs.c" , at 0x3063 476 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 44 53 55 73 65 72 | 50 72 6f 63 73 2e 63 00 |..DSUser|Procs.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 2f e3 00 | 00 01 dc aa 39 45 40 aa |...../..|....9E@.|
|00000060| 39 45 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9E@.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5d 95 00 00 |........|....]...|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|000000d0| 2a 2a 0d 2a 2a 20 20 50 | 72 6f 6a 65 63 74 20 4e |**.** P|roject N|
|000000e0| 61 6d 65 3a 09 44 72 6f | 70 53 68 65 6c 6c 0d 2a |ame:.Dro|pShell.*|
|000000f0| 2a 20 20 20 20 20 46 69 | 6c 65 20 4e 61 6d 65 3a |* Fi|le Name:|
|00000100| 09 44 53 55 73 65 72 50 | 72 6f 63 73 2e 63 0d 2a |.DSUserP|rocs.c.*|
|00000110| 2a 0d 2a 2a 20 20 20 44 | 65 73 63 72 69 70 74 69 |*.** D|escripti|
|00000120| 6f 6e 3a 09 53 70 65 63 | 69 66 69 63 20 41 70 70 |on:.Spec|ific App|
|00000130| 6c 65 45 76 65 6e 74 20 | 68 61 6e 64 6c 65 72 73 |leEvent |handlers|
|00000140| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 44 72 6f | used by| the Dro|
|00000150| 70 42 6f 78 0d 2a 2a 0d | 2a 2a 2a 2a 2a 2a 2a 2a |pBox.**.|********|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 0d | 2a 2a 20 20 20 20 20 20 |*******.|** |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001c0| 20 41 20 55 20 54 20 48 | 20 4f 20 52 20 20 20 49 | A U T H| O R I|
|000001d0| 20 44 20 45 20 4e 20 54 | 20 49 20 54 20 59 0d 2a | D E N T| I T Y.*|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 2a |********|******.*|
|00000230| 2a 0d 2a 2a 09 49 6e 69 | 74 69 61 6c 73 09 4e 61 |*.**.Ini|tials.Na|
|00000240| 6d 65 0d 2a 2a 09 2d 2d | 2d 2d 2d 2d 2d 2d 09 2d |me.**.--|------.-|
|00000250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000260| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 2a |--------|------.*|
|00000280| 2a 09 4c 44 52 09 09 09 | 4c 65 6f 6e 61 72 64 20 |*.LDR...|Leonard |
|00000290| 52 6f 73 65 6e 74 68 6f | 6c 0d 2a 2a 09 4d 54 43 |Rosentho|l.**.MTC|
|000002a0| 09 09 09 4d 61 72 73 68 | 61 6c 6c 20 43 6c 6f 77 |...Marsh|all Clow|
|000002b0| 0d 2a 2a 09 53 43 53 09 | 09 09 53 74 65 70 68 61 |.**.SCS.|..Stepha|
|000002c0| 6e 20 53 6f 6d 6f 67 79 | 69 0d 2a 2a 0d 2a 2a 2a |n Somogy|i.**.***|
|000002d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000300| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 2a 2a 20 |********|****.** |
|00000320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000330| 20 20 20 20 20 52 20 45 | 20 56 20 49 20 53 20 49 | R E| V I S I|
|00000340| 20 4f 20 4e 20 20 20 48 | 20 49 20 53 20 54 20 4f | O N H| I S T O|
|00000350| 20 52 20 59 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | R Y.***|********|
|00000360| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003a0| 2a 2a 2a 2a 0d 2a 2a 0d | 2a 2a 09 20 20 44 61 74 |****.**.|**. Dat|
|000003b0| 65 09 09 54 69 6d 65 09 | 41 75 74 68 6f 72 09 44 |e..Time.|Author.D|
|000003c0| 65 73 63 72 69 70 74 69 | 6f 6e 0d 2a 2a 09 2d 2d |escripti|on.**.--|
|000003d0| 2d 2d 2d 2d 2d 2d 09 2d | 2d 2d 2d 2d 09 2d 2d 2d |------.-|----.---|
|000003e0| 2d 2d 2d 09 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |---.----|--------|
|000003f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000400| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000410| 2d 0d 2a 2a 09 30 36 2f | 32 33 2f 39 34 09 09 09 |-.**.06/|23/94...|
|00000420| 4c 44 52 09 09 41 64 64 | 65 64 20 73 75 70 70 6f |LDR..Add|ed suppo|
|00000430| 72 74 20 66 6f 72 20 50 | 72 6f 63 65 73 73 49 74 |rt for P|rocessIt|
|00000440| 65 6d 20 61 6e 64 20 50 | 72 6f 63 65 73 73 46 6f |em and P|rocessFo|
|00000450| 6c 64 65 72 20 68 61 6e | 64 6c 69 6e 67 0d 2a 2a |lder han|dling.**|
|00000460| 09 30 32 2f 32 30 2f 39 | 34 09 09 09 4c 44 52 09 |.02/20/9|4...LDR.|
|00000470| 09 4d 6f 64 69 66 69 65 | 64 20 50 72 65 66 6c 69 |.Modifie|d Prefli|
|00000480| 67 68 74 20 26 20 50 6f | 73 74 66 6c 69 67 68 74 |ght & Po|stflight|
|00000490| 20 74 6f 20 74 61 6b 65 | 20 69 74 65 6d 20 63 6f | to take| item co|
|000004a0| 75 6e 74 0d 2a 2a 09 30 | 31 2f 32 35 2f 39 32 09 |unt.**.0|1/25/92.|
|000004b0| 09 09 4c 44 52 09 09 52 | 65 6d 6f 76 65 64 20 74 |..LDR..R|emoved t|
|000004c0| 68 65 20 75 73 65 20 6f | 66 20 63 6f 6e 73 74 20 |he use o|f const |
|000004d0| 6f 6e 20 74 68 65 20 75 | 73 65 72 44 61 74 61 48 |on the u|serDataH|
|000004e0| 61 6e 64 6c 65 0d 2a 2a | 09 31 32 2f 30 39 2f 39 |andle.**|.12/09/9|
|000004f0| 31 09 09 09 4c 44 52 09 | 09 41 64 64 65 64 20 74 |1...LDR.|.Added t|
|00000500| 68 65 20 6e 65 77 20 53 | 65 6c 65 63 74 46 69 6c |he new S|electFil|
|00000510| 65 20 75 73 65 72 50 72 | 6f 63 0d 2a 2a 09 09 09 |e userPr|oc.**...|
|00000520| 09 09 09 09 09 41 64 64 | 65 64 20 74 68 65 20 6e |.....Add|ed the n|
|00000530| 65 77 20 49 6e 73 74 61 | 6c 6c 20 26 20 44 69 73 |ew Insta|ll & Dis|
|00000540| 70 6f 73 65 55 73 65 72 | 47 6c 6f 62 61 6c 73 20 |poseUser|Globals |
|00000550| 70 72 6f 63 73 0d 2a 2a | 09 09 09 09 09 09 09 09 |procs.**|........|
|00000560| 4d 6f 64 69 66 69 65 64 | 20 50 6f 73 74 46 6c 69 |Modified| PostFli|
|00000570| 67 68 74 20 74 6f 20 6f | 6e 6c 79 20 61 75 74 6f |ght to o|nly auto|
|00000580| 71 75 69 74 20 6f 6e 20 | 6f 64 6f 63 2c 20 6e 6f |quit on |odoc, no|
|00000590| 74 20 70 64 6f 63 0d 2a | 2a 09 31 31 2f 32 34 2f |t pdoc.*|*.11/24/|
|000005a0| 39 31 09 09 09 4c 44 52 | 09 09 41 64 64 65 64 20 |91...LDR|..Added |
|000005b0| 74 68 65 20 75 73 65 72 | 50 72 6f 63 73 20 66 6f |the user|Procs fo|
|000005c0| 72 20 70 64 6f 63 20 68 | 61 6e 64 6c 65 72 0d 2a |r pdoc h|andler.*|
|000005d0| 2a 09 09 09 09 09 09 09 | 09 43 6c 65 61 6e 65 64 |*.......|.Cleaned|
|000005e0| 20 75 70 20 74 68 65 20 | 70 6c 61 63 65 6d 65 6e | up the |placemen|
|000005f0| 74 20 6f 66 20 62 72 61 | 63 65 73 0d 2a 2a 09 09 |t of bra|ces.**..|
|00000600| 09 09 09 09 09 09 41 64 | 64 65 64 20 74 68 65 20 |......Ad|ded the |
|00000610| 70 61 73 73 69 6e 67 20 | 6f 66 20 61 20 75 73 65 |passing |of a use|
|00000620| 72 44 61 74 61 48 61 6e | 64 6c 65 0d 2a 2a 09 31 |rDataHan|dle.**.1|
|00000630| 30 2f 32 39 2f 39 31 09 | 09 09 53 43 53 09 09 43 |0/29/91.|..SCS..C|
|00000640| 68 61 6e 67 65 73 20 66 | 6f 72 20 54 48 49 4e 4b |hanges f|or THINK|
|00000650| 20 43 20 35 0d 2a 2a 09 | 31 30 2f 32 38 2f 39 31 | C 5.**.|10/28/91|
|00000660| 09 09 09 4c 44 52 09 09 | 4f 66 66 69 63 69 61 6c |...LDR..|Official|
|00000670| 6c 79 20 72 65 6e 61 6d | 65 64 20 44 72 6f 70 53 |ly renam|ed DropS|
|00000680| 68 65 6c 6c 20 28 66 72 | 6f 6d 20 51 75 69 63 6b |hell (fr|om Quick|
|00000690| 53 68 65 6c 6c 29 0d 2a | 2a 09 09 09 09 09 09 09 |Shell).*|*.......|
|000006a0| 09 41 64 64 65 64 20 61 | 20 62 75 6e 63 68 20 6f |.Added a| bunch o|
|000006b0| 66 20 63 6f 6d 6d 65 6e | 74 73 20 66 6f 72 20 63 |f commen|ts for c|
|000006c0| 6c 61 72 69 66 69 63 61 | 74 69 6f 6e 0d 2a 2a 09 |larifica|tion.**.|
|000006d0| 31 30 2f 30 36 2f 39 31 | 09 30 30 3a 30 32 09 4d |10/06/91|.00:02.M|
|000006e0| 54 43 09 09 43 6f 6e 76 | 65 72 74 65 64 20 74 6f |TC..Conv|erted to|
|000006f0| 20 4d 50 57 20 43 0d 2a | 2a 09 30 34 2f 30 39 2f | MPW C.*|*.04/09/|
|00000700| 39 31 09 30 30 3a 30 32 | 09 4c 44 52 09 09 41 64 |91.00:02|.LDR..Ad|
|00000710| 64 65 64 20 74 6f 20 50 | 72 6f 6a 65 63 74 6f 72 |ded to P|rojector|
|00000720| 0d 2a 2a 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.**.****|********|
|00000730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000770| 2a 2a 2f 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 53 |**/..#in|clude <S|
|00000780| 74 61 6e 64 61 72 64 46 | 69 6c 65 2e 68 3e 0d 0d |tandardF|ile.h>..|
|00000790| 23 69 6e 63 6c 75 64 65 | 20 22 44 53 47 6c 6f 62 |#include| "DSGlob|
|000007a0| 61 6c 73 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |als.h".#|include |
|000007b0| 22 44 53 55 73 65 72 50 | 72 6f 63 73 2e 68 22 0d |"DSUserP|rocs.h".|
|000007c0| 0d 2f 2f 20 53 74 61 74 | 69 63 20 50 72 6f 74 6f |.// Stat|ic Proto|
|000007d0| 74 79 70 65 73 0d 73 74 | 61 74 69 63 20 4f 53 45 |types.st|atic OSE|
|000007e0| 72 72 20 50 72 6f 63 65 | 73 73 49 74 65 6d 28 46 |rr Proce|ssItem(F|
|000007f0| 53 53 70 65 63 50 74 72 | 20 6d 79 46 53 53 50 74 |SSpecPtr| myFSSPt|
|00000800| 72 29 3b 0d 73 74 61 74 | 69 63 20 4f 53 45 72 72 |r);.stat|ic OSErr|
|00000810| 20 50 72 6f 63 65 73 73 | 46 6f 6c 64 65 72 28 46 | Process|Folder(F|
|00000820| 53 53 70 65 63 50 74 72 | 20 6d 79 46 53 53 50 74 |SSpecPtr| myFSSPt|
|00000830| 72 29 3b 0d 0d 0d 2f 2a | 0d 09 55 6e 63 6f 6d 6d |r);.../*|..Uncomm|
|00000840| 65 6e 74 20 74 68 69 73 | 20 6c 69 6e 65 20 69 66 |ent this| line if|
|00000850| 20 79 6f 75 20 77 61 6e | 74 20 65 61 63 68 20 69 | you wan|t each i|
|00000860| 74 65 6d 20 6f 66 20 61 | 20 64 72 6f 70 70 65 64 |tem of a| dropped|
|00000870| 20 66 6f 6c 64 65 72 20 | 70 72 6f 63 65 73 73 65 | folder |processe|
|00000880| 64 0d 09 61 73 20 61 6e | 20 69 6e 64 69 76 69 64 |d..as an| individ|
|00000890| 75 61 6c 20 69 74 65 6d | 0d 2a 2f 0d 2f 2f 20 23 |ual item|.*/.// #|
|000008a0| 64 65 66 69 6e 65 20 71 | 57 61 6c 6b 46 6f 6c 64 |define q|WalkFold|
|000008b0| 65 72 73 0d 0d 0d 2f 2a | 0d 09 54 68 69 73 20 72 |ers.../*|..This r|
|000008c0| 6f 75 74 69 6e 65 20 69 | 73 20 63 61 6c 6c 65 64 |outine i|s called|
|000008d0| 20 64 75 72 69 6e 67 20 | 69 6e 69 74 20 74 69 6d | during |init tim|
|000008e0| 65 2e 0d 09 0d 09 49 74 | 20 61 6c 6c 6f 77 73 20 |e.....It| allows |
|000008f0| 79 6f 75 20 74 6f 20 69 | 6e 73 74 61 6c 6c 20 6d |you to i|nstall m|
|00000900| 6f 72 65 20 41 45 56 54 | 20 48 61 6e 64 6c 65 72 |ore AEVT| Handler|
|00000910| 73 20 62 65 79 6f 6e 64 | 20 74 68 65 20 73 74 61 |s beyond| the sta|
|00000920| 6e 64 61 72 64 20 66 6f | 75 72 0d 2a 2f 0d 23 70 |ndard fo|ur.*/.#p|
|00000930| 72 61 67 6d 61 20 73 65 | 67 6d 65 6e 74 20 4d 61 |ragma se|gment Ma|
|00000940| 69 6e 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 49 |in.pasca|l void I|
|00000950| 6e 73 74 61 6c 6c 4f 74 | 68 65 72 45 76 65 6e 74 |nstallOt|herEvent|
|00000960| 73 20 28 76 6f 69 64 29 | 20 7b 0d 7d 0d 0d 0d 2f |s (void)| {.}.../|
|00000970| 2a 09 0d 09 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |*...This| routine|
|00000980| 20 69 73 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 | is call|ed when |
|00000990| 61 6e 20 4f 41 50 50 20 | 65 76 65 6e 74 20 69 73 |an OAPP |event is|
|000009a0| 20 72 65 63 65 69 76 65 | 64 2e 0d 09 0d 09 43 75 | receive|d.....Cu|
|000009b0| 72 72 65 6e 74 6c 79 2c | 20 61 6c 6c 20 69 74 20 |rrently,| all it |
|000009c0| 64 6f 65 73 20 69 73 20 | 73 65 74 20 74 68 65 20 |does is |set the |
|000009d0| 67 4f 41 70 70 65 64 20 | 66 6c 61 67 2c 20 73 6f |gOApped |flag, so|
|000009e0| 20 79 6f 75 20 6b 6e 6f | 77 20 74 68 61 74 0d 09 | you kno|w that..|
|000009f0| 79 6f 75 20 77 65 72 65 | 20 63 61 6c 6c 65 64 20 |you were| called |
|00000a00| 69 6e 69 74 61 6c 6c 79 | 20 77 69 74 68 20 6e 6f |initally| with no|
|00000a10| 20 64 6f 63 73 2c 20 61 | 6e 64 20 74 68 65 72 65 | docs, a|nd there|
|00000a20| 66 6f 72 65 20 79 6f 75 | 20 73 68 6f 75 6c 64 6e |fore you| shouldn|
|00000a30| 27 74 20 0d 09 71 75 69 | 74 20 77 68 65 6e 20 64 |'t ..qui|t when d|
|00000a40| 6f 6e 65 20 70 72 6f 63 | 65 73 73 69 6e 67 20 61 |one proc|essing a|
|00000a50| 6e 79 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6f 64 6f |ny follo|wing odo|
|00000a60| 63 73 2e 0d 2a 2f 0d 23 | 70 72 61 67 6d 61 20 73 |cs..*/.#|pragma s|
|00000a70| 65 67 6d 65 6e 74 20 4d | 61 69 6e 0d 70 61 73 63 |egment M|ain.pasc|
|00000a80| 61 6c 20 76 6f 69 64 20 | 4f 70 65 6e 41 70 70 20 |al void |OpenApp |
|00000a90| 28 76 6f 69 64 29 20 7b | 0d 09 67 4f 41 70 70 65 |(void) {|..gOAppe|
|00000aa0| 64 20 3d 20 74 72 75 65 | 3b 0d 7d 0d 0d 0d 2f 2a |d = true|;.}.../*|
|00000ab0| 09 0d 09 54 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |...This |routine |
|00000ac0| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 20 61 |is calle|d when a|
|00000ad0| 6e 20 51 55 49 54 20 65 | 76 65 6e 74 20 69 73 20 |n QUIT e|vent is |
|00000ae0| 72 65 63 65 69 76 65 64 | 2e 0d 09 0d 09 57 65 20 |received|.....We |
|00000af0| 73 69 6d 70 6c 79 20 73 | 65 74 20 74 68 65 20 67 |simply s|et the g|
|00000b00| 6c 6f 62 61 6c 20 64 6f | 6e 65 20 66 6c 61 67 20 |lobal do|ne flag |
|00000b10| 73 6f 20 74 68 61 74 20 | 74 68 65 20 6d 61 69 6e |so that |the main|
|00000b20| 20 65 76 65 6e 74 20 6c | 6f 6f 70 20 63 61 6e 0d | event l|oop can.|
|00000b30| 09 67 72 61 63 65 66 75 | 6c 6c 79 20 65 78 69 74 |.gracefu|lly exit|
|00000b40| 2e 20 20 57 65 20 44 4f | 20 4e 4f 54 20 63 61 6c |. We DO| NOT cal|
|00000b50| 6c 20 45 78 69 74 54 6f | 53 68 65 6c 6c 20 66 6f |l ExitTo|Shell fo|
|00000b60| 72 20 74 77 6f 20 72 65 | 61 73 6f 6e 73 3a 0d 09 |r two re|asons:..|
|00000b70| 31 29 20 49 74 20 69 73 | 20 61 20 70 72 65 74 74 |1) It is| a prett|
|00000b80| 79 20 75 67 6c 79 20 74 | 68 69 6e 67 20 74 6f 20 |y ugly t|hing to |
|00000b90| 64 6f 2c 20 62 75 74 20 | 6d 6f 72 65 20 69 6d 70 |do, but |more imp|
|00000ba0| 6f 72 74 61 6e 74 6c 79 | 0d 09 32 29 20 54 68 65 |ortantly|..2) The|
|00000bb0| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 20 6d 61 6e | Apple e|vent man|
|00000bc0| 61 67 65 72 20 77 69 6c | 6c 20 67 65 74 20 52 45 |ager wil|l get RE|
|00000bd0| 41 4c 20 75 70 73 65 74 | 21 0d 2a 2f 0d 23 70 72 |AL upset|!.*/.#pr|
|00000be0| 61 67 6d 61 20 73 65 67 | 6d 65 6e 74 20 4d 61 69 |agma seg|ment Mai|
|00000bf0| 6e 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 51 75 |n.pascal| void Qu|
|00000c00| 69 74 41 70 70 20 28 76 | 6f 69 64 29 20 7b 0d 09 |itApp (v|oid) {..|
|00000c10| 67 44 6f 6e 65 20 3d 20 | 74 72 75 65 3b 09 2f 2a |gDone = |true;./*|
|00000c20| 09 41 6c 6c 20 44 6f 6e | 65 21 20 2a 2f 0d 7d 0d |.All Don|e! */.}.|
|00000c30| 0d 0d 2f 2a 09 0d 09 54 | 68 69 73 20 72 6f 75 74 |../*...T|his rout|
|00000c40| 69 6e 65 20 69 73 20 74 | 68 65 20 66 69 72 73 74 |ine is t|he first|
|00000c50| 20 6f 6e 65 20 63 61 6c | 6c 65 64 20 77 68 65 6e | one cal|led when|
|00000c60| 20 61 6e 20 4f 44 4f 43 | 20 6f 72 20 50 44 4f 43 | an ODOC| or PDOC|
|00000c70| 20 65 76 65 6e 74 20 69 | 73 20 72 65 63 65 69 76 | event i|s receiv|
|00000c80| 65 64 2e 0d 09 0d 09 49 | 6e 20 74 68 69 73 20 72 |ed.....I|n this r|
|00000c90| 6f 75 74 69 6e 65 20 79 | 6f 75 20 77 6f 75 6c 64 |outine y|ou would|
|00000ca0| 20 70 6c 61 63 65 20 63 | 6f 64 65 20 75 73 65 64 | place c|ode used|
|00000cb0| 20 74 6f 20 73 65 74 75 | 70 20 73 74 72 75 63 74 | to setu|p struct|
|00000cc0| 75 72 65 73 2c 20 65 74 | 63 2e 20 0d 09 77 68 69 |ures, et|c. ..whi|
|00000cd0| 63 68 20 77 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |ch would| be used|
|00000ce0| 20 69 6e 20 61 20 27 66 | 6f 72 20 61 6c 6c 20 64 | in a 'f|or all d|
|00000cf0| 6f 63 73 27 20 73 69 74 | 75 61 74 69 6f 6e 20 28 |ocs' sit|uation (|
|00000d00| 6c 69 6b 65 20 22 41 72 | 63 68 69 76 65 20 61 6c |like "Ar|chive al|
|00000d10| 6c 0d 09 64 72 6f 70 70 | 65 64 20 66 69 6c 65 73 |l..dropp|ed files|
|00000d20| 22 29 0d 0d 09 4f 62 76 | 69 6f 75 73 6c 79 2c 20 |")...Obv|iously, |
|00000d30| 74 68 65 20 6f 70 65 6e | 69 6e 67 20 62 6f 6f 6c |the open|ing bool|
|00000d40| 65 61 6e 20 74 65 6c 6c | 73 20 79 6f 75 20 77 68 |ean tell|s you wh|
|00000d50| 65 74 68 65 72 20 79 6f | 75 20 73 68 6f 75 6c 64 |ether yo|u should|
|00000d60| 20 62 65 20 6f 70 65 6e | 69 6e 67 0d 09 6f 72 20 | be open|ing..or |
|00000d70| 70 72 69 6e 74 69 6e 67 | 20 74 68 65 73 65 20 66 |printing| these f|
|00000d80| 69 6c 65 73 20 62 61 73 | 65 64 20 6f 6e 20 74 68 |iles bas|ed on th|
|00000d90| 65 20 74 79 70 65 20 6f | 66 20 65 76 65 6e 74 20 |e type o|f event |
|00000da0| 72 65 63 69 65 76 65 64 | 2e 0d 09 0d 09 4e 45 57 |recieved|.....NEW|
|00000db0| 20 49 4e 20 32 2e 30 21 | 0d 09 54 68 65 20 69 74 | IN 2.0!|..The it|
|00000dc0| 65 6d 43 6f 75 6e 74 20 | 70 61 72 61 6d 65 74 65 |emCount |paramete|
|00000dd0| 72 20 69 73 20 73 69 6d | 70 6c 79 20 74 68 65 20 |r is sim|ply the |
|00000de0| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|00000df0| 74 68 61 74 20 77 65 72 | 65 20 64 72 6f 70 70 65 |that wer|e droppe|
|00000e00| 64 20 6f 6e 0d 09 74 68 | 65 20 61 70 70 6c 69 63 |d on..th|e applic|
|00000e10| 61 74 69 6f 6e 20 61 6e | 64 20 74 68 61 74 20 79 |ation an|d that y|
|00000e20| 6f 75 20 77 69 6c 6c 20 | 62 65 20 70 72 6f 63 65 |ou will |be proce|
|00000e30| 73 73 69 6e 67 2e 20 20 | 54 68 69 73 20 67 69 76 |ssing. |This giv|
|00000e40| 65 73 20 79 6f 75 20 74 | 68 65 20 61 62 69 6c 69 |es you t|he abili|
|00000e50| 74 79 0d 09 74 6f 20 64 | 6f 20 61 20 73 69 6e 67 |ty..to d|o a sing|
|00000e60| 6c 65 20 70 72 65 66 6c | 69 67 68 74 20 66 6f 72 |le prefl|ight for|
|00000e70| 20 6d 65 6d 6f 72 79 20 | 61 6c 6c 6f 63 61 74 69 | memory |allocati|
|00000e80| 6f 6e 20 6e 65 65 64 73 | 2c 20 72 61 74 68 65 72 |on needs|, rather|
|00000e90| 20 74 68 61 6e 20 64 6f | 69 6e 67 20 69 74 0d 09 | than do|ing it..|
|00000ea0| 6f 6e 63 65 20 66 6f 72 | 20 65 61 63 68 20 69 74 |once for| each it|
|00000eb0| 65 6d 20 61 73 20 69 6e | 20 70 72 65 76 69 6f 75 |em as in| previou|
|00000ec0| 73 20 76 65 72 73 69 6f | 6e 73 2e 0d 09 0d 09 75 |s versio|ns.....u|
|00000ed0| 73 65 72 44 61 74 61 48 | 61 6e 64 6c 65 20 69 73 |serDataH|andle is|
|00000ee0| 20 61 20 68 61 6e 64 6c | 65 20 74 68 61 74 20 79 | a handl|e that y|
|00000ef0| 6f 75 20 63 61 6e 20 63 | 72 65 61 74 65 20 26 20 |ou can c|reate & |
|00000f00| 75 73 65 20 74 6f 20 73 | 74 6f 72 65 20 79 6f 75 |use to s|tore you|
|00000f10| 72 20 6f 77 6e 0d 09 64 | 61 74 61 20 73 74 72 75 |r own..d|ata stru|
|00000f20| 63 74 73 2e 20 20 54 68 | 69 73 20 64 61 74 61 48 |cts. Th|is dataH|
|00000f30| 61 6e 64 6c 65 20 77 69 | 6c 6c 20 62 65 20 70 61 |andle wi|ll be pa|
|00000f40| 73 73 65 64 20 61 72 6f | 75 6e 64 20 74 6f 20 74 |ssed aro|und to t|
|00000f50| 68 65 20 6f 74 68 65 72 | 20 0d 09 6f 64 6f 63 2f |he other| ..odoc/|
|00000f60| 70 64 6f 63 20 72 6f 75 | 74 69 6e 65 73 20 73 6f |pdoc rou|tines so|
|00000f70| 20 74 68 61 74 20 79 6f | 75 20 63 61 6e 20 67 65 | that yo|u can ge|
|00000f80| 74 20 61 74 20 79 6f 75 | 72 20 64 61 74 61 20 77 |t at you|r data w|
|00000f90| 69 74 68 6f 75 74 20 75 | 73 69 6e 67 0d 09 67 6c |ithout u|sing..gl|
|00000fa0| 6f 62 61 6c 73 20 2d 20 | 6a 75 73 74 20 6c 69 6b |obals - |just lik|
|00000fb0| 65 20 74 68 65 20 6e 65 | 77 20 53 74 61 6e 64 61 |e the ne|w Standa|
|00000fc0| 72 64 46 69 6c 65 2e 20 | 20 0d 09 0d 09 57 65 20 |rdFile. | ....We |
|00000fd0| 61 6c 73 6f 20 72 65 74 | 75 72 6e 20 61 20 62 6f |also ret|urn a bo|
|00000fe0| 6f 6c 65 61 6e 20 74 6f | 20 74 65 6c 6c 20 74 68 |olean to| tell th|
|00000ff0| 65 20 63 61 6c 6c 65 72 | 20 69 66 20 79 6f 75 20 |e caller| if you |
|00001000| 73 75 70 70 6f 72 74 20 | 74 68 69 73 20 74 79 70 |support |this typ|
|00001010| 65 0d 09 6f 66 20 65 76 | 65 6e 74 2e 20 20 42 79 |e..of ev|ent. By|
|00001020| 20 64 65 66 61 75 6c 74 | 2c 20 6f 75 72 20 64 72 | default|, our dr|
|00001030| 6f 70 62 6f 78 65 73 20 | 64 6f 6e 27 74 20 73 75 |opboxes |don't su|
|00001040| 70 70 6f 72 74 20 74 68 | 65 20 70 64 6f 63 2c 20 |pport th|e pdoc, |
|00001050| 73 6f 20 77 68 65 6e 0d | 09 6f 70 65 6e 69 6e 67 |so when.|.opening|
|00001060| 20 69 73 20 46 41 4c 53 | 45 2c 20 77 65 20 72 65 | is FALS|E, we re|
|00001070| 74 75 72 6e 20 46 41 4c | 53 45 20 74 6f 20 6c 65 |turn FAL|SE to le|
|00001080| 74 20 74 68 65 20 63 61 | 6c 6c 65 72 20 73 65 6e |t the ca|ller sen|
|00001090| 64 20 62 61 63 6b 20 74 | 68 65 0d 09 70 72 6f 70 |d back t|he..prop|
|000010a0| 65 72 20 65 72 72 6f 72 | 20 63 6f 64 65 20 74 6f |er error| code to|
|000010b0| 20 74 68 65 20 41 45 4d | 61 6e 61 67 65 72 2e 0d | the AEM|anager..|
|000010c0| 0d 09 59 6f 75 20 77 69 | 6c 6c 20 70 72 6f 62 61 |..You wi|ll proba|
|000010d0| 62 6c 79 20 77 61 6e 74 | 20 74 6f 20 72 65 6d 6f |bly want| to remo|
|000010e0| 76 65 20 74 68 65 20 23 | 70 72 61 67 6d 61 20 75 |ve the #|pragma u|
|000010f0| 6e 75 73 65 64 20 28 63 | 75 72 72 65 6e 74 6c 79 |nused (c|urrently|
|00001100| 20 74 68 65 72 65 20 74 | 6f 20 66 6f 6f 6c 20 74 | there t|o fool t|
|00001110| 68 65 20 63 6f 6d 70 69 | 6c 65 72 21 29 0d 2a 2f |he compi|ler!).*/|
|00001120| 0d 23 70 72 61 67 6d 61 | 20 73 65 67 6d 65 6e 74 |.#pragma| segment|
|00001130| 20 4d 61 69 6e 0d 70 61 | 73 63 61 6c 20 42 6f 6f | Main.pa|scal Boo|
|00001140| 6c 65 61 6e 20 50 72 65 | 46 6c 69 67 68 74 44 6f |lean Pre|FlightDo|
|00001150| 63 73 20 28 42 6f 6f 6c | 65 61 6e 20 6f 70 65 6e |cs (Bool|ean open|
|00001160| 69 6e 67 2c 20 73 68 6f | 72 74 20 69 74 65 6d 43 |ing, sho|rt itemC|
|00001170| 6f 75 6e 74 2c 20 48 61 | 6e 64 6c 65 20 2a 75 73 |ount, Ha|ndle *us|
|00001180| 65 72 44 61 74 61 48 61 | 6e 64 6c 65 29 20 7b 0d |erDataHa|ndle) {.|
|00001190| 23 70 72 61 67 6d 61 20 | 75 6e 75 73 65 64 20 28 |#pragma |unused (|
|000011a0| 20 69 74 65 6d 43 6f 75 | 6e 74 20 29 0d 23 70 72 | itemCou|nt ).#pr|
|000011b0| 61 67 6d 61 20 75 6e 75 | 73 65 64 20 28 20 75 73 |agma unu|sed ( us|
|000011c0| 65 72 44 61 74 61 48 61 | 6e 64 6c 65 20 29 0d 0d |erDataHa|ndle )..|
|000011d0| 09 72 65 74 75 72 6e 20 | 6f 70 65 6e 69 6e 67 3b |.return |opening;|
|000011e0| 09 09 2f 2f 20 77 65 20 | 73 75 70 70 6f 72 74 20 |..// we |support |
|000011f0| 6f 70 65 6e 69 6e 67 2c | 20 62 75 74 20 6e 6f 74 |opening,| but not|
|00001200| 20 70 72 69 6e 74 69 6e | 67 20 2d 20 73 65 65 20 | printin|g - see |
|00001210| 61 62 6f 76 65 0d 7d 0d | 0d 0d 2f 2a 09 0d 09 54 |above.}.|../*...T|
|00001220| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 69 73 20 63 |his rout|ine is c|
|00001230| 61 6c 6c 65 64 20 66 6f | 72 20 65 61 63 68 20 66 |alled fo|r each f|
|00001240| 69 6c 65 20 70 61 73 73 | 65 64 20 69 6e 20 74 68 |ile pass|ed in th|
|00001250| 65 20 4f 44 4f 43 20 65 | 76 65 6e 74 2e 0d 09 0d |e ODOC e|vent....|
|00001260| 09 49 6e 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |.In this| routine|
|00001270| 20 79 6f 75 20 77 6f 75 | 6c 64 20 70 6c 61 63 65 | you wou|ld place|
|00001280| 20 63 6f 64 65 20 66 6f | 72 20 70 72 6f 63 65 73 | code fo|r proces|
|00001290| 73 69 6e 67 20 65 61 63 | 68 20 66 69 6c 65 2f 66 |sing eac|h file/f|
|000012a0| 6f 6c 64 65 72 2f 64 69 | 73 6b 20 74 68 61 74 0d |older/di|sk that.|
|000012b0| 09 77 61 73 20 64 72 6f | 70 70 65 64 20 6f 6e 20 |.was dro|pped on |
|000012c0| 74 6f 70 20 6f 66 20 79 | 6f 75 2e 0d 09 0d 09 59 |top of y|ou.....Y|
|000012d0| 6f 75 20 77 69 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |ou will |probably|
|000012e0| 20 77 61 6e 74 20 74 6f | 20 72 65 6d 6f 76 65 20 | want to| remove |
|000012f0| 74 68 65 20 23 70 72 61 | 67 6d 61 20 75 6e 75 73 |the #pra|gma unus|
|00001300| 65 64 20 28 63 75 72 72 | 65 6e 74 6c 79 20 74 68 |ed (curr|ently th|
|00001310| 65 72 65 20 74 6f 20 66 | 6f 6f 6c 20 74 68 65 20 |ere to f|ool the |
|00001320| 63 6f 6d 70 69 6c 65 72 | 21 29 0d 2a 2f 0d 23 70 |compiler|!).*/.#p|
|00001330| 72 61 67 6d 61 20 73 65 | 67 6d 65 6e 74 20 4d 61 |ragma se|gment Ma|
|00001340| 69 6e 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 4f |in.pasca|l void O|
|00001350| 70 65 6e 44 6f 63 20 28 | 20 46 53 53 70 65 63 50 |penDoc (| FSSpecP|
|00001360| 74 72 20 6d 79 46 53 53 | 50 74 72 2c 20 42 6f 6f |tr myFSS|Ptr, Boo|
|00001370| 6c 65 61 6e 20 6f 70 65 | 6e 69 6e 67 2c 20 48 61 |lean ope|ning, Ha|
|00001380| 6e 64 6c 65 20 75 73 65 | 72 44 61 74 61 48 61 6e |ndle use|rDataHan|
|00001390| 64 6c 65 20 29 20 7b 0d | 23 70 72 61 67 6d 61 20 |dle ) {.|#pragma |
|000013a0| 75 6e 75 73 65 64 20 28 | 20 6d 79 46 53 53 50 74 |unused (| myFSSPt|
|000013b0| 72 20 29 0d 23 70 72 61 | 67 6d 61 20 75 6e 75 73 |r ).#pra|gma unus|
|000013c0| 65 64 20 28 20 6f 70 65 | 6e 69 6e 67 20 29 0d 23 |ed ( ope|ning ).#|
|000013d0| 70 72 61 67 6d 61 20 75 | 6e 75 73 65 64 20 28 20 |pragma u|nused ( |
|000013e0| 75 73 65 72 44 61 74 61 | 48 61 6e 64 6c 65 20 29 |userData|Handle )|
|000013f0| 0d 09 4f 53 45 72 72 09 | 65 72 72 20 3d 20 6e 6f |..OSErr.|err = no|
|00001400| 45 72 72 3b 0d 09 0d 09 | 0d 09 23 69 66 64 65 66 |Err;....|..#ifdef|
|00001410| 20 71 57 61 6c 6b 46 6f | 6c 64 65 72 73 0d 09 2f | qWalkFo|lders../|
|00001420| 2a 0d 09 09 46 6f 72 20 | 74 68 69 73 20 63 61 73 |*...For |this cas|
|00001430| 65 20 77 65 20 6e 65 65 | 64 20 74 6f 20 64 65 74 |e we nee|d to det|
|00001440| 65 72 6d 69 6e 65 20 69 | 66 20 74 68 65 20 46 53 |ermine i|f the FS|
|00001450| 53 70 65 63 20 69 73 20 | 61 20 66 69 6c 65 20 6f |Spec is |a file o|
|00001460| 72 20 66 6f 6c 64 65 72 | 2e 0d 09 09 49 66 20 69 |r folder|....If i|
|00001470| 74 27 73 20 61 20 66 6f | 6c 64 65 72 2c 20 77 65 |t's a fo|lder, we|
|00001480| 20 74 68 65 6e 20 6e 65 | 65 64 20 74 6f 20 70 72 | then ne|ed to pr|
|00001490| 6f 63 65 73 73 20 65 61 | 63 68 20 69 74 65 6d 20 |ocess ea|ch item |
|000014a0| 69 6e 20 74 68 61 74 20 | 66 6f 6c 64 65 72 2c 0d |in that |folder,.|
|000014b0| 09 09 6f 74 68 65 72 77 | 69 73 65 20 6a 75 73 74 |..otherw|ise just|
|000014c0| 20 70 72 6f 63 65 73 73 | 20 74 68 65 20 69 74 65 | process| the ite|
|000014d0| 6d 2e 0d 09 2a 2f 0d 09 | 69 66 20 28 46 53 70 49 |m...*/..|if (FSpI|
|000014e0| 73 46 6f 6c 64 65 72 28 | 6d 79 46 53 53 50 74 72 |sFolder(|myFSSPtr|
|000014f0| 29 29 0d 09 09 65 72 72 | 20 3d 20 50 72 6f 63 65 |))...err| = Proce|
|00001500| 73 73 46 6f 6c 64 65 72 | 28 6d 79 46 53 53 50 74 |ssFolder|(myFSSPt|
|00001510| 72 29 3b 0d 09 65 6c 73 | 65 0d 09 09 65 72 72 20 |r);..els|e...err |
|00001520| 3d 20 50 72 6f 63 65 73 | 73 49 74 65 6d 28 6d 79 |= Proces|sItem(my|
|00001530| 46 53 53 50 74 72 29 3b | 0d 09 23 65 6c 73 65 0d |FSSPtr);|..#else.|
|00001540| 09 2f 2a 0d 09 09 46 6f | 72 20 74 68 69 73 20 63 |./*...Fo|r this c|
|00001550| 61 73 65 20 77 65 20 6a | 75 73 74 20 63 61 6c 6c |ase we j|ust call|
|00001560| 20 50 72 6f 63 65 73 73 | 49 74 65 6d 20 6f 6e 20 | Process|Item on |
|00001570| 74 68 65 20 46 53 53 70 | 65 63 20 61 62 6f 76 65 |the FSSp|ec above|
|00001580| 2e 0d 09 2a 2f 0d 09 65 | 72 72 20 3d 20 50 72 6f |...*/..e|rr = Pro|
|00001590| 63 65 73 73 49 74 65 6d | 28 6d 79 46 53 53 50 74 |cessItem|(myFSSPt|
|000015a0| 72 29 3b 0d 09 23 65 6e | 64 69 66 0d 09 0d 09 2f |r);..#en|dif..../|
|000015b0| 2f 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 70 72 6f |/ you sh|ould pro|
|000015c0| 62 61 62 6c 79 20 64 6f | 20 73 6f 6d 65 74 68 69 |bably do| somethi|
|000015d0| 6e 67 20 69 66 20 79 6f | 75 20 67 65 74 20 62 61 |ng if yo|u get ba|
|000015e0| 63 6b 20 61 6e 20 65 72 | 72 6f 72 20 3b 29 0d 7d |ck an er|ror ;).}|
|000015f0| 0d 0d 0d 2f 2a 09 0d 09 | 54 68 69 73 20 72 6f 75 |.../*...|This rou|
|00001600| 74 69 6e 65 20 69 73 20 | 74 68 65 20 6c 61 73 74 |tine is |the last|
|00001610| 20 72 6f 75 74 69 6e 65 | 20 63 61 6c 6c 65 64 20 | routine| called |
|00001620| 61 73 20 70 61 72 74 20 | 6f 66 20 61 6e 20 4f 44 |as part |of an OD|
|00001630| 4f 43 20 65 76 65 6e 74 | 2e 0d 09 0d 09 49 6e 20 |OC event|.....In |
|00001640| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 20 79 6f 75 |this rou|tine you|
|00001650| 20 77 6f 75 6c 64 20 70 | 6c 61 63 65 20 63 6f 64 | would p|lace cod|
|00001660| 65 20 74 6f 20 70 72 6f | 63 65 73 73 20 61 6e 79 |e to pro|cess any|
|00001670| 20 73 74 72 75 63 74 75 | 72 65 73 2c 20 65 74 63 | structu|res, etc|
|00001680| 2e 20 0d 09 74 68 61 74 | 20 79 6f 75 20 73 65 74 |. ..that| you set|
|00001690| 75 70 20 69 6e 20 74 68 | 65 20 50 72 65 66 6c 69 |up in th|e Prefli|
|000016a0| 67 68 74 44 6f 63 73 20 | 72 6f 75 74 69 6e 65 2e |ghtDocs |routine.|
|000016b0| 0d 0d 09 4e 45 57 20 49 | 4e 20 32 2e 30 21 0d 09 |...NEW I|N 2.0!..|
|000016c0| 54 68 65 20 69 74 65 6d | 43 6f 75 6e 74 20 70 61 |The item|Count pa|
|000016d0| 72 61 6d 65 74 65 72 20 | 77 61 73 20 74 68 65 20 |rameter |was the |
|000016e0| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|000016f0| 74 68 61 74 20 79 6f 75 | 20 70 72 6f 63 65 73 73 |that you| process|
|00001700| 65 64 2e 0d 09 49 74 20 | 69 73 20 70 61 73 73 65 |ed...It |is passe|
|00001710| 64 20 68 65 72 65 20 6a | 75 73 74 20 69 6e 20 63 |d here j|ust in c|
|00001720| 61 73 65 20 79 6f 75 20 | 6e 65 65 64 20 69 74 20 |ase you |need it |
|00001730| 3b 29 20 20 0d 09 0d 09 | 49 66 20 79 6f 75 20 63 |;) ....|If you c|
|00001740| 72 65 61 74 65 64 20 61 | 20 75 73 65 72 44 61 74 |reated a| userDat|
|00001750| 61 48 61 6e 64 6c 65 20 | 69 6e 20 74 68 65 20 50 |aHandle |in the P|
|00001760| 72 65 46 6c 69 67 68 74 | 44 6f 63 73 20 72 6f 75 |reFlight|Docs rou|
|00001770| 74 69 6e 65 73 2c 20 74 | 68 69 73 20 69 73 0d 09 |tines, t|his is..|
|00001780| 74 68 65 20 70 6c 61 63 | 65 20 74 6f 20 64 69 73 |the plac|e to dis|
|00001790| 70 6f 73 65 20 6f 66 20 | 69 74 20 73 69 6e 63 65 |pose of |it since|
|000017a0| 20 74 68 65 20 53 68 65 | 6c 6c 20 77 69 6c 6c 20 | the She|ll will |
|000017b0| 4e 4f 54 20 64 6f 20 69 | 74 20 66 6f 72 20 79 6f |NOT do i|t for yo|
|000017c0| 75 21 0d 09 0d 09 59 6f | 75 20 77 69 6c 6c 20 70 |u!....Yo|u will p|
|000017d0| 72 6f 62 61 62 6c 79 20 | 77 61 6e 74 20 74 6f 20 |robably |want to |
|000017e0| 72 65 6d 6f 76 65 20 74 | 68 65 20 23 70 72 61 67 |remove t|he #prag|
|000017f0| 6d 61 20 75 6e 75 73 75 | 65 64 20 28 63 75 72 72 |ma unusu|ed (curr|
|00001800| 65 6e 74 6c 79 20 74 68 | 65 72 65 20 74 6f 20 66 |ently th|ere to f|
|00001810| 6f 6f 6c 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |ool the |compiler|
|00001820| 21 29 0d 2a 2f 0d 23 70 | 72 61 67 6d 61 20 73 65 |!).*/.#p|ragma se|
|00001830| 67 6d 65 6e 74 20 4d 61 | 69 6e 0d 70 61 73 63 61 |gment Ma|in.pasca|
|00001840| 6c 20 76 6f 69 64 20 50 | 6f 73 74 46 6c 69 67 68 |l void P|ostFligh|
|00001850| 74 44 6f 63 73 20 28 20 | 42 6f 6f 6c 65 61 6e 20 |tDocs ( |Boolean |
|00001860| 6f 70 65 6e 69 6e 67 2c | 20 73 68 6f 72 74 20 69 |opening,| short i|
|00001870| 74 65 6d 43 6f 75 6e 74 | 2c 20 48 61 6e 64 6c 65 |temCount|, Handle|
|00001880| 20 75 73 65 72 44 61 74 | 61 48 61 6e 64 6c 65 20 | userDat|aHandle |
|00001890| 29 20 7b 0d 23 70 72 61 | 67 6d 61 20 75 6e 75 73 |) {.#pra|gma unus|
|000018a0| 65 64 20 28 20 6f 70 65 | 6e 69 6e 67 20 29 0d 23 |ed ( ope|ning ).#|
|000018b0| 70 72 61 67 6d 61 20 75 | 6e 75 73 65 64 20 28 20 |pragma u|nused ( |
|000018c0| 69 74 65 6d 43 6f 75 6e | 74 20 29 0d 23 70 72 61 |itemCoun|t ).#pra|
|000018d0| 67 6d 61 20 75 6e 75 73 | 65 64 20 28 20 75 73 65 |gma unus|ed ( use|
|000018e0| 72 44 61 74 61 48 61 6e | 64 6c 65 20 29 0d 0d 09 |rDataHan|dle )...|
|000018f0| 69 66 20 28 20 28 6f 70 | 65 6e 69 6e 67 29 20 26 |if ( (op|ening) &|
|00001900| 26 20 28 21 67 4f 41 70 | 70 65 64 29 20 29 0d 09 |& (!gOAp|ped) )..|
|00001910| 09 67 44 6f 6e 65 20 3d | 20 74 72 75 65 3b 09 2f |.gDone =| true;./|
|00001920| 2f 09 63 6c 6f 73 65 20 | 65 76 65 72 79 74 68 69 |/.close |everythi|
|00001930| 6e 67 20 75 70 21 0d 0d | 09 2f 2a 0d 09 09 54 68 |ng up!..|./*...Th|
|00001940| 65 20 72 65 61 73 6f 6e | 20 77 65 20 64 6f 20 6e |e reason| we do n|
|00001950| 6f 74 20 61 75 74 6f 20 | 71 75 69 74 20 69 73 20 |ot auto |quit is |
|00001960| 62 61 73 65 64 20 6f 6e | 20 61 20 72 65 63 6f 6d |based on| a recom|
|00001970| 6d 65 6e 64 61 74 69 6f | 6e 20 69 6e 20 74 68 65 |mendatio|n in the|
|00001980| 0d 09 09 41 70 70 6c 65 | 20 65 76 65 6e 74 20 52 |...Apple| event R|
|00001990| 65 67 69 73 74 72 79 20 | 77 68 69 63 68 20 73 70 |egistry |which sp|
|000019a0| 65 63 69 66 69 63 61 6c | 6c 79 20 73 74 61 74 65 |ecifical|ly state|
|000019b0| 73 20 74 68 61 74 20 79 | 6f 75 20 73 68 6f 75 6c |s that y|ou shoul|
|000019c0| 64 20 4e 4f 54 0d 09 09 | 71 75 69 74 20 6f 6e 20 |d NOT...|quit on |
|000019d0| 61 20 27 70 64 6f 63 27 | 20 61 73 20 74 68 65 20 |a 'pdoc'| as the |
|000019e0| 46 69 6e 64 65 72 20 77 | 69 6c 6c 20 73 65 6e 64 |Finder w|ill send|
|000019f0| 20 79 6f 75 20 61 20 27 | 71 75 69 74 27 20 77 68 | you a '|quit' wh|
|00001a00| 65 6e 20 69 74 20 69 73 | 20 0d 09 09 72 65 61 64 |en it is| ...read|
|00001a10| 79 20 66 6f 72 20 79 6f | 75 20 74 6f 20 64 6f 20 |y for yo|u to do |
|00001a20| 73 6f 2e 0d 09 2a 2f 0d | 7d 0d 0d 0d 2f 2a 0d 09 |so...*/.|}.../*..|
|00001a30| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 67 65 74 |This rou|tine get|
|00001a40| 73 20 63 61 6c 6c 65 64 | 20 66 6f 72 20 65 61 63 |s called| for eac|
|00001a50| 68 20 69 74 65 6d 20 28 | 77 68 69 63 68 20 63 6f |h item (|which co|
|00001a60| 75 6c 64 20 62 65 20 65 | 69 74 68 65 72 20 61 20 |uld be e|ither a |
|00001a70| 66 69 6c 65 20 6f 72 20 | 61 20 66 6f 6c 64 65 72 |file or |a folder|
|00001a80| 29 0d 09 74 68 61 74 20 | 74 68 65 20 63 61 6c 6c |)..that |the call|
|00001a90| 65 72 20 77 61 6e 74 73 | 20 64 72 6f 70 70 65 64 |er wants| dropped|
|00001aa0| 2e 20 20 54 68 65 20 64 | 65 74 65 72 6d 69 6e 69 |. The d|etermini|
|00001ab0| 6e 67 20 66 61 63 74 6f | 72 20 69 73 20 74 68 65 |ng facto|r is the|
|00001ac0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 6f 66 20 74 | definit|ion of t|
|00001ad0| 68 65 20 0d 09 71 57 61 | 6c 6b 46 6f 6c 64 65 72 |he ..qWa|lkFolder|
|00001ae0| 20 63 6f 6d 70 69 6c 65 | 72 20 64 69 72 65 63 74 | compile|r direct|
|00001af0| 69 76 65 2e 20 20 20 45 | 69 74 68 65 72 20 77 61 |ive. E|ither wa|
|00001b00| 79 2c 20 74 68 65 20 69 | 74 65 6d 20 69 6e 20 71 |y, the i|tem in q|
|00001b10| 75 65 73 74 69 6f 6e 20 | 73 68 6f 75 6c 64 20 62 |uestion |should b|
|00001b20| 65 0d 09 70 72 6f 63 65 | 73 73 65 64 20 61 73 20 |e..proce|ssed as |
|00001b30| 61 20 73 69 6e 67 6c 65 | 20 69 74 65 6d 20 61 6e |a single| item an|
|00001b40| 64 20 6e 6f 74 20 22 64 | 69 73 73 65 63 74 65 64 |d not "d|issected|
|00001b50| 22 20 69 6e 74 6f 20 63 | 6f 6d 70 6f 6e 65 6e 74 |" into c|omponent|
|00001b60| 20 75 6e 69 74 73 20 28 | 6c 69 6b 65 20 73 75 62 | units (|like sub|
|00001b70| 66 69 6c 65 73 0d 09 6f | 66 20 61 20 66 6f 6c 64 |files..o|f a fold|
|00001b80| 65 72 21 29 0d 2a 2f 0d | 73 74 61 74 69 63 20 4f |er!).*/.|static O|
|00001b90| 53 45 72 72 20 50 72 6f | 63 65 73 73 49 74 65 6d |SErr Pro|cessItem|
|00001ba0| 28 46 53 53 70 65 63 50 | 74 72 20 6d 79 46 53 53 |(FSSpecP|tr myFSS|
|00001bb0| 50 74 72 29 0d 7b 0d 09 | 4f 53 45 72 72 09 65 72 |Ptr).{..|OSErr.er|
|00001bc0| 72 20 3d 20 6e 6f 45 72 | 72 3b 0d 09 0d 09 2f 2f |r = noEr|r;....//|
|00001bd0| 20 64 6f 20 73 6f 6d 65 | 74 68 69 6e 67 20 68 65 | do some|thing he|
|00001be0| 72 65 0d 09 0d 09 72 65 | 74 75 72 6e 28 65 72 72 |re....re|turn(err|
|00001bf0| 29 3b 0d 7d 0d 0d 2f 2a | 0d 09 54 68 69 73 20 72 |);.}../*|..This r|
|00001c00| 6f 75 74 69 6e 65 20 67 | 65 74 73 20 63 61 6c 6c |outine g|ets call|
|00001c10| 65 64 20 66 6f 72 20 61 | 6e 79 20 66 6f 6c 64 65 |ed for a|ny folde|
|00001c20| 72 20 28 6f 72 20 64 69 | 73 6b 29 20 74 68 61 74 |r (or di|sk) that|
|00001c30| 20 74 68 65 20 63 61 6c | 6c 65 72 20 77 61 6e 74 | the cal|ler want|
|00001c40| 73 20 0d 09 70 72 6f 63 | 65 73 73 65 64 20 61 73 |s ..proc|essed as|
|00001c50| 20 61 20 73 65 74 20 6f | 66 20 63 6f 6d 70 6f 6e | a set o|f compon|
|00001c60| 65 6e 74 20 69 74 65 6d | 73 2c 20 69 6e 73 74 65 |ent item|s, inste|
|00001c70| 61 64 20 6f 66 20 61 73 | 20 61 20 73 69 6e 67 6c |ad of as| a singl|
|00001c80| 65 20 65 6e 74 69 74 79 | 2e 0d 09 54 68 65 20 64 |e entity|...The d|
|00001c90| 65 74 65 72 6d 69 6e 69 | 6e 67 20 66 61 63 74 6f |etermini|ng facto|
|00001ca0| 72 20 69 73 20 74 68 65 | 20 64 65 66 69 6e 69 74 |r is the| definit|
|00001cb0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 71 57 61 6c 6b |ion of t|he qWalk|
|00001cc0| 46 6f 6c 64 65 72 20 63 | 6f 6d 70 69 6c 65 72 20 |Folder c|ompiler |
|00001cd0| 64 69 72 65 63 74 69 76 | 65 2e 0d 2a 2f 0d 73 74 |directiv|e..*/.st|
|00001ce0| 61 74 69 63 20 4f 53 45 | 72 72 20 50 72 6f 63 65 |atic OSE|rr Proce|
|00001cf0| 73 73 46 6f 6c 64 65 72 | 28 46 53 53 70 65 63 50 |ssFolder|(FSSpecP|
|00001d00| 74 72 20 6d 79 46 53 53 | 50 74 72 29 0d 7b 0d 09 |tr myFSS|Ptr).{..|
|00001d10| 4f 53 45 72 72 09 09 65 | 72 72 20 3d 20 6e 6f 45 |OSErr..e|rr = noE|
|00001d20| 72 72 3b 0d 09 73 68 6f | 72 74 09 09 69 6e 64 65 |rr;..sho|rt..inde|
|00001d30| 78 2c 20 6f 6c 64 49 6e | 64 65 78 2c 20 6c 6f 63 |x, oldIn|dex, loc|
|00001d40| 61 6c 49 6e 64 65 78 3b | 0d 09 46 53 53 70 65 63 |alIndex;|..FSSpec|
|00001d50| 09 09 6c 6f 63 61 6c 46 | 53 53 70 65 63 2c 20 63 |..localF|SSpec, c|
|00001d60| 75 72 46 53 53 70 65 63 | 3b 0d 09 43 49 6e 66 6f |urFSSpec|;..CInfo|
|00001d70| 50 42 52 65 63 09 63 69 | 70 62 3b 0d 09 53 74 72 |PBRec.ci|pb;..Str|
|00001d80| 32 35 35 09 09 66 4e 61 | 6d 65 2c 20 76 46 4e 61 |255..fNa|me, vFNa|
|00001d90| 6d 65 3b 0d 09 6c 6f 6e | 67 09 09 64 69 72 49 44 |me;..lon|g..dirID|
|00001da0| 2c 20 6f 72 69 67 44 69 | 72 49 44 3b 0d 09 42 6f |, origDi|rID;..Bo|
|00001db0| 6f 6c 65 61 6e 09 09 66 | 6f 75 6e 64 50 6f 73 69 |olean..f|oundPosi|
|00001dc0| 74 69 6f 6e 3b 0d 20 0d | 20 09 2f 2f 20 63 6f 70 |tion;. .| .// cop|
|00001dd0| 79 20 74 68 65 20 73 6f | 75 72 63 65 20 6c 6f 63 |y the so|urce loc|
|00001de0| 61 6c 6c 79 20 74 6f 20 | 61 76 6f 69 64 20 72 65 |ally to |avoid re|
|00001df0| 63 75 72 73 69 6f 6e 20 | 70 72 6f 62 6c 65 6d 73 |cursion |problems|
|00001e00| 0d 20 09 42 6c 6f 63 6b | 4d 6f 76 65 44 61 74 61 |. .Block|MoveData|
|00001e10| 28 6d 79 46 53 53 50 74 | 72 2c 20 26 6c 6f 63 61 |(myFSSPt|r, &loca|
|00001e20| 6c 46 53 53 70 65 63 2c | 20 73 69 7a 65 6f 66 28 |lFSSpec,| sizeof(|
|00001e30| 46 53 53 70 65 63 29 29 | 3b 0d 20 09 0d 09 2f 2f |FSSpec))|;. ...//|
|00001e40| 09 67 65 74 20 74 68 65 | 20 64 69 72 49 44 20 66 |.get the| dirID f|
|00001e50| 6f 72 20 54 48 49 53 20 | 66 6f 6c 64 65 72 2c 20 |or THIS |folder, |
|00001e60| 6e 6f 74 20 69 74 27 73 | 20 70 61 72 65 6e 74 21 |not it's| parent!|
|00001e70| 0d 09 42 6c 6f 63 6b 4d | 6f 76 65 44 61 74 61 28 |..BlockM|oveData(|
|00001e80| 6c 6f 63 61 6c 46 53 53 | 70 65 63 2e 6e 61 6d 65 |localFSS|pec.name|
|00001e90| 2c 20 66 4e 61 6d 65 2c | 20 33 32 29 3b 0d 09 0d |, fName,| 32);...|
|00001ea0| 09 63 69 70 62 2e 68 46 | 69 6c 65 49 6e 66 6f 2e |.cipb.hF|ileInfo.|
|00001eb0| 69 6f 43 6f 6d 70 6c 65 | 74 69 6f 6e 09 3d 20 30 |ioComple|tion.= 0|
|00001ec0| 4c 3b 0d 09 63 69 70 62 | 2e 68 46 69 6c 65 49 6e |L;..cipb|.hFileIn|
|00001ed0| 66 6f 2e 69 6f 4e 61 6d | 65 50 74 72 09 3d 20 66 |fo.ioNam|ePtr.= f|
|00001ee0| 4e 61 6d 65 3b 0d 09 63 | 69 70 62 2e 68 46 69 6c |Name;..c|ipb.hFil|
|00001ef0| 65 49 6e 66 6f 2e 69 6f | 56 52 65 66 4e 75 6d 09 |eInfo.io|VRefNum.|
|00001f00| 3d 20 6c 6f 63 61 6c 46 | 53 53 70 65 63 2e 76 52 |= localF|SSpec.vR|
|00001f10| 65 66 4e 75 6d 3b 0d 09 | 63 69 70 62 2e 68 46 69 |efNum;..|cipb.hFi|
|00001f20| 6c 65 49 6e 66 6f 2e 69 | 6f 46 44 69 72 49 6e 64 |leInfo.i|oFDirInd|
|00001f30| 65 78 09 3d 20 30 3b 09 | 2f 2f 20 75 73 65 20 74 |ex.= 0;.|// use t|
|00001f40| 68 65 20 64 69 72 20 26 | 20 76 52 65 66 4e 75 6d |he dir &| vRefNum|
|00001f50| 3b 0d 09 63 69 70 62 2e | 68 46 69 6c 65 49 6e 66 |;..cipb.|hFileInf|
|00001f60| 6f 2e 69 6f 44 69 72 49 | 44 09 09 3d 20 6c 6f 63 |o.ioDirI|D..= loc|
|00001f70| 61 6c 46 53 53 70 65 63 | 2e 70 61 72 49 44 3b 0d |alFSSpec|.parID;.|
|00001f80| 09 65 72 72 20 3d 20 50 | 42 47 65 74 43 61 74 49 |.err = P|BGetCatI|
|00001f90| 6e 66 6f 53 79 6e 63 28 | 26 63 69 70 62 29 3b 0d |nfoSync(|&cipb);.|
|00001fa0| 09 0d 09 69 66 20 28 21 | 65 72 72 29 20 7b 09 09 |...if (!|err) {..|
|00001fb0| 0d 09 09 6f 72 69 67 44 | 69 72 49 44 20 3d 20 63 |...origD|irID = c|
|00001fc0| 69 70 62 2e 64 69 72 49 | 6e 66 6f 2e 69 6f 44 72 |ipb.dirI|nfo.ioDr|
|00001fd0| 44 69 72 49 44 3b 20 2f | 2f 20 63 6f 70 79 20 74 |DirID; /|/ copy t|
|00001fe0| 68 65 20 73 75 63 6b 65 | 72 0d 09 09 69 6e 64 65 |he sucke|r...inde|
|00001ff0| 78 20 3d 20 31 3b 0d 09 | 09 09 09 0d 09 09 2f 2f |x = 1;..|......//|
|00002000| 20 69 6e 64 65 78 20 74 | 68 72 6f 75 67 68 20 61 | index t|hrough a|
|00002010| 6c 6c 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |ll conte|nts of t|
|00002020| 68 69 73 20 66 6f 6c 64 | 65 72 0d 09 09 77 68 69 |his fold|er...whi|
|00002030| 6c 65 20 28 65 72 72 20 | 3d 3d 20 6e 6f 45 72 72 |le (err |== noErr|
|00002040| 29 20 7b 0d 09 09 09 64 | 69 72 49 44 20 3d 20 6f |) {....d|irID = o|
|00002050| 72 69 67 44 69 72 49 44 | 3b 0d 09 09 09 6c 6f 63 |rigDirID|;....loc|
|00002060| 61 6c 49 6e 64 65 78 20 | 3d 20 69 6e 64 65 78 3b |alIndex |= index;|
|00002070| 0d 09 09 09 66 4e 61 6d | 65 20 5b 30 5d 20 3d 20 |....fNam|e [0] = |
|00002080| 30 3b 0d 09 09 09 63 69 | 70 62 2e 68 46 69 6c 65 |0;....ci|pb.hFile|
|00002090| 49 6e 66 6f 2e 69 6f 43 | 6f 6d 70 6c 65 74 69 6f |Info.ioC|ompletio|
|000020a0| 6e 09 3d 20 30 4c 3b 0d | 09 09 09 63 69 70 62 2e |n.= 0L;.|...cipb.|
|000020b0| 68 46 69 6c 65 49 6e 66 | 6f 2e 69 6f 4e 61 6d 65 |hFileInf|o.ioName|
|000020c0| 50 74 72 09 3d 20 66 4e | 61 6d 65 3b 0d 09 09 09 |Ptr.= fN|ame;....|
|000020d0| 63 69 70 62 2e 68 46 69 | 6c 65 49 6e 66 6f 2e 69 |cipb.hFi|leInfo.i|
|000020e0| 6f 56 52 65 66 4e 75 6d | 09 3d 20 6c 6f 63 61 6c |oVRefNum|.= local|
|000020f0| 46 53 53 70 65 63 2e 76 | 52 65 66 4e 75 6d 3b 0d |FSSpec.v|RefNum;.|
|00002100| 09 09 09 63 69 70 62 2e | 68 46 69 6c 65 49 6e 66 |...cipb.|hFileInf|
|00002110| 6f 2e 69 6f 46 44 69 72 | 49 6e 64 65 78 09 3d 20 |o.ioFDir|Index.= |
|00002120| 6c 6f 63 61 6c 49 6e 64 | 65 78 3b 09 2f 2f 20 75 |localInd|ex;.// u|
|00002130| 73 65 20 61 20 72 65 61 | 6c 20 69 6e 64 65 78 0d |se a rea|l index.|
|00002140| 09 09 09 63 69 70 62 2e | 68 46 69 6c 65 49 6e 66 |...cipb.|hFileInf|
|00002150| 6f 2e 69 6f 44 69 72 49 | 44 09 09 3d 20 64 69 72 |o.ioDirI|D..= dir|
|00002160| 49 44 3b 0d 09 09 09 65 | 72 72 20 3d 20 50 42 47 |ID;....e|rr = PBG|
|00002170| 65 74 43 61 74 49 6e 66 | 6f 53 79 6e 63 28 26 63 |etCatInf|oSync(&c|
|00002180| 69 70 62 29 3b 0d 0d 09 | 09 09 69 66 20 28 21 65 |ipb);...|..if (!e|
|00002190| 72 72 29 20 7b 0d 09 09 | 09 09 42 6c 6f 63 6b 4d |rr) {...|..BlockM|
|000021a0| 6f 76 65 44 61 74 61 28 | 66 4e 61 6d 65 2c 20 63 |oveData(|fName, c|
|000021b0| 75 72 46 53 53 70 65 63 | 2e 6e 61 6d 65 2c 20 33 |urFSSpec|.name, 3|
|000021c0| 32 29 3b 0d 09 09 09 09 | 63 75 72 46 53 53 70 65 |2);.....|curFSSpe|
|000021d0| 63 2e 76 52 65 66 4e 75 | 6d 09 3d 20 63 69 70 62 |c.vRefNu|m.= cipb|
|000021e0| 2e 68 46 69 6c 65 49 6e | 66 6f 2e 69 6f 56 52 65 |.hFileIn|fo.ioVRe|
|000021f0| 66 4e 75 6d 3b 0d 09 09 | 09 09 63 75 72 46 53 53 |fNum;...|..curFSS|
|00002200| 70 65 63 2e 70 61 72 49 | 44 09 09 3d 20 64 69 72 |pec.parI|D..= dir|
|00002210| 49 44 3b 0d 09 09 09 0d | 09 09 09 09 2f 2a 09 0d |ID;.....|..../*..|
|00002220| 09 09 09 09 09 43 68 65 | 63 6b 20 74 6f 20 73 65 |.....Che|ck to se|
|00002230| 65 20 69 66 20 74 68 69 | 73 20 65 6e 74 72 79 20 |e if thi|s entry |
|00002240| 69 73 20 61 20 66 6f 6c | 64 65 72 2e 0d 09 09 09 |is a fol|der.....|
|00002250| 09 2a 2f 0d 09 09 09 09 | 69 66 20 28 63 69 70 62 |.*/.....|if (cipb|
|00002260| 2e 68 46 69 6c 65 49 6e | 66 6f 2e 69 6f 46 6c 41 |.hFileIn|fo.ioFlA|
|00002270| 74 74 72 69 62 20 26 20 | 69 6f 44 69 72 4d 61 73 |ttrib & |ioDirMas|
|00002280| 6b 29 20 7b 0d 09 09 09 | 09 09 65 72 72 20 3d 20 |k) {....|..err = |
|00002290| 50 72 6f 63 65 73 73 46 | 6f 6c 64 65 72 28 26 63 |ProcessF|older(&c|
|000022a0| 75 72 46 53 53 70 65 63 | 29 3b 0d 09 09 09 09 20 |urFSSpec|);..... |
|000022b0| 7d 20 65 6c 73 65 0d 09 | 09 09 09 09 65 72 72 20 |} else..|....err |
|000022c0| 3d 20 50 72 6f 63 65 73 | 73 49 74 65 6d 28 26 63 |= Proces|sItem(&c|
|000022d0| 75 72 46 53 53 70 65 63 | 29 3b 0d 09 09 09 0d 09 |urFSSpec|);......|
|000022e0| 09 09 09 2f 2a 09 49 66 | 20 77 65 27 76 65 20 68 |.../*.If| we've h|
|000022f0| 61 64 20 61 6e 20 65 72 | 72 6f 72 2c 20 67 65 74 |ad an er|ror, get|
|00002300| 20 6f 75 74 21 20 2a 2f | 0d 09 09 09 09 69 66 20 | out! */|.....if |
|00002310| 28 65 72 72 29 09 62 72 | 65 61 6b 3b 0d 0d 09 09 |(err).br|eak;....|
|00002320| 09 09 2f 2f 20 64 69 72 | 49 44 20 3d 20 6f 72 69 |..// dir|ID = ori|
|00002330| 67 44 69 72 49 44 3b 09 | 0d 09 09 09 09 6c 6f 63 |gDirID;.|.....loc|
|00002340| 61 6c 49 6e 64 65 78 20 | 3d 20 69 6e 64 65 78 3b |alIndex |= index;|
|00002350| 09 0d 0d 09 09 09 09 2f | 2a 09 0d 09 09 09 09 09 |......./|*.......|
|00002360| 4e 6f 77 20 74 61 6b 65 | 20 69 6e 74 6f 20 61 63 |Now take| into ac|
|00002370| 63 6f 75 6e 74 20 6e 65 | 77 20 66 69 6c 65 73 20 |count ne|w files |
|00002380| 62 65 69 6e 67 20 63 72 | 65 61 74 65 64 0d 09 09 |being cr|eated...|
|00002390| 09 09 09 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |...in th|e curren|
|000023a0| 74 20 64 69 72 65 63 74 | 6f 72 79 20 26 20 6d 65 |t direct|ory & me|
|000023b0| 73 73 69 6e 67 20 75 70 | 20 6f 75 72 20 69 6e 64 |ssing up| our ind|
|000023c0| 65 78 2e 0d 09 09 09 09 | 09 53 65 65 20 44 65 76 |ex......|.See Dev|
|000023d0| 2e 43 44 20 56 6f 6c 2e | 20 58 49 3a 54 6f 6f 6c |.CD Vol.| XI:Tool|
|000023e0| 73 20 26 20 41 70 70 73 | 20 28 4d 6f 6f 66 21 29 |s & Apps| (Moof!)|
|000023f0| 3a 4d 69 73 63 20 55 74 | 69 6c 69 74 69 65 73 3a |:Misc Ut|ilities:|
|00002400| 0d 09 09 09 09 09 44 69 | 73 69 6e 66 65 63 74 61 |......Di|sinfecta|
|00002410| 6e 74 20 26 20 53 6f 75 | 72 63 65 20 32 2e 35 2e |nt & Sou|rce 2.5.|
|00002420| 31 3a 53 61 6d 70 6c 65 | 3a 4e 6f 74 65 73 3a 53 |1:Sample|:Notes:S|
|00002430| 63 61 6e 20 41 6c 67 09 | 0d 09 09 09 09 2a 2f 0d |can Alg.|.....*/.|
|00002440| 09 09 09 09 76 46 4e 61 | 6d 65 20 5b 30 5d 20 3d |....vFNa|me [0] =|
|00002450| 20 30 3b 0d 09 09 09 09 | 63 69 70 62 2e 68 46 69 | 0;.....|cipb.hFi|
|00002460| 6c 65 49 6e 66 6f 2e 69 | 6f 43 6f 6d 70 6c 65 74 |leInfo.i|oComplet|
|00002470| 69 6f 6e 09 3d 20 30 4c | 3b 0d 09 09 09 09 63 69 |ion.= 0L|;.....ci|
|00002480| 70 62 2e 68 46 69 6c 65 | 49 6e 66 6f 2e 69 6f 4e |pb.hFile|Info.ioN|
|00002490| 61 6d 65 50 74 72 09 3d | 20 76 46 4e 61 6d 65 3b |amePtr.=| vFName;|
|000024a0| 0d 09 09 09 09 63 69 70 | 62 2e 68 46 69 6c 65 49 |.....cip|b.hFileI|
|000024b0| 6e 66 6f 2e 69 6f 56 52 | 65 66 4e 75 6d 09 3d 20 |nfo.ioVR|efNum.= |
|000024c0| 6c 6f 63 61 6c 46 53 53 | 70 65 63 2e 76 52 65 66 |localFSS|pec.vRef|
|000024d0| 4e 75 6d 3b 0d 09 09 09 | 09 63 69 70 62 2e 68 46 |Num;....|.cipb.hF|
|000024e0| 69 6c 65 49 6e 66 6f 2e | 69 6f 46 44 69 72 49 6e |ileInfo.|ioFDirIn|
|000024f0| 64 65 78 09 3d 20 6c 6f | 63 61 6c 49 6e 64 65 78 |dex.= lo|calIndex|
|00002500| 3b 09 2f 2f 20 75 73 65 | 20 61 20 72 65 61 6c 20 |;.// use| a real |
|00002510| 69 6e 64 65 78 0d 09 09 | 09 09 63 69 70 62 2e 68 |index...|..cipb.h|
|00002520| 46 69 6c 65 49 6e 66 6f | 2e 69 6f 44 69 72 49 44 |FileInfo|.ioDirID|
|00002530| 09 09 3d 20 64 69 72 49 | 44 3b 0d 09 09 09 09 65 |..= dirI|D;.....e|
|00002540| 72 72 20 3d 20 50 42 47 | 65 74 43 61 74 49 6e 66 |rr = PBG|etCatInf|
|00002550| 6f 53 79 6e 63 28 26 63 | 69 70 62 29 3b 0d 09 09 |oSync(&c|ipb);...|
|00002560| 09 09 6f 6c 64 49 6e 64 | 65 78 20 3d 20 69 6e 64 |..oldInd|ex = ind|
|00002570| 65 78 3b 0d 09 09 09 09 | 69 66 20 28 21 65 72 72 |ex;.....|if (!err|
|00002580| 29 20 7b 0d 09 09 09 09 | 09 2f 2a 09 49 66 20 74 |) {.....|./*.If t|
|00002590| 68 65 79 27 72 65 20 65 | 71 75 61 6c 20 2d 20 73 |hey're e|qual - s|
|000025a0| 61 6d 65 20 70 6c 61 63 | 65 2c 20 67 6f 20 74 6f |ame plac|e, go to|
|000025b0| 20 6e 65 78 74 20 2a 2f | 0d 09 09 09 09 09 69 66 | next */|......if|
|000025c0| 20 28 45 71 75 61 6c 53 | 74 72 69 6e 67 20 28 76 | (EqualS|tring (v|
|000025d0| 46 4e 61 6d 65 2c 20 66 | 4e 61 6d 65 2c 20 66 61 |FName, f|Name, fa|
|000025e0| 6c 73 65 2c 20 66 61 6c | 73 65 29 29 0d 09 09 09 |lse, fal|se))....|
|000025f0| 09 09 09 69 6e 64 65 78 | 2b 2b 3b 0d 09 09 09 09 |...index|++;.....|
|00002600| 7d 0d 09 09 09 09 0d 09 | 09 09 09 2f 2a 09 49 66 |}.......|.../*.If|
|00002610| 20 77 65 20 64 69 64 6e | 27 74 20 61 64 76 61 6e | we didn|'t advan|
|00002620| 63 65 2c 20 74 68 65 6e | 20 70 65 72 68 61 70 73 |ce, then| perhaps|
|00002630| 20 61 20 66 69 6c 65 20 | 77 61 73 20 63 72 65 61 | a file |was crea|
|00002640| 74 65 64 20 6f 72 20 64 | 65 6c 65 74 65 64 20 2a |ted or d|eleted *|
|00002650| 2f 0d 09 09 09 09 69 66 | 20 28 6f 6c 64 49 6e 64 |/.....if| (oldInd|
|00002660| 65 78 20 3d 3d 20 69 6e | 64 65 78 29 20 7b 0d 09 |ex == in|dex) {..|
|00002670| 09 09 09 09 6f 6c 64 49 | 6e 64 65 78 09 09 3d 20 |....oldI|ndex..= |
|00002680| 69 6e 64 65 78 3b 09 2f | 2a 20 73 61 76 65 20 6f |index;./|* save o|
|00002690| 66 66 20 74 68 65 20 6f | 6c 64 20 2a 2f 0d 09 09 |ff the o|ld */...|
|000026a0| 09 09 09 69 6e 64 65 78 | 09 09 09 3d 20 30 3b 09 |...index|...= 0;.|
|000026b0| 09 2f 2a 20 61 6e 64 20 | 73 74 61 72 74 20 61 74 |./* and |start at|
|000026c0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 2a | the beg|inning *|
|000026d0| 2f 0d 09 09 09 09 09 65 | 72 72 09 09 09 09 3d 20 |/......e|rr....= |
|000026e0| 6e 6f 45 72 72 3b 0d 09 | 09 09 09 09 76 46 4e 61 |noErr;..|....vFNa|
|000026f0| 6d 65 20 5b 30 5d 09 09 | 3d 20 30 3b 0d 09 09 09 |me [0]..|= 0;....|
|00002700| 09 09 66 6f 75 6e 64 50 | 6f 73 69 74 69 6f 6e 09 |..foundP|osition.|
|00002710| 3d 20 66 61 6c 73 65 3b | 0d 09 09 09 09 09 0d 09 |= false;|........|
|00002720| 09 09 09 09 77 68 69 6c | 65 20 28 21 66 6f 75 6e |....whil|e (!foun|
|00002730| 64 50 6f 73 69 74 69 6f | 6e 29 20 7b 0d 09 09 09 |dPositio|n) {....|
|00002740| 09 09 09 69 6e 64 65 78 | 2b 2b 3b 0d 09 09 09 09 |...index|++;.....|
|00002750| 09 09 76 46 4e 61 6d 65 | 20 5b 30 5d 20 3d 20 30 |..vFName| [0] = 0|
|00002760| 3b 0d 09 09 09 09 09 09 | 63 69 70 62 2e 68 46 69 |;.......|cipb.hFi|
|00002770| 6c 65 49 6e 66 6f 2e 69 | 6f 43 6f 6d 70 6c 65 74 |leInfo.i|oComplet|
|00002780| 69 6f 6e 09 3d 20 30 4c | 3b 0d 09 09 09 09 09 09 |ion.= 0L|;.......|
|00002790| 63 69 70 62 2e 68 46 69 | 6c 65 49 6e 66 6f 2e 69 |cipb.hFi|leInfo.i|
|000027a0| 6f 4e 61 6d 65 50 74 72 | 09 3d 20 76 46 4e 61 6d |oNamePtr|.= vFNam|
|000027b0| 65 3b 0d 09 09 09 09 09 | 09 63 69 70 62 2e 68 46 |e;......|.cipb.hF|
|000027c0| 69 6c 65 49 6e 66 6f 2e | 69 6f 56 52 65 66 4e 75 |ileInfo.|ioVRefNu|
|000027d0| 6d 09 3d 20 6c 6f 63 61 | 6c 46 53 53 70 65 63 2e |m.= loca|lFSSpec.|
|000027e0| 76 52 65 66 4e 75 6d 3b | 0d 09 09 09 09 09 09 63 |vRefNum;|.......c|
|000027f0| 69 70 62 2e 68 46 69 6c | 65 49 6e 66 6f 2e 69 6f |ipb.hFil|eInfo.io|
|00002800| 46 44 69 72 49 6e 64 65 | 78 09 3d 20 69 6e 64 65 |FDirInde|x.= inde|
|00002810| 78 3b 09 2f 2a 20 6e 6f | 77 20 75 73 65 20 61 20 |x;./* no|w use a |
|00002820| 72 65 61 6c 20 69 6e 64 | 65 78 20 2a 2f 0d 09 09 |real ind|ex */...|
|00002830| 09 09 09 09 63 69 70 62 | 2e 68 46 69 6c 65 49 6e |....cipb|.hFileIn|
|00002840| 66 6f 2e 69 6f 44 69 72 | 49 44 09 09 3d 20 64 69 |fo.ioDir|ID..= di|
|00002850| 72 49 44 3b 0d 09 09 09 | 09 09 09 65 72 72 20 3d |rID;....|...err =|
|00002860| 20 50 42 47 65 74 43 61 | 74 49 6e 66 6f 53 79 6e | PBGetCa|tInfoSyn|
|00002870| 63 28 26 63 69 70 62 29 | 3b 0d 09 09 09 09 09 09 |c(&cipb)|;.......|
|00002880| 0d 09 09 09 09 09 09 69 | 66 20 28 65 72 72 20 3d |.......i|f (err =|
|00002890| 3d 20 66 6e 66 45 72 72 | 29 20 7b 20 20 2f 2f 20 |= fnfErr|) { // |
|000028a0| 77 65 27 76 65 20 6a 75 | 73 74 20 62 65 65 6e 20 |we've ju|st been |
|000028b0| 64 65 6c 65 74 65 64 0d | 09 09 09 09 09 09 09 69 |deleted.|.......i|
|000028c0| 6e 64 65 78 20 3d 20 6f | 6c 64 49 6e 64 65 78 3b |ndex = o|ldIndex;|
|000028d0| 0d 09 09 09 09 09 09 09 | 66 6f 75 6e 64 50 6f 73 |........|foundPos|
|000028e0| 69 74 69 6f 6e 20 3d 20 | 74 72 75 65 3b 0d 09 09 |ition = |true;...|
|000028f0| 09 09 09 09 09 65 72 72 | 20 3d 20 6e 6f 45 72 72 |.....err| = noErr|
|00002900| 3b 09 2f 2f 20 68 61 76 | 65 20 74 6f 20 72 65 6d |;.// hav|e to rem|
|00002910| 65 6d 62 65 72 20 74 6f | 20 72 65 73 65 74 20 74 |ember to| reset t|
|00002920| 68 69 73 21 0d 09 09 09 | 09 09 09 7d 0d 09 09 09 |his!....|...}....|
|00002930| 09 09 09 0d 09 09 09 09 | 09 2f 2a 09 66 6f 75 6e |........|./*.foun|
|00002940| 64 20 73 61 6d 65 20 66 | 69 6c 65 20 26 20 73 61 |d same f|ile & sa|
|00002950| 6d 65 20 69 6e 64 65 78 | 20 70 6f 73 69 74 69 6f |me index| positio|
|00002960| 6e 20 2a 2f 0d 09 09 09 | 09 09 2f 2a 09 73 6f 20 |n */....|../*.so |
|00002970| 74 72 79 20 74 68 65 20 | 6e 65 78 74 20 69 74 65 |try the |next ite|
|00002980| 6d 20 2a 2f 0d 09 09 09 | 09 09 09 69 66 20 28 28 |m */....|...if ((|
|00002990| 21 66 6f 75 6e 64 50 6f | 73 69 74 69 6f 6e 29 20 |!foundPo|sition) |
|000029a0| 26 26 20 45 71 75 61 6c | 53 74 72 69 6e 67 28 66 |&& Equal|String(f|
|000029b0| 4e 61 6d 65 2c 20 76 46 | 4e 61 6d 65 2c 20 66 61 |Name, vF|Name, fa|
|000029c0| 6c 73 65 2c 20 66 61 6c | 73 65 29 29 20 7b 0d 09 |lse, fal|se)) {..|
|000029d0| 09 09 09 09 09 09 69 6e | 64 65 78 2b 2b 3b 0d 09 |......in|dex++;..|
|000029e0| 09 09 09 09 09 09 66 6f | 75 6e 64 50 6f 73 69 74 |......fo|undPosit|
|000029f0| 69 6f 6e 20 3d 20 74 72 | 75 65 3b 0d 09 09 09 09 |ion = tr|ue;.....|
|00002a00| 09 09 7d 0d 09 09 09 09 | 09 7d 0d 09 09 09 09 7d |..}.....|.}.....}|
|00002a10| 0d 09 09 09 7d 0d 09 09 | 7d 0d 09 7d 0d 09 0d 09 |....}...|}..}....|
|00002a20| 72 65 74 75 72 6e 28 65 | 72 72 29 3b 0d 7d 0d 0d |return(e|rr);.}..|
|00002a30| 2f 2a 0d 09 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |/*..This| routine|
|00002a40| 20 69 73 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 | is call|ed when |
|00002a50| 74 68 65 20 75 73 65 72 | 20 63 68 6f 6f 73 65 73 |the user| chooses|
|00002a60| 20 22 53 65 6c 65 63 74 | 20 46 69 6c 65 c9 22 20 | "Select| File." |
|00002a70| 66 72 6f 6d 20 74 68 65 | 0d 09 46 69 6c 65 20 4d |from the|..File M|
|00002a80| 65 6e 75 2e 0d 09 0d 09 | 43 75 72 72 65 6e 74 6c |enu.....|Currentl|
|00002a90| 79 20 69 74 20 73 69 6d | 70 6c 79 20 63 61 6c 6c |y it sim|ply call|
|00002aa0| 73 20 74 68 65 20 6e 65 | 77 20 53 74 61 6e 64 61 |s the ne|w Standa|
|00002ab0| 72 64 47 65 74 46 69 6c | 65 20 72 6f 75 74 69 6e |rdGetFil|e routin|
|00002ac0| 65 20 74 6f 20 68 61 76 | 65 20 74 68 65 0d 09 75 |e to hav|e the..u|
|00002ad0| 73 65 72 20 73 65 6c 65 | 63 74 20 61 20 73 69 6e |ser sele|ct a sin|
|00002ae0| 67 6c 65 20 66 69 6c 65 | 20 28 61 6e 79 20 74 79 |gle file| (any ty|
|00002af0| 70 65 2c 20 6e 75 6d 54 | 79 70 65 73 20 3d 20 2d |pe, numT|ypes = -|
|00002b00| 31 29 20 61 6e 64 20 74 | 68 65 6e 20 63 61 6c 6c |1) and t|hen call|
|00002b10| 73 20 74 68 65 0d 09 53 | 65 6e 64 4f 44 4f 43 54 |s the..S|endODOCT|
|00002b20| 6f 53 65 6c 66 20 72 6f | 75 74 69 6e 65 20 69 6e |oSelf ro|utine in|
|00002b30| 20 6f 72 64 65 72 20 74 | 6f 20 70 72 6f 63 65 73 | order t|o proces|
|00002b40| 73 20 69 74 2e 20 20 0d | 09 09 09 0d 09 54 68 65 |s it. .|.....The|
|00002b50| 20 72 65 61 73 6f 6e 20 | 77 65 20 73 65 6e 64 20 | reason |we send |
|00002b60| 61 6e 20 6f 64 6f 63 20 | 74 6f 20 6f 75 72 73 65 |an odoc |to ourse|
|00002b70| 6c 76 65 73 20 69 73 20 | 74 77 6f 20 66 6f 6c 64 |lves is |two fold|
|00002b80| 3a 20 31 29 20 69 74 20 | 6b 65 65 70 73 20 74 68 |: 1) it |keeps th|
|00002b90| 65 20 63 6f 64 65 0d 09 | 63 6c 65 61 6e 65 72 20 |e code..|cleaner |
|00002ba0| 61 73 20 61 6c 6c 20 66 | 69 6c 65 20 6f 70 65 6e |as all f|ile open|
|00002bb0| 69 6e 67 73 20 67 6f 20 | 74 68 72 6f 75 67 68 20 |ings go |through |
|00002bc0| 74 68 65 20 73 61 6d 65 | 20 70 72 6f 63 65 73 73 |the same| process|
|00002bd0| 2c 20 61 6e 64 20 32 29 | 20 69 66 20 65 76 65 6e |, and 2)| if even|
|00002be0| 74 73 0d 09 61 72 65 20 | 65 76 65 72 20 72 65 63 |ts..are |ever rec|
|00002bf0| 6f 72 64 61 62 6c 65 2c | 20 74 68 65 20 72 69 67 |ordable,| the rig|
|00002c00| 68 74 20 74 68 69 6e 67 | 73 20 68 61 70 70 65 6e |ht thing|s happen|
|00002c10| 20 28 74 68 69 73 20 69 | 73 20 63 61 6c 6c 65 64 | (this i|s called|
|00002c20| 20 46 61 63 74 6f 72 69 | 6e 67 21 29 0d 0d 09 4d | Factori|ng!)...M|
|00002c30| 6f 64 69 66 69 63 61 74 | 69 6f 6e 20 6f 66 20 74 |odificat|ion of t|
|00002c40| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 6f |his rout|ine to o|
|00002c50| 6e 6c 79 20 73 65 6c 65 | 63 74 20 63 65 72 74 61 |nly sele|ct certa|
|00002c60| 69 6e 20 74 79 70 65 73 | 20 6f 66 20 66 69 6c 65 |in types| of file|
|00002c70| 73 2c 20 73 65 6c 65 63 | 74 69 6f 6e 0d 09 6f 66 |s, selec|tion..of|
|00002c80| 20 6d 75 6c 74 69 70 6c | 65 20 66 69 6c 65 73 2c | multipl|e files,|
|00002c90| 20 61 6e 64 2f 6f 72 20 | 68 61 6e 64 6c 69 6e 67 | and/or |handling|
|00002ca0| 20 6f 66 20 66 6f 6c 64 | 65 72 20 26 20 64 69 73 | of fold|er & dis|
|00002cb0| 6b 20 73 65 6c 65 63 74 | 69 6f 6e 20 69 73 20 6c |k select|ion is l|
|00002cc0| 65 66 74 20 0d 09 61 73 | 20 61 6e 20 65 78 65 72 |eft ..as| an exer|
|00002cd0| 63 69 73 65 20 74 6f 20 | 74 68 65 20 72 65 61 64 |cise to |the read|
|00002ce0| 65 72 2e 0d 2a 2f 0d 70 | 61 73 63 61 6c 20 76 6f |er..*/.p|ascal vo|
|00002cf0| 69 64 20 53 65 6c 65 63 | 74 46 69 6c 65 20 28 76 |id Selec|tFile (v|
|00002d00| 6f 69 64 29 0d 7b 0d 09 | 53 74 61 6e 64 61 72 64 |oid).{..|Standard|
|00002d10| 46 69 6c 65 52 65 70 6c | 79 09 73 74 64 52 65 70 |FileRepl|y.stdRep|
|00002d20| 6c 79 3b 0d 09 53 46 54 | 79 70 65 4c 69 73 74 09 |ly;..SFT|ypeList.|
|00002d30| 09 09 74 68 65 54 79 70 | 65 4c 69 73 74 3b 0d 0d |..theTyp|eList;..|
|00002d40| 09 53 74 61 6e 64 61 72 | 64 47 65 74 46 69 6c 65 |.Standar|dGetFile|
|00002d50| 28 4e 55 4c 4c 2c 20 2d | 31 2c 20 74 68 65 54 79 |(NULL, -|1, theTy|
|00002d60| 70 65 4c 69 73 74 2c 20 | 26 73 74 64 52 65 70 6c |peList, |&stdRepl|
|00002d70| 79 29 3b 0d 09 69 66 20 | 28 73 74 64 52 65 70 6c |y);..if |(stdRepl|
|00002d80| 79 2e 73 66 47 6f 6f 64 | 29 09 2f 2f 20 75 73 65 |y.sfGood|).// use|
|00002d90| 72 20 64 69 64 20 6e 6f | 74 20 63 61 6e 63 65 6c |r did no|t cancel|
|00002da0| 0d 09 09 53 65 6e 64 4f | 44 4f 43 54 6f 53 65 6c |...SendO|DOCToSel|
|00002db0| 66 28 26 73 74 64 52 65 | 70 6c 79 2e 73 66 46 69 |f(&stdRe|ply.sfFi|
|00002dc0| 6c 65 29 3b 09 2f 2f 20 | 73 6f 20 73 65 6e 64 20 |le);.// |so send |
|00002dd0| 6d 65 20 61 6e 20 65 76 | 65 6e 74 21 0d 7d 0d 0d |me an ev|ent!.}..|
|00002de0| 2f 2a 0d 09 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |/*..This| routine|
|00002df0| 20 69 73 20 63 61 6c 6c | 65 64 20 64 75 72 69 6e | is call|ed durin|
|00002e00| 67 20 74 68 65 20 70 72 | 6f 67 72 61 6d 27 73 20 |g the pr|ogram's |
|00002e10| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 61 |initiali|zation a|
|00002e20| 6e 64 20 67 69 76 65 73 | 20 79 6f 75 0d 09 61 20 |nd gives| you..a |
|00002e30| 63 68 61 6e 63 65 20 74 | 6f 20 61 6c 6c 6f 63 61 |chance t|o alloca|
|00002e40| 74 65 20 6f 72 20 69 6e | 69 74 69 61 6c 69 7a 65 |te or in|itialize|
|00002e50| 20 61 6e 79 20 6f 66 20 | 79 6f 75 72 20 6f 77 6e | any of |your own|
|00002e60| 20 67 6c 6f 62 61 6c 73 | 20 74 68 61 74 20 79 6f | globals| that yo|
|00002e70| 75 72 0d 09 64 72 6f 70 | 62 6f 78 20 6e 65 65 64 |ur..drop|box need|
|00002e80| 73 2e 0d 09 0d 09 59 6f | 75 20 72 65 74 75 72 6e |s.....Yo|u return|
|00002e90| 20 61 20 62 6f 6f 6c 65 | 61 6e 20 76 61 6c 75 65 | a boole|an value|
|00002ea0| 20 77 68 69 63 68 20 64 | 65 74 65 72 6d 69 6e 65 | which d|etermine|
|00002eb0| 73 20 69 66 20 79 6f 75 | 20 77 65 72 65 20 73 75 |s if you| were su|
|00002ec0| 63 63 65 73 73 66 75 6c | 2e 0d 09 52 65 74 75 72 |ccessful|...Retur|
|00002ed0| 6e 69 6e 67 20 66 61 6c | 73 65 20 77 69 6c 6c 20 |ning fal|se will |
|00002ee0| 63 61 75 73 65 20 44 72 | 6f 70 53 68 65 6c 6c 20 |cause Dr|opShell |
|00002ef0| 74 6f 20 65 78 69 74 20 | 69 6d 6d 65 64 69 61 74 |to exit |immediat|
|00002f00| 65 6c 79 2e 0d 2a 2f 0d | 70 61 73 63 61 6c 20 42 |ely..*/.|pascal B|
|00002f10| 6f 6f 6c 65 61 6e 20 49 | 6e 69 74 55 73 65 72 47 |oolean I|nitUserG|
|00002f20| 6c 6f 62 61 6c 73 28 76 | 6f 69 64 29 0d 7b 0d 09 |lobals(v|oid).{..|
|00002f30| 72 65 74 75 72 6e 28 74 | 72 75 65 29 3b 09 2f 2f |return(t|rue);.//|
|00002f40| 20 6e 6f 74 68 69 6e 67 | 20 74 6f 20 64 6f 2c 20 | nothing| to do, |
|00002f50| 69 74 20 77 65 20 6d 75 | 73 74 20 62 65 20 73 75 |it we mu|st be su|
|00002f60| 63 63 65 73 73 66 75 6c | 21 0d 7d 0d 0d 2f 2a 0d |ccessful|!.}../*.|
|00002f70| 09 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 69 73 |.This ro|utine is|
|00002f80| 20 63 61 6c 6c 65 64 20 | 64 75 72 69 6e 67 20 74 | called |during t|
|00002f90| 68 65 20 70 72 6f 67 72 | 61 6d 27 73 20 63 6c 65 |he progr|am's cle|
|00002fa0| 61 6e 75 70 20 61 6e 64 | 20 67 69 76 65 73 20 79 |anup and| gives y|
|00002fb0| 6f 75 0d 09 61 20 63 68 | 61 6e 63 65 20 74 6f 20 |ou..a ch|ance to |
|00002fc0| 64 65 61 6c 6c 6f 63 61 | 74 65 20 61 6e 79 20 6f |dealloca|te any o|
|00002fd0| 66 20 79 6f 75 72 20 6f | 77 6e 20 67 6c 6f 62 61 |f your o|wn globa|
|00002fe0| 6c 73 20 74 68 61 74 20 | 79 6f 75 20 61 6c 6c 6f |ls that |you allo|
|00002ff0| 63 61 74 65 64 20 0d 09 | 69 6e 20 74 68 65 20 61 |cated ..|in the a|
|00003000| 62 6f 76 65 20 72 6f 75 | 74 69 6e 65 2e 0d 2a 2f |bove rou|tine..*/|
|00003010| 0d 70 61 73 63 61 6c 20 | 76 6f 69 64 20 44 69 73 |.pascal |void Dis|
|00003020| 70 6f 73 65 55 73 65 72 | 47 6c 6f 62 61 6c 73 28 |poseUser|Globals(|
|00003030| 76 6f 69 64 29 0d 7b 0d | 09 2f 2f 20 6e 6f 74 68 |void).{.|.// noth|
|00003040| 69 6e 67 20 74 6f 20 64 | 6f 20 66 6f 72 20 6f 75 |ing to d|o for ou|
|00003050| 72 20 73 61 6d 70 6c 65 | 20 64 72 6f 70 62 6f 78 |r sample| dropbox|
|00003060| 0d 7d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|00003070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003080| 00 00 01 00 00 00 01 8a | 00 00 00 8a 00 00 00 52 |........|.......R|
|00003090| 01 00 00 0a 1e 2e 03 00 | 00 00 00 01 2d 78 e8 63 |........|....-x.c|
|000030a0| 72 5c 01 03 18 12 1c 2e | 00 13 01 2e 2e 4f 55 cc |r\......|.....OU.|
|000030b0| 0d 44 53 55 73 65 72 50 | 72 6f 63 73 2e 63 02 00 |.DSUserP|rocs.c..|
|000030c0| 00 00 54 45 58 54 52 2a | 63 68 01 00 00 9c 00 40 |..TEXTR*|ch.....@|
|000030d0| 00 00 54 45 58 54 52 2a | 63 68 01 00 00 9c 00 40 |..TEXTR*|ch.....@|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 aa 39 0d 00 00 00 | 2f e3 00 00 01 dc 10 06 |...9....|/.......|
|00003100| 56 90 60 4c 01 ff 82 cc | 96 12 4f ef 00 0c 11 66 |V.`L....|..O....f|
|00003110| 10 57 72 50 01 04 e2 8a | 8d 67 01 66 a0 96 73 01 |.WrP....|.g.f..s.|
|00003120| 18 c0 ca 13 4e 5e 4e 75 | 4e 56 11 fd f0 5c 01 07 |....N^Nu|NV...\..|
|00003130| 18 8c 4d 01 26 6d 11 fe | 0c 51 7e 12 00 92 4e ad |..M.&m..|.Q~...N.|
|00003140| 01 2f ea 56 25 12 01 64 | 4e 91 67 de b4 03 b2 80 |./.V%..d|N.g.....|
|00003150| 57 c0 02 40 66 78 01 1c | 00 76 9a 14 42 10 48 78 |W..@fx..|.v..B.Hx|
|00003160| 0b ea 48 6e 9a 25 12 00 | 54 4e 91 76 11 fe 00 11 |..Hn.%..|TN.v....|
|00003170| 42 10 12 20 54 0c a8 02 | 43 4c 49 50 11 00 54 12 |B.. T...|CLIP..T.|
|00003180| 00 00 00 18 02 00 80 00 | 00 00 03 32 2e 30 0d 44 |........|...2.0.D|
|00003190| 72 6f 70 53 68 65 6c 6c | 20 32 2e 30 00 00 00 48 |ropShell| 2.0...H|
|000031a0| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 06 00 04 00 57 | 00 04 01 ad 02 16 00 57 |.......W|.......W|
|000031d0| 00 04 01 ad 02 16 aa 39 | 0d 00 00 00 2d 21 00 00 |.......9|....-!..|
|000031e0| 2d 5d 00 00 2b 63 01 00 | 00 00 00 1e 00 57 00 04 |-]..+c..|.....W..|
|000031f0| 01 ad 02 16 00 57 00 04 | 01 ad 02 16 00 00 2b 63 |.....W..|......+c|
|00003200| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00003210| 01 8a 00 00 00 8a 00 00 | 00 52 00 73 ac d8 19 58 |........|.R.s...X|
|00003220| 00 00 00 1c 00 52 00 01 | 4d 50 53 52 00 01 00 12 |.....R..|MPSR....|
|00003230| 76 65 72 73 00 00 00 2a | 03 ed ff ff 00 00 00 1c |vers...*|........|
|00003240| 00 00 00 00 03 f0 ff ff | 00 00 00 68 00 74 2c 18 |........|...h.t,.|
|00003250| 00 02 ff ff 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+