home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-12-09 | 4.8 KB | [TEXT/MPS ] |
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, Mon Dec 9 21:55:19 1991, modified Mon Dec 9 21:55:19 1991, creator 'MPS ', type ASCII, 4210 bytes "AEvent.c" , at 0x10f2 428 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 | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 41 45 76 65 6e 74 | 2e 63 00 00 00 00 00 00 |..AEvent|.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 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 10 72 00 | 00 01 ac a5 69 dd 17 a5 |......r.|....i...|
|00000060| 69 dd 17 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |i.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 59 58 00 00 |........|....YX..|
|00000080| 2f 2a 20 a9 20 31 39 39 | 31 2c 20 42 6f 77 65 72 |/* . 199|1, Bower|
|00000090| 73 20 44 65 76 65 6c 6f | 70 6d 65 6e 74 20 43 6f |s Develo|pment Co|
|000000a0| 72 70 2e 20 20 2a 2f 0d | 2f 2a 20 41 45 76 65 6e |rp. */.|/* AEven|
|000000b0| 74 2e 63 20 2a 2f 0d 0d | 23 69 6e 63 6c 75 64 65 |t.c */..|#include|
|000000c0| 20 3c 54 79 70 65 73 2e | 68 3e 0d 23 69 6e 63 6c | <Types.|h>.#incl|
|000000d0| 75 64 65 20 3c 51 75 69 | 63 6b 64 72 61 77 2e 68 |ude <Qui|ckdraw.h|
|000000e0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 43 6f 6e 74 |>.#inclu|de <Cont|
|000000f0| 72 6f 6c 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |rols.h>.|#include|
|00000100| 20 3c 44 69 61 6c 6f 67 | 73 2e 68 3e 0d 23 69 6e | <Dialog|s.h>.#in|
|00000110| 63 6c 75 64 65 20 3c 45 | 76 65 6e 74 73 2e 68 3e |clude <E|vents.h>|
|00000120| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 46 69 6c 65 73 |.#includ|e <Files|
|00000130| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 4c 69 |.h>.#inc|lude <Li|
|00000140| 73 74 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |sts.h>.#|include |
|00000150| 3c 4d 65 6e 75 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |<Menus.h|>.#inclu|
|00000160| 64 65 20 3c 54 65 78 74 | 45 64 69 74 2e 68 3e 0d |de <Text|Edit.h>.|
|00000170| 23 69 6e 63 6c 75 64 65 | 20 3c 41 70 70 6c 65 45 |#include| <AppleE|
|00000180| 76 65 6e 74 73 2e 68 3e | 0d 0d 23 69 6e 63 6c 75 |vents.h>|..#inclu|
|00000190| 64 65 20 22 47 6c 6f 62 | 61 6c 73 2e 68 22 09 0d |de "Glob|als.h"..|
|000001a0| 23 69 6e 63 6c 75 64 65 | 20 22 52 65 73 6f 75 72 |#include| "Resour|
|000001b0| 63 65 44 65 66 73 2e 68 | 22 09 0d 23 69 6e 63 6c |ceDefs.h|"..#incl|
|000001c0| 75 64 65 20 22 4d 69 73 | 63 65 6c 6c 61 6e 79 2e |ude "Mis|cellany.|
|000001d0| 68 22 09 0d 23 69 6e 63 | 6c 75 64 65 20 22 46 69 |h"..#inc|lude "Fi|
|000001e0| 6c 65 4d 2e 68 22 09 0d | 23 69 6e 63 6c 75 64 65 |leM.h"..|#include|
|000001f0| 20 22 41 45 76 65 6e 74 | 2e 68 22 09 0d 0d 23 70 | "AEvent|.h"...#p|
|00000200| 72 61 67 6d 61 20 73 65 | 67 6d 65 6e 74 20 41 45 |ragma se|gment AE|
|00000210| 76 65 6e 74 0d 0d 2f 2a | 2d 2d 2d 2d 2d 2d 2d 2d |vent../*|--------|
|00000220| 2d 2d 2a 2f 0d 76 6f 69 | 64 09 49 6e 69 74 69 61 |--*/.voi|d.Initia|
|00000230| 6c 69 7a 65 41 45 20 28 | 29 0d 7b 0d 09 4f 53 45 |lizeAE (|).{..OSE|
|00000240| 72 72 09 09 09 65 72 72 | 43 6f 64 65 3b 0d 0d 09 |rr...err|Code;...|
|00000250| 65 72 72 43 6f 64 65 20 | 3d 20 41 45 49 6e 73 74 |errCode |= AEInst|
|00000260| 61 6c 6c 45 76 65 6e 74 | 48 61 6e 64 6c 65 72 20 |allEvent|Handler |
|00000270| 28 6b 43 6f 72 65 45 76 | 65 6e 74 43 6c 61 73 73 |(kCoreEv|entClass|
|00000280| 2c 20 6b 41 45 4f 70 65 | 6e 41 70 70 6c 69 63 61 |, kAEOpe|nApplica|
|00000290| 74 69 6f 6e 2c 20 28 45 | 76 65 6e 74 48 61 6e 64 |tion, (E|ventHand|
|000002a0| 6c 65 72 50 72 6f 63 50 | 74 72 29 20 44 6f 41 45 |lerProcP|tr) DoAE|
|000002b0| 4f 70 65 6e 41 70 70 2c | 20 30 2c 20 66 61 6c 73 |OpenApp,| 0, fals|
|000002c0| 65 29 3b 0d 09 65 72 72 | 43 6f 64 65 20 3d 20 41 |e);..err|Code = A|
|000002d0| 45 49 6e 73 74 61 6c 6c | 45 76 65 6e 74 48 61 6e |EInstall|EventHan|
|000002e0| 64 6c 65 72 20 28 6b 43 | 6f 72 65 45 76 65 6e 74 |dler (kC|oreEvent|
|000002f0| 43 6c 61 73 73 2c 20 6b | 41 45 4f 70 65 6e 44 6f |Class, k|AEOpenDo|
|00000300| 63 75 6d 65 6e 74 73 2c | 20 28 45 76 65 6e 74 48 |cuments,| (EventH|
|00000310| 61 6e 64 6c 65 72 50 72 | 6f 63 50 74 72 29 20 44 |andlerPr|ocPtr) D|
|00000320| 6f 41 45 4f 70 65 6e 44 | 6f 63 2c 20 30 2c 20 66 |oAEOpenD|oc, 0, f|
|00000330| 61 6c 73 65 29 3b 0d 09 | 65 72 72 43 6f 64 65 20 |alse);..|errCode |
|00000340| 3d 20 41 45 49 6e 73 74 | 61 6c 6c 45 76 65 6e 74 |= AEInst|allEvent|
|00000350| 48 61 6e 64 6c 65 72 20 | 28 6b 43 6f 72 65 45 76 |Handler |(kCoreEv|
|00000360| 65 6e 74 43 6c 61 73 73 | 2c 20 6b 41 45 50 72 69 |entClass|, kAEPri|
|00000370| 6e 74 44 6f 63 75 6d 65 | 6e 74 73 2c 20 28 45 76 |ntDocume|nts, (Ev|
|00000380| 65 6e 74 48 61 6e 64 6c | 65 72 50 72 6f 63 50 74 |entHandl|erProcPt|
|00000390| 72 29 20 44 6f 41 45 50 | 72 69 6e 74 44 6f 63 2c |r) DoAEP|rintDoc,|
|000003a0| 20 30 2c 20 66 61 6c 73 | 65 29 3b 0d 09 65 72 72 | 0, fals|e);..err|
|000003b0| 43 6f 64 65 20 3d 20 41 | 45 49 6e 73 74 61 6c 6c |Code = A|EInstall|
|000003c0| 45 76 65 6e 74 48 61 6e | 64 6c 65 72 20 28 6b 43 |EventHan|dler (kC|
|000003d0| 6f 72 65 45 76 65 6e 74 | 43 6c 61 73 73 2c 20 6b |oreEvent|Class, k|
|000003e0| 41 45 51 75 69 74 41 70 | 70 6c 69 63 61 74 69 6f |AEQuitAp|plicatio|
|000003f0| 6e 2c 20 28 45 76 65 6e | 74 48 61 6e 64 6c 65 72 |n, (Even|tHandler|
|00000400| 50 72 6f 63 50 74 72 29 | 20 44 6f 41 45 51 75 69 |ProcPtr)| DoAEQui|
|00000410| 74 2c 20 30 2c 20 66 61 | 6c 73 65 29 3b 0d 0d 7d |t, 0, fa|lse);..}|
|00000420| 20 2f 2a 49 6e 69 74 69 | 61 6c 69 7a 65 41 45 2a | /*Initi|alizeAE*|
|00000430| 2f 0d 0d 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |/../*---|-------*|
|00000440| 2f 0d 76 6f 69 64 09 44 | 6f 48 69 67 68 4c 65 76 |/.void.D|oHighLev|
|00000450| 65 6c 45 76 65 6e 74 20 | 28 29 0d 7b 0d 09 4f 53 |elEvent |().{..OS|
|00000460| 45 72 72 09 09 09 65 72 | 72 43 6f 64 65 3b 0d 0d |Err...er|rCode;..|
|00000470| 2f 2a 20 20 63 68 65 63 | 6b 20 74 6f 20 73 65 65 |/* chec|k to see|
|00000480| 20 69 66 20 74 68 65 20 | 41 70 70 6c 65 20 65 76 | if the |Apple ev|
|00000490| 65 6e 74 20 69 73 20 6f | 66 20 61 20 75 73 65 72 |ent is o|f a user|
|000004a0| 2d 64 65 66 69 6e 65 64 | 20 63 6c 61 73 73 3b 20 |-defined| class; |
|000004b0| 20 2a 2f 0d 2f 2a 20 20 | 69 66 20 73 6f 2c 20 68 | */./* |if so, h|
|000004c0| 61 6e 64 6c 65 20 69 74 | 2e 20 4f 74 68 65 72 77 |andle it|. Otherw|
|000004d0| 69 73 65 2c 20 63 61 6c | 6c 20 41 45 50 72 6f 63 |ise, cal|l AEProc|
|000004e0| 65 73 73 41 70 70 6c 65 | 45 76 65 6e 74 2e 09 20 |essApple|Event.. |
|000004f0| 20 20 20 2a 2f 0d 0d 09 | 65 72 72 43 6f 64 65 20 | */...|errCode |
|00000500| 3d 20 41 45 50 72 6f 63 | 65 73 73 41 70 70 6c 65 |= AEProc|essApple|
|00000510| 45 76 65 6e 74 20 28 26 | 63 75 72 45 76 65 6e 74 |Event (&|curEvent|
|00000520| 29 3b 0d 09 69 66 20 28 | 65 72 72 43 6f 64 65 20 |);..if (|errCode |
|00000530| 3d 3d 20 65 72 72 41 45 | 45 76 65 6e 74 4e 6f 74 |== errAE|EventNot|
|00000540| 48 61 6e 64 6c 65 64 29 | 20 7b 0d 2f 2a 3f 3f 09 |Handled)| {./*??.|
|00000550| 09 41 63 6b 6e 6f 77 6c | 65 64 67 65 20 28 43 61 |.Acknowl|edge (Ca|
|00000560| 6e 74 48 61 6e 64 6c 65 | 41 45 56 54 49 44 29 3b |ntHandle|AEVTID);|
|00000570| 09 09 3f 3f 2a 2f 0d 09 | 7d 0d 0d 7d 20 2f 2a 44 |..??*/..|}..} /*D|
|00000580| 6f 48 69 67 68 4c 65 76 | 65 6c 45 76 65 6e 74 2a |oHighLev|elEvent*|
|00000590| 2f 0d 0d 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |/../*---|-------*|
|000005a0| 2f 0d 2f 2a 20 54 68 69 | 73 20 72 6f 75 74 69 6e |/./* Thi|s routin|
|000005b0| 65 20 63 68 65 63 6b 73 | 20 74 6f 20 76 65 72 69 |e checks| to veri|
|000005c0| 66 79 20 74 68 61 74 20 | 74 68 65 20 63 61 6c 6c |fy that |the call|
|000005d0| 65 72 20 68 61 73 20 70 | 72 6f 63 65 73 73 65 64 |er has p|rocessed|
|000005e0| 20 2a 2f 0d 2f 2a 20 61 | 6c 6c 20 6f 66 20 74 68 | */./* a|ll of th|
|000005f0| 65 20 65 76 65 6e 74 27 | 73 20 70 61 72 61 6d 65 |e event'|s parame|
|00000600| 74 65 72 73 2e 20 49 66 | 20 6e 6f 20 70 61 72 61 |ters. If| no para|
|00000610| 6d 65 74 65 72 73 20 61 | 72 65 20 66 6f 75 6e 64 |meters a|re found|
|00000620| 20 2a 2f 0d 2f 2a 20 74 | 68 65 6e 20 69 74 20 72 | */./* t|hen it r|
|00000630| 65 74 75 72 6e 73 20 6e | 6f 45 72 72 2e 20 2a 2f |eturns n|oErr. */|
|00000640| 0d 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |./*-----|-----*/.|
|00000650| 4f 53 45 72 72 09 4d 79 | 47 6f 74 52 65 71 75 69 |OSErr.My|GotRequi|
|00000660| 72 65 64 50 61 72 61 6d | 73 09 28 63 6f 6e 73 74 |redParam|s.(const|
|00000670| 20 41 70 70 6c 65 45 76 | 65 6e 74 09 09 2a 74 68 | AppleEv|ent..*th|
|00000680| 65 45 76 65 6e 74 29 0d | 7b 0d 09 4f 53 45 72 72 |eEvent).|{..OSErr|
|00000690| 09 09 09 65 72 72 43 6f | 64 65 3b 0d 09 53 69 7a |...errCo|de;..Siz|
|000006a0| 65 09 09 09 61 63 74 75 | 61 6c 53 69 7a 65 3b 0d |e...actu|alSize;.|
|000006b0| 09 44 65 73 63 54 79 70 | 65 09 09 72 65 74 75 72 |.DescTyp|e..retur|
|000006c0| 6e 65 64 54 79 70 65 3b | 0d 0d 09 65 72 72 43 6f |nedType;|...errCo|
|000006d0| 64 65 20 3d 20 41 45 47 | 65 74 41 74 74 72 69 62 |de = AEG|etAttrib|
|000006e0| 75 74 65 50 74 72 20 28 | 74 68 65 45 76 65 6e 74 |utePtr (|theEvent|
|000006f0| 2c 20 6b 65 79 4d 69 73 | 73 65 64 4b 65 79 77 6f |, keyMis|sedKeywo|
|00000700| 72 64 41 74 74 72 2c 20 | 74 79 70 65 57 69 6c 64 |rdAttr, |typeWild|
|00000710| 43 61 72 64 2c 0d 09 09 | 09 09 09 09 09 09 09 26 |Card,...|.......&|
|00000720| 72 65 74 75 72 6e 65 64 | 54 79 70 65 2c 20 4e 55 |returned|Type, NU|
|00000730| 4c 4c 2c 20 30 2c 20 26 | 61 63 74 75 61 6c 53 69 |LL, 0, &|actualSi|
|00000740| 7a 65 29 3b 0d 0d 09 69 | 66 20 28 65 72 72 43 6f |ze);...i|f (errCo|
|00000750| 64 65 20 3d 3d 20 65 72 | 72 41 45 44 65 73 63 4e |de == er|rAEDescN|
|00000760| 6f 74 46 6f 75 6e 64 29 | 20 7b 09 09 2f 2a 6e 6f |otFound)| {../*no|
|00000770| 20 70 61 72 61 6d 65 74 | 65 72 73 20 3d 3e 20 6e | paramet|ers => n|
|00000780| 6f 20 65 72 72 6f 72 2a | 2f 0d 09 09 65 72 72 43 |o error*|/...errC|
|00000790| 6f 64 65 20 3d 20 6e 6f | 45 72 72 3b 0d 09 7d 20 |ode = no|Err;..} |
|000007a0| 65 6c 73 65 20 69 66 20 | 28 65 72 72 43 6f 64 65 |else if |(errCode|
|000007b0| 20 3d 3d 20 6e 6f 45 72 | 72 29 20 7b 09 09 09 2f | == noEr|r) {.../|
|000007c0| 2a 67 6f 74 20 61 20 70 | 61 72 61 6d 65 74 65 72 |*got a p|arameter|
|000007d0| 20 3d 3e 20 69 74 20 77 | 61 73 6e 27 74 20 68 61 | => it w|asn't ha|
|000007e0| 6e 64 6c 65 64 2a 2f 0d | 09 09 65 72 72 43 6f 64 |ndled*/.|..errCod|
|000007f0| 65 20 3d 20 65 72 72 41 | 45 45 76 65 6e 74 4e 6f |e = errA|EEventNo|
|00000800| 74 48 61 6e 64 6c 65 64 | 3b 0d 09 7d 09 09 09 09 |tHandled|;..}....|
|00000810| 09 09 09 09 09 09 2f 2a | 41 45 47 65 74 41 74 74 |....../*|AEGetAtt|
|00000820| 72 69 62 75 74 65 50 74 | 72 20 66 61 69 6c 65 64 |ributePt|r failed|
|00000830| 2a 2f 0d 0d 09 72 65 74 | 75 72 6e 20 28 65 72 72 |*/...ret|urn (err|
|00000840| 43 6f 64 65 29 3b 0d 7d | 20 2f 2a 4d 79 47 6f 74 |Code);.}| /*MyGot|
|00000850| 52 65 71 75 69 72 65 64 | 50 61 72 61 6d 73 2a 2f |Required|Params*/|
|00000860| 0d 0d 2f 2a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |../*----|------*/|
|00000870| 0d 70 61 73 63 61 6c 20 | 4f 53 45 72 72 09 44 6f |.pascal |OSErr.Do|
|00000880| 41 45 4f 70 65 6e 41 70 | 70 09 09 28 41 70 70 6c |AEOpenAp|p..(Appl|
|00000890| 65 45 76 65 6e 74 09 09 | 2a 74 68 65 45 76 65 6e |eEvent..|*theEven|
|000008a0| 74 2c 0d 09 09 09 09 09 | 09 09 09 20 41 70 70 6c |t,......|... Appl|
|000008b0| 65 45 76 65 6e 74 09 09 | 2a 72 65 70 6c 79 2c 0d |eEvent..|*reply,.|
|000008c0| 09 09 09 09 09 09 09 09 | 20 6c 6f 6e 67 09 09 09 |........| long...|
|000008d0| 72 65 66 43 6f 6e 29 0d | 7b 0d 23 70 72 61 67 6d |refCon).|{.#pragm|
|000008e0| 61 20 75 6e 75 73 65 64 | 20 28 72 65 70 6c 79 29 |a unused| (reply)|
|000008f0| 0d 23 70 72 61 67 6d 61 | 20 75 6e 75 73 65 64 20 |.#pragma| unused |
|00000900| 28 72 65 66 43 6f 6e 29 | 0d 0d 09 4f 53 45 72 72 |(refCon)|...OSErr|
|00000910| 09 09 09 65 72 72 43 6f | 64 65 3b 0d 0d 09 65 72 |...errCo|de;...er|
|00000920| 72 43 6f 64 65 20 3d 20 | 4d 79 47 6f 74 52 65 71 |rCode = |MyGotReq|
|00000930| 75 69 72 65 64 50 61 72 | 61 6d 73 20 28 74 68 65 |uiredPar|ams (the|
|00000940| 45 76 65 6e 74 29 3b 0d | 09 69 66 20 28 65 72 72 |Event);.|.if (err|
|00000950| 43 6f 64 65 20 3d 3d 20 | 6e 6f 45 72 72 29 20 7b |Code == |noErr) {|
|00000960| 0d 09 09 4f 70 65 6e 41 | 70 70 20 28 29 3b 0d 09 |...OpenA|pp ();..|
|00000970| 7d 0d 0d 09 72 65 74 75 | 72 6e 20 28 65 72 72 43 |}...retu|rn (errC|
|00000980| 6f 64 65 29 3b 0d 7d 20 | 2f 2a 44 6f 41 45 4f 70 |ode);.} |/*DoAEOp|
|00000990| 65 6e 41 70 70 2a 2f 0d | 0d 2f 2a 2d 2d 2d 2d 2d |enApp*/.|./*-----|
|000009a0| 2d 2d 2d 2d 2d 2a 2f 0d | 70 61 73 63 61 6c 20 4f |-----*/.|pascal O|
|000009b0| 53 45 72 72 09 44 6f 41 | 45 4f 70 65 6e 44 6f 63 |SErr.DoA|EOpenDoc|
|000009c0| 09 09 28 41 70 70 6c 65 | 45 76 65 6e 74 09 09 2a |..(Apple|Event..*|
|000009d0| 74 68 65 45 76 65 6e 74 | 2c 0d 09 09 09 09 09 09 |theEvent|,.......|
|000009e0| 09 09 20 41 70 70 6c 65 | 45 76 65 6e 74 09 09 2a |.. Apple|Event..*|
|000009f0| 72 65 70 6c 79 2c 0d 09 | 09 09 09 09 09 09 09 20 |reply,..|....... |
|00000a00| 6c 6f 6e 67 09 09 09 72 | 65 66 43 6f 6e 29 0d 7b |long...r|efCon).{|
|00000a10| 0d 23 70 72 61 67 6d 61 | 20 75 6e 75 73 65 64 20 |.#pragma| unused |
|00000a20| 28 72 65 70 6c 79 29 0d | 23 70 72 61 67 6d 61 20 |(reply).|#pragma |
|00000a30| 75 6e 75 73 65 64 20 28 | 72 65 66 43 6f 6e 29 0d |unused (|refCon).|
|00000a40| 0d 09 4f 53 45 72 72 09 | 09 09 65 72 72 43 6f 64 |..OSErr.|..errCod|
|00000a50| 65 3b 0d 09 4f 53 45 72 | 72 09 09 09 69 67 6e 6f |e;..OSEr|r...igno|
|00000a60| 72 65 45 72 72 3b 0d 09 | 41 45 44 65 73 63 4c 69 |reErr;..|AEDescLi|
|00000a70| 73 74 09 09 64 6f 63 4c | 69 73 74 3b 0d 09 6c 6f |st..docL|ist;..lo|
|00000a80| 6e 67 09 09 09 69 74 65 | 6d 73 49 6e 4c 69 73 74 |ng...ite|msInList|
|00000a90| 3b 0d 09 6c 6f 6e 67 09 | 09 09 69 6e 64 65 78 3b |;..long.|..index;|
|00000aa0| 0d 09 41 45 4b 65 79 77 | 6f 72 64 09 09 6b 65 79 |..AEKeyw|ord..key|
|00000ab0| 77 6f 72 64 3b 0d 09 44 | 65 73 63 54 79 70 65 09 |word;..D|escType.|
|00000ac0| 09 72 65 74 75 72 6e 65 | 64 54 79 70 65 3b 0d 09 |.returne|dType;..|
|00000ad0| 53 69 7a 65 09 09 09 61 | 63 74 75 61 6c 53 69 7a |Size...a|ctualSiz|
|00000ae0| 65 3b 0d 09 46 53 53 70 | 65 63 09 09 09 6d 79 46 |e;..FSSp|ec...myF|
|00000af0| 53 53 3b 0d 09 73 68 6f | 72 74 09 09 09 77 64 52 |SS;..sho|rt...wdR|
|00000b00| 65 66 4e 75 6d 3b 0d 0d | 09 65 72 72 43 6f 64 65 |efNum;..|.errCode|
|00000b10| 20 3d 20 41 45 47 65 74 | 50 61 72 61 6d 44 65 73 | = AEGet|ParamDes|
|00000b20| 63 20 28 74 68 65 45 76 | 65 6e 74 2c 20 6b 65 79 |c (theEv|ent, key|
|00000b30| 44 69 72 65 63 74 4f 62 | 6a 65 63 74 2c 20 74 79 |DirectOb|ject, ty|
|00000b40| 70 65 41 45 4c 69 73 74 | 2c 20 26 64 6f 63 4c 69 |peAEList|, &docLi|
|00000b50| 73 74 29 3b 0d 09 69 66 | 20 28 65 72 72 43 6f 64 |st);..if| (errCod|
|00000b60| 65 20 3d 3d 20 6e 6f 45 | 72 72 29 20 7b 0d 09 09 |e == noE|rr) {...|
|00000b70| 65 72 72 43 6f 64 65 20 | 3d 20 4d 79 47 6f 74 52 |errCode |= MyGotR|
|00000b80| 65 71 75 69 72 65 64 50 | 61 72 61 6d 73 20 28 74 |equiredP|arams (t|
|00000b90| 68 65 45 76 65 6e 74 29 | 3b 0d 09 09 69 66 20 28 |heEvent)|;...if (|
|00000ba0| 65 72 72 43 6f 64 65 20 | 3d 3d 20 6e 6f 45 72 72 |errCode |== noErr|
|00000bb0| 29 20 7b 0d 09 09 09 65 | 72 72 43 6f 64 65 20 3d |) {....e|rrCode =|
|00000bc0| 20 41 45 43 6f 75 6e 74 | 49 74 65 6d 73 20 28 26 | AECount|Items (&|
|00000bd0| 64 6f 63 4c 69 73 74 2c | 20 26 69 74 65 6d 73 49 |docList,| &itemsI|
|00000be0| 6e 4c 69 73 74 29 3b 0d | 09 09 09 69 66 20 28 65 |nList);.|...if (e|
|00000bf0| 72 72 43 6f 64 65 20 3d | 3d 20 6e 6f 45 72 72 29 |rrCode =|= noErr)|
|00000c00| 20 7b 0d 09 09 09 09 66 | 6f 72 20 28 69 6e 64 65 | {.....f|or (inde|
|00000c10| 78 20 3d 20 31 3b 20 69 | 6e 64 65 78 20 3c 3d 20 |x = 1; i|ndex <= |
|00000c20| 69 74 65 6d 73 49 6e 4c | 69 73 74 3b 20 69 6e 64 |itemsInL|ist; ind|
|00000c30| 65 78 2b 2b 29 20 7b 0d | 09 09 09 09 09 65 72 72 |ex++) {.|.....err|
|00000c40| 43 6f 64 65 20 3d 20 41 | 45 47 65 74 4e 74 68 50 |Code = A|EGetNthP|
|00000c50| 74 72 20 28 26 64 6f 63 | 4c 69 73 74 2c 20 69 6e |tr (&doc|List, in|
|00000c60| 64 65 78 2c 20 74 79 70 | 65 46 53 53 2c 20 26 6b |dex, typ|eFSS, &k|
|00000c70| 65 79 77 6f 72 64 2c 0d | 09 09 09 09 09 09 09 26 |eyword,.|.......&|
|00000c80| 72 65 74 75 72 6e 65 64 | 54 79 70 65 2c 20 28 50 |returned|Type, (P|
|00000c90| 74 72 29 20 26 6d 79 46 | 53 53 2c 20 73 69 7a 65 |tr) &myF|SS, size|
|00000ca0| 6f 66 20 28 6d 79 46 53 | 53 29 2c 20 26 61 63 74 |of (myFS|S), &act|
|00000cb0| 75 61 6c 53 69 7a 65 29 | 3b 0d 09 09 09 09 09 69 |ualSize)|;......i|
|00000cc0| 66 20 28 65 72 72 43 6f | 64 65 20 3d 3d 20 6e 6f |f (errCo|de == no|
|00000cd0| 45 72 72 29 20 7b 0d 09 | 09 09 09 09 09 65 72 72 |Err) {..|.....err|
|00000ce0| 43 6f 64 65 20 3d 20 4f | 70 65 6e 57 44 20 28 6d |Code = O|penWD (m|
|00000cf0| 79 46 53 53 2e 76 52 65 | 66 4e 75 6d 2c 20 6d 79 |yFSS.vRe|fNum, my|
|00000d00| 46 53 53 2e 70 61 72 49 | 44 2c 20 30 2c 20 26 77 |FSS.parI|D, 0, &w|
|00000d10| 64 52 65 66 4e 75 6d 29 | 3b 0d 09 09 09 09 09 09 |dRefNum)|;.......|
|00000d20| 69 66 20 28 65 72 72 43 | 6f 64 65 20 3d 3d 20 6e |if (errC|ode == n|
|00000d30| 6f 45 72 72 29 20 7b 0d | 09 09 09 09 09 09 09 4f |oErr) {.|.......O|
|00000d40| 70 65 6e 44 6f 63 20 28 | 6d 79 46 53 53 2e 6e 61 |penDoc (|myFSS.na|
|00000d50| 6d 65 2c 20 77 64 52 65 | 66 4e 75 6d 29 3b 0d 09 |me, wdRe|fNum);..|
|00000d60| 09 09 09 09 09 7d 0d 09 | 09 09 09 09 7d 0d 09 09 |.....}..|....}...|
|00000d70| 09 09 7d 20 2f 2a 66 6f | 72 2a 2f 0d 09 09 09 7d |..} /*fo|r*/....}|
|00000d80| 0d 09 09 7d 0d 09 09 69 | 67 6e 6f 72 65 45 72 72 |...}...i|gnoreErr|
|00000d90| 20 3d 20 41 45 44 69 73 | 70 6f 73 65 44 65 73 63 | = AEDis|poseDesc|
|00000da0| 20 28 26 64 6f 63 4c 69 | 73 74 29 3b 0d 09 7d 0d | (&docLi|st);..}.|
|00000db0| 0d 09 72 65 74 75 72 6e | 20 28 65 72 72 43 6f 64 |..return| (errCod|
|00000dc0| 65 29 3b 0d 7d 20 2f 2a | 44 6f 41 45 4f 70 65 6e |e);.} /*|DoAEOpen|
|00000dd0| 44 6f 63 2a 2f 0d 0d 2f | 2a 2d 2d 2d 2d 2d 2d 2d |Doc*/../|*-------|
|00000de0| 2d 2d 2d 2a 2f 0d 70 61 | 73 63 61 6c 20 4f 53 45 |---*/.pa|scal OSE|
|00000df0| 72 72 09 44 6f 41 45 50 | 72 69 6e 74 44 6f 63 09 |rr.DoAEP|rintDoc.|
|00000e00| 28 41 70 70 6c 65 45 76 | 65 6e 74 09 09 2a 74 68 |(AppleEv|ent..*th|
|00000e10| 65 45 76 65 6e 74 2c 0d | 09 09 09 09 09 09 09 09 |eEvent,.|........|
|00000e20| 20 41 70 70 6c 65 45 76 | 65 6e 74 09 09 2a 72 65 | AppleEv|ent..*re|
|00000e30| 70 6c 79 2c 0d 09 09 09 | 09 09 09 09 09 20 6c 6f |ply,....|..... lo|
|00000e40| 6e 67 09 09 09 72 65 66 | 43 6f 6e 29 0d 7b 0d 23 |ng...ref|Con).{.#|
|00000e50| 70 72 61 67 6d 61 20 75 | 6e 75 73 65 64 20 28 72 |pragma u|nused (r|
|00000e60| 65 70 6c 79 29 0d 23 70 | 72 61 67 6d 61 20 75 6e |eply).#p|ragma un|
|00000e70| 75 73 65 64 20 28 72 65 | 66 43 6f 6e 29 0d 0d 09 |used (re|fCon)...|
|00000e80| 4f 53 45 72 72 09 09 09 | 65 72 72 43 6f 64 65 3b |OSErr...|errCode;|
|00000e90| 0d 0d 09 65 72 72 43 6f | 64 65 20 3d 20 4d 79 47 |...errCo|de = MyG|
|00000ea0| 6f 74 52 65 71 75 69 72 | 65 64 50 61 72 61 6d 73 |otRequir|edParams|
|00000eb0| 20 28 74 68 65 45 76 65 | 6e 74 29 3b 0d 09 69 66 | (theEve|nt);..if|
|00000ec0| 20 28 65 72 72 43 6f 64 | 65 20 3d 3d 20 6e 6f 45 | (errCod|e == noE|
|00000ed0| 72 72 29 20 7b 0d 2f 2a | 3f 3f 09 09 41 63 6b 6e |rr) {./*|??..Ackn|
|00000ee0| 6f 77 6c 65 64 67 65 20 | 28 43 61 6e 74 50 72 69 |owledge |(CantPri|
|00000ef0| 6e 74 49 44 29 3b 09 3f | 3f 2a 2f 0d 09 7d 0d 0d |ntID);.?|?*/..}..|
|00000f00| 09 72 65 74 75 72 6e 20 | 28 65 72 72 43 6f 64 65 |.return |(errCode|
|00000f10| 29 3b 0d 7d 20 2f 2a 44 | 6f 41 45 50 72 69 6e 74 |);.} /*D|oAEPrint|
|00000f20| 44 6f 63 2a 2f 0d 0d 2f | 2a 2d 2d 2d 2d 2d 2d 2d |Doc*/../|*-------|
|00000f30| 2d 2d 2d 2a 2f 0d 70 61 | 73 63 61 6c 20 4f 53 45 |---*/.pa|scal OSE|
|00000f40| 72 72 09 44 6f 41 45 51 | 75 69 74 09 09 28 41 70 |rr.DoAEQ|uit..(Ap|
|00000f50| 70 6c 65 45 76 65 6e 74 | 09 09 2a 74 68 65 45 76 |pleEvent|..*theEv|
|00000f60| 65 6e 74 2c 0d 09 09 09 | 09 09 09 09 09 20 41 70 |ent,....|..... Ap|
|00000f70| 70 6c 65 45 76 65 6e 74 | 09 09 2a 72 65 70 6c 79 |pleEvent|..*reply|
|00000f80| 2c 0d 09 09 09 09 09 09 | 09 09 20 6c 6f 6e 67 09 |,.......|.. long.|
|00000f90| 09 09 72 65 66 43 6f 6e | 29 0d 7b 0d 23 70 72 61 |..refCon|).{.#pra|
|00000fa0| 67 6d 61 20 75 6e 75 73 | 65 64 20 28 72 65 70 6c |gma unus|ed (repl|
|00000fb0| 79 29 0d 23 70 72 61 67 | 6d 61 20 75 6e 75 73 65 |y).#prag|ma unuse|
|00000fc0| 64 20 28 72 65 66 43 6f | 6e 29 0d 0d 09 4f 53 45 |d (refCo|n)...OSE|
|00000fd0| 72 72 09 09 09 65 72 72 | 43 6f 64 65 3b 0d 0d 09 |rr...err|Code;...|
|00000fe0| 65 72 72 43 6f 64 65 20 | 3d 20 4d 79 47 6f 74 52 |errCode |= MyGotR|
|00000ff0| 65 71 75 69 72 65 64 50 | 61 72 61 6d 73 20 28 74 |equiredP|arams (t|
|00001000| 68 65 45 76 65 6e 74 29 | 3b 0d 09 69 66 20 28 65 |heEvent)|;..if (e|
|00001010| 72 72 43 6f 64 65 20 3d | 3d 20 6e 6f 45 72 72 29 |rrCode =|= noErr)|
|00001020| 20 7b 0d 09 09 44 6f 51 | 75 69 74 20 28 29 3b 0d | {...DoQ|uit ();.|
|00001030| 09 7d 0d 0d 09 72 65 74 | 75 72 6e 20 28 65 72 72 |.}...ret|urn (err|
|00001040| 43 6f 64 65 29 3b 0d 7d | 20 2f 2a 44 6f 41 45 51 |Code);.}| /*DoAEQ|
|00001050| 75 69 74 2a 2f 0d 0d 2f | 2a 2d 2d 2d 2d 2d 2d 2d |uit*/../|*-------|
|00001060| 2d 2d 2d 2a 2f 0d 2f 2a | 20 41 64 64 20 61 6e 20 |---*/./*| Add an |
|00001070| 49 6e 74 65 72 61 63 74 | 57 69 74 68 55 73 65 72 |Interact|WithUser|
|00001080| 20 61 73 20 61 6e 20 65 | 78 61 6d 70 6c 65 20 6f | as an e|xample o|
|00001090| 66 20 68 6f 77 20 69 74 | 20 69 73 20 64 6f 6e 65 |f how it| is done|
|000010a0| 2e 2a 2f 0d 2f 2a 09 49 | 6e 63 6c 75 64 65 20 61 |.*/./*.I|nclude a|
|000010b0| 6e 20 49 64 6c 65 50 72 | 6f 63 20 77 68 69 63 68 |n IdlePr|oc which|
|000010c0| 20 75 70 64 61 74 65 73 | 20 77 69 6e 64 6f 77 73 | updates| windows|
|000010d0| 20 69 6e 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 | in the |backgrou|
|000010e0| 6e 64 2e 2a 2f 0d 0d 2f | 2a 41 45 76 65 6e 74 2a |nd.*/../|*AEvent*|
|000010f0| 2f 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00001100| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001110| 46 6c 73 3a 20 49 4e 54 | 45 47 45 52 3b 0d 20 20 |Fls: INT|EGER;. |
|00001120| 20 20 20 20 20 20 69 6f | 56 42 69 74 4d 61 70 3a | io|VBitMap:|
|00001130| 08 41 45 76 65 6e 74 2e | 63 00 02 00 00 00 54 45 |.AEvent.|c.....TE|
|00001140| 58 54 4d 50 53 20 40 00 | 00 00 00 00 00 00 00 00 |XTMPS @.|........|
|00001150| 00 00 54 45 58 54 4d 50 | 53 20 40 00 00 00 00 00 |..TEXTMP|S @.....|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 a4 fb df 19 00 00 | 00 00 00 00 01 ac 6f 56 |........|......oV|
|00001180| 41 6c 42 6c 6b 53 69 7a | 3a 20 4c 4f 4e 47 49 4e |AlBlkSiz|: LONGIN|
|00001190| 54 3b 0d 20 20 20 20 20 | 20 20 20 69 6f 56 43 6c |T;. | ioVCl|
|000011a0| 70 53 69 7a 3a 20 4c 4f | 4e 47 49 4e 54 3b 0d 20 |pSiz: LO|NGINT;. |
|000011b0| 20 20 20 20 20 20 20 69 | 6f 41 6c 42 6c 53 74 3a | i|oAlBlSt:|
|000011c0| 20 49 4e 54 45 47 45 52 | 3b 0d 20 20 20 20 20 20 | INTEGER|;. |
|000011d0| 20 20 69 6f 56 4e 78 74 | 43 4e 49 44 3a 20 4c 4f | ioVNxt|CNID: LO|
|000011e0| 4e 47 49 4e 54 3b 0d 20 | 20 20 20 20 20 20 20 69 |NGINT;. | i|
|000011f0| 6f 56 46 72 42 6c 6b 3a | 20 49 4e 54 45 47 45 52 |oVFrBlk:| INTEGER|
|00001200| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2f 0d 0d |...H..Mo|naco./..|
|00001210| 23 69 6e 63 6c 75 64 65 | 20 3c 54 79 70 65 73 2e |#include| <Types.|
|00001220| 68 3e 0d 23 69 6e 00 06 | 00 04 00 2c 00 05 01 a2 |h>.#in..|...,....|
|00001230| 02 22 00 2c 00 05 01 a2 | 02 22 a5 69 96 c7 00 00 |.".,....|.".i....|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00001250| 00 2c 00 05 01 a2 02 22 | 00 2c 00 05 01 a2 02 22 |.,....."|.,....."|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 4d |.....n..|.n...>.M|
|00001280| f2 74 0a 4a 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.t.J....|.>..MPSR|
|00001290| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 03 f0 ff ff 00 00 00 4c | 00 4f f1 94 00 00 00 00 |.......L|.O......|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+