/ The Macintosh Demo: Applications
/ Apple-MacintoshDemoApplicationsCD-1.0-1992.iso / More Information / Personal Press 2.0 / PPPouch / AutoCreate / Calendars / _Utility ![]() | < prev | next > |
MacBinary | 1992-06-08 | 2.6 KB | [SGPA/SCPG] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
100% | file | MacBinary II, inited, Sun Jun 7 20:00:00 1992, modified Sun Jun 7 20:00:00 1992, creator 'SCPG', type 'SGPA', 1942 bytes "_Utility" , at 0x816 399 bytes resource | default (weak) | |
99% | file | data | default | |
100% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [SGPA] |
macFileCreator | [SCPG] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 5f 55 74 69 6c 69 | 74 79 00 00 00 00 00 00 |.._Utili|ty......|
|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 53 47 50 41 53 43 50 | 47 01 00 00 00 00 00 00 |.SGPASCP|G.......|
|00000050| 00 00 00 00 00 07 96 00 | 00 01 8f a6 58 53 80 a6 |........|....XS..|
|00000060| 58 53 80 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |XS......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 39 46 00 00 |........|....9F..|
|00000080| 66 75 6e 63 74 69 6f 6e | 20 68 69 6c 69 74 65 64 |function| hilited|
|00000090| 20 73 74 72 0d 72 65 74 | 75 72 6e 20 63 68 61 72 | str.ret|urn char|
|000000a0| 20 34 20 6f 66 20 73 74 | 72 20 3d 20 22 73 22 0d | 4 of st|r = "s".|
|000000b0| 65 6e 64 20 68 69 6c 69 | 74 65 64 0d 0d 66 75 6e |end hili|ted..fun|
|000000c0| 63 74 69 6f 6e 20 63 6f | 6e 74 65 6e 74 73 6f 66 |ction co|ntentsof|
|000000d0| 20 73 74 72 0d 67 65 74 | 20 69 74 65 6d 64 65 6c | str.get| itemdel|
|000000e0| 0d 73 65 74 20 69 74 65 | 6d 64 65 6c 20 74 6f 20 |.set ite|mdel to |
|000000f0| 22 5c 22 0d 70 75 74 20 | 69 74 65 6d 20 32 20 6f |"\".put |item 2 o|
|00000100| 66 20 73 74 72 20 69 6e | 74 6f 20 74 65 6d 70 0d |f str in|to temp.|
|00000110| 73 65 74 20 69 74 65 6d | 64 65 6c 20 74 6f 20 69 |set item|del to i|
|00000120| 74 0d 72 65 74 75 72 6e | 20 74 65 6d 70 0d 65 6e |t.return| temp.en|
|00000130| 64 20 63 6f 6e 74 65 6e | 74 73 6f 66 0d 0d 66 75 |d conten|tsof..fu|
|00000140| 6e 63 74 69 6f 6e 20 74 | 72 75 6e 63 74 65 78 74 |nction t|runctext|
|00000150| 20 73 74 72 2c 20 6d 61 | 78 0d 69 66 20 6c 65 6e | str, ma|x.if len|
|00000160| 67 74 68 28 73 74 72 29 | 20 3e 20 6d 61 78 20 74 |gth(str)| > max t|
|00000170| 68 65 6e 20 70 75 74 20 | 63 68 61 72 20 31 20 74 |hen put |char 1 t|
|00000180| 6f 20 28 6d 61 78 2d 31 | 29 20 6f 66 20 73 74 72 |o (max-1|) of str|
|00000190| 26 22 c9 22 20 69 6e 74 | 6f 20 73 74 72 0d 72 65 |&"." int|o str.re|
|000001a0| 74 75 72 6e 20 73 74 72 | 0d 65 6e 64 20 74 72 75 |turn str|.end tru|
|000001b0| 6e 63 74 65 78 74 0d 0d | 66 75 6e 63 74 69 6f 6e |nctext..|function|
|000001c0| 20 62 75 69 6c 64 73 74 | 6f 72 79 64 61 79 73 20 | buildst|orydays |
|000001d0| 74 68 65 44 61 74 65 49 | 74 65 6d 73 0d 2d 2d 20 |theDateI|tems.-- |
|000001e0| 66 75 6e 63 74 69 6f 6e | 20 66 6f 72 20 66 69 6c |function| for fil|
|000001f0| 6c 69 6e 67 20 22 64 61 | 79 73 22 20 73 74 6f 72 |ling "da|ys" stor|
|00000200| 79 20 77 69 74 68 20 63 | 75 72 72 65 6e 74 20 6d |y with c|urrent m|
|00000210| 6f 6e 74 68 0d 2d 2d 20 | 75 73 65 3a 20 70 75 74 |onth.-- |use: put|
|00000220| 20 62 75 69 6c 64 73 74 | 6f 72 79 64 61 79 73 28 | buildst|orydays(|
|00000230| 74 68 65 44 61 74 65 49 | 74 65 6d 73 29 20 69 6e |theDateI|tems) in|
|00000240| 74 6f 20 73 74 6f 72 79 | 20 22 64 61 79 73 22 0d |to story| "days".|
|00000250| 70 75 74 20 62 6c 61 6e | 6b 64 61 79 73 28 74 68 |put blan|kdays(th|
|00000260| 65 44 61 74 65 49 74 65 | 6d 73 2c 31 32 29 20 69 |eDateIte|ms,12) i|
|00000270| 6e 74 6f 20 74 65 6d 70 | 0d 72 65 70 65 61 74 20 |nto temp|.repeat |
|00000280| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 6d 6f |with i =| 1 to mo|
|00000290| 6e 74 68 64 61 79 73 28 | 74 68 65 44 61 74 65 49 |nthdays(|theDateI|
|000002a0| 74 65 6d 73 29 0d 69 66 | 20 28 69 20 3e 20 31 29 |tems).if| (i > 1)|
|000002b0| 20 74 68 65 6e 20 70 75 | 74 20 6e 75 6d 74 6f 63 | then pu|t numtoc|
|000002c0| 68 61 72 28 31 32 29 20 | 61 66 74 65 72 20 74 65 |har(12) |after te|
|000002d0| 6d 70 0d 70 75 74 20 69 | 20 61 66 74 65 72 20 74 |mp.put i| after t|
|000002e0| 65 6d 70 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |emp.end |repeat.r|
|000002f0| 65 74 75 72 6e 20 74 65 | 6d 70 0d 65 6e 64 20 62 |eturn te|mp.end b|
|00000300| 75 69 6c 64 73 74 6f 72 | 79 64 61 79 73 0d 0d 66 |uildstor|ydays..f|
|00000310| 75 6e 63 74 69 6f 6e 20 | 62 75 69 6c 64 74 61 62 |unction |buildtab|
|00000320| 64 61 79 73 20 74 68 65 | 44 61 74 65 49 74 65 6d |days the|DateItem|
|00000330| 73 0d 2d 2d 20 66 75 6e | 63 74 69 6f 6e 20 66 6f |s.-- fun|ction fo|
|00000340| 72 20 66 69 6c 6c 69 6e | 67 20 22 6e 65 78 74 20 |r fillin|g "next |
|00000350| 6d 6f 6e 74 68 22 20 61 | 6e 64 0d 2d 2d 20 22 70 |month" a|nd.-- "p|
|00000360| 72 65 76 20 6d 6f 6e 74 | 68 22 20 73 74 6f 72 69 |rev mont|h" stori|
|00000370| 65 73 20 77 69 74 68 20 | 63 75 72 72 65 6e 74 20 |es with |current |
|00000380| 6d 6f 6e 74 68 2e 0d 2d | 2d 20 75 73 65 3a 20 70 |month..-|- use: p|
|00000390| 75 74 20 62 75 69 6c 64 | 74 61 62 64 61 79 73 28 |ut build|tabdays(|
|000003a0| 74 68 65 4d 6f 6e 74 68 | 29 20 69 6e 74 6f 20 73 |theMonth|) into s|
|000003b0| 74 6f 72 79 20 22 70 72 | 65 76 7c 6e 65 78 74 20 |tory "pr|ev|next |
|000003c0| 6d 6f 6e 74 68 22 0d 70 | 75 74 20 62 6c 61 6e 6b |month".p|ut blank|
|000003d0| 64 61 79 73 28 74 68 65 | 44 61 74 65 49 74 65 6d |days(the|DateItem|
|000003e0| 73 2c 63 68 61 72 74 6f | 6e 75 6d 28 74 61 62 29 |s,charto|num(tab)|
|000003f0| 29 20 69 6e 74 6f 20 74 | 65 6d 70 0d 70 75 74 20 |) into t|emp.put |
|00000400| 6c 65 6e 67 74 68 28 74 | 65 6d 70 29 20 69 6e 74 |length(t|emp) int|
|00000410| 6f 20 64 61 79 4e 75 6d | 0d 72 65 70 65 61 74 20 |o dayNum|.repeat |
|00000420| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 6d 6f |with i =| 1 to mo|
|00000430| 6e 74 68 64 61 79 73 28 | 74 68 65 44 61 74 65 49 |nthdays(|theDateI|
|00000440| 74 65 6d 73 29 0d 61 64 | 64 20 31 20 74 6f 20 64 |tems).ad|d 1 to d|
|00000450| 61 79 4e 75 6d 0d 69 66 | 20 28 69 20 3e 20 31 29 |ayNum.if| (i > 1)|
|00000460| 20 74 68 65 6e 0d 69 66 | 20 28 64 61 79 4e 75 6d | then.if| (dayNum|
|00000470| 20 3c 3d 20 37 29 20 74 | 68 65 6e 20 70 75 74 20 | <= 7) t|hen put |
|00000480| 74 61 62 20 61 66 74 65 | 72 20 74 65 6d 70 0d 65 |tab afte|r temp.e|
|00000490| 6c 73 65 0d 70 75 74 20 | 72 65 74 75 72 6e 20 61 |lse.put |return a|
|000004a0| 66 74 65 72 20 74 65 6d | 70 0d 70 75 74 20 31 20 |fter tem|p.put 1 |
|000004b0| 69 6e 74 6f 20 64 61 79 | 4e 75 6d 0d 65 6e 64 20 |into day|Num.end |
|000004c0| 69 66 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 69 20 |if.end i|f.put i |
|000004d0| 61 66 74 65 72 20 74 65 | 6d 70 0d 65 6e 64 20 72 |after te|mp.end r|
|000004e0| 65 70 65 61 74 0d 72 65 | 74 75 72 6e 20 74 65 6d |epeat.re|turn tem|
|000004f0| 70 0d 65 6e 64 20 62 75 | 69 6c 64 74 61 62 64 61 |p.end bu|ildtabda|
|00000500| 79 73 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 62 6c 61 |ys..func|tion bla|
|00000510| 6e 6b 64 61 79 73 20 74 | 68 65 44 61 74 65 49 74 |nkdays t|heDateIt|
|00000520| 65 6d 73 2c 64 65 6c 69 | 6d 0d 2d 2d 20 67 65 74 |ems,deli|m.-- get|
|00000530| 20 64 61 74 65 28 6c 6f | 6e 67 29 0d 2d 2d 20 63 | date(lo|ng).-- c|
|00000540| 6f 6e 76 65 72 74 20 69 | 74 20 74 6f 20 64 61 74 |onvert i|t to dat|
|00000550| 65 69 74 65 6d 73 0d 70 | 75 74 20 31 20 69 6e 74 |eitems.p|ut 1 int|
|00000560| 6f 20 69 74 65 6d 20 33 | 20 6f 66 20 74 68 65 44 |o item 3| of theD|
|00000570| 61 74 65 49 74 65 6d 73 | 0d 63 6f 6e 76 65 72 74 |ateItems|.convert|
|00000580| 20 74 68 65 44 61 74 65 | 49 74 65 6d 73 20 74 6f | theDate|Items to|
|00000590| 20 6c 6f 6e 67 20 64 61 | 74 65 0d 63 6f 6e 76 65 | long da|te.conve|
|000005a0| 72 74 20 74 68 65 44 61 | 74 65 49 74 65 6d 73 20 |rt theDa|teItems |
|000005b0| 74 6f 20 64 61 74 65 69 | 74 65 6d 73 0d 70 75 74 |to datei|tems.put|
|000005c0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 74 65 6d 70 | empty i|nto temp|
|000005d0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|000005e0| 20 31 20 74 6f 20 28 28 | 69 74 65 6d 20 37 20 6f | 1 to ((|item 7 o|
|000005f0| 66 20 74 68 65 44 61 74 | 65 49 74 65 6d 73 29 20 |f theDat|eItems) |
|00000600| 2d 20 31 29 0d 70 75 74 | 20 6e 75 6d 74 6f 63 68 |- 1).put| numtoch|
|00000610| 61 72 28 64 65 6c 69 6d | 29 20 61 66 74 65 72 20 |ar(delim|) after |
|00000620| 74 65 6d 70 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |temp.end| repeat.|
|00000630| 72 65 74 75 72 6e 20 74 | 65 6d 70 0d 65 6e 64 20 |return t|emp.end |
|00000640| 62 6c 61 6e 6b 64 61 79 | 73 0d 0d 66 75 6e 63 74 |blankday|s..funct|
|00000650| 69 6f 6e 20 6d 6f 6e 74 | 68 64 61 79 73 20 74 68 |ion mont|hdays th|
|00000660| 65 44 61 74 65 49 74 65 | 6d 73 0d 69 66 20 69 74 |eDateIte|ms.if it|
|00000670| 65 6d 20 32 20 6f 66 20 | 74 68 65 44 61 74 65 49 |em 2 of |theDateI|
|00000680| 74 65 6d 73 20 3d 20 32 | 20 74 68 65 6e 0d 69 66 |tems = 2| then.if|
|00000690| 20 28 28 28 69 74 65 6d | 20 31 20 6f 66 20 74 68 | (((item| 1 of th|
|000006a0| 65 44 61 74 65 49 74 65 | 6d 73 29 20 6d 6f 64 20 |eDateIte|ms) mod |
|000006b0| 34 29 20 3d 20 30 29 20 | c2 0d 61 6e 64 20 28 28 |4) = 0) |..and ((|
|000006c0| 28 69 74 65 6d 20 31 20 | 6f 66 20 74 68 65 44 61 |(item 1 |of theDa|
|000006d0| 74 65 49 74 65 6d 73 29 | 20 6d 6f 64 20 31 30 30 |teItems)| mod 100|
|000006e0| 29 20 3c 3e 20 30 29 20 | c2 0d 61 6e 64 20 28 28 |) <> 0) |..and ((|
|000006f0| 28 69 74 65 6d 20 31 20 | 6f 66 20 74 68 65 44 61 |(item 1 |of theDa|
|00000700| 74 65 49 74 65 6d 73 29 | 20 6d 6f 64 20 34 30 30 |teItems)| mod 400|
|00000710| 29 20 3c 3e 20 30 29 20 | 74 68 65 6e 20 72 65 74 |) <> 0) |then ret|
|00000720| 75 72 6e 20 32 39 0d 65 | 6c 73 65 20 72 65 74 75 |urn 29.e|lse retu|
|00000730| 72 6e 20 32 38 0d 65 6e | 64 20 69 66 0d 70 75 74 |rn 28.en|d if.put|
|00000740| 20 74 68 65 44 61 74 65 | 49 74 65 6d 73 20 69 6e | theDate|Items in|
|00000750| 74 6f 20 74 65 6d 70 0d | 70 75 74 20 33 31 20 69 |to temp.|put 31 i|
|00000760| 6e 74 6f 20 69 74 65 6d | 20 33 20 6f 66 20 74 65 |nto item| 3 of te|
|00000770| 6d 70 0d 63 6f 6e 76 65 | 72 74 20 74 65 6d 70 20 |mp.conve|rt temp |
|00000780| 74 6f 20 6c 6f 6e 67 20 | 64 61 74 65 0d 63 6f 6e |to long |date.con|
|00000790| 76 65 72 74 20 74 65 6d | 70 20 74 6f 20 64 61 74 |vert tem|p to dat|
|000007a0| 65 69 74 65 6d 73 0d 69 | 66 20 69 74 65 6d 20 32 |eitems.i|f item 2|
|000007b0| 20 6f 66 20 74 68 65 44 | 61 74 65 49 74 65 6d 73 | of theD|ateItems|
|000007c0| 20 3c 3e 20 69 74 65 6d | 20 32 20 6f 66 20 74 65 | <> item| 2 of te|
|000007d0| 6d 70 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 33 |mp then |return 3|
|000007e0| 30 0d 65 6c 73 65 20 72 | 65 74 75 72 6e 20 33 31 |0.else r|eturn 31|
|000007f0| 0d 65 6e 64 20 6d 6f 6e | 74 68 64 61 79 73 0d 00 |.end mon|thdays..|
|00000800| 00 04 00 09 00 02 04 8f | 01 4c 00 00 00 00 00 3c |........|.L.....<|
|00000810| 00 14 01 42 01 ec 00 00 | 00 00 00 00 00 00 00 00 |...B....|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 53 | 00 00 00 53 00 00 00 3c |.......S|...S...<|
|00000890| 20 69 6e 74 6f 20 76 4e | 65 77 59 6f 72 6b 0d 65 | into vN|ewYork.e|
|000008a0| 6c 73 65 20 70 75 74 20 | 22 47 65 6e 65 76 61 22 |lse put |"Geneva"|
|000008b0| 08 5f 55 74 69 6c 69 74 | 79 00 02 00 00 00 53 47 |._Utilit|y.....SG|
|000008c0| 50 41 53 43 50 47 01 00 | 00 9c 01 00 00 00 00 00 |PASCPG..|........|
|000008d0| 00 00 53 47 50 41 53 43 | 50 47 01 00 00 9c 01 00 |..SGPASC|PG......|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 a6 58 53 80 00 00 | 07 96 00 00 01 8f 76 48 |...XS...|......vH|
|00000900| 65 6c 76 65 74 69 63 61 | 0d 65 6c 73 65 20 70 75 |elvetica|.else pu|
|00000910| 74 20 22 47 65 6e 65 76 | 61 22 20 69 6e 74 6f 20 |t "Genev|a" into |
|00000920| 76 48 65 6c 76 65 74 69 | 63 61 0d 69 66 20 73 79 |vHelveti|ca.if sy|
|00000930| 73 74 65 6d 66 6f 6e 74 | 73 20 63 6f 6e 74 61 69 |stemfont|s contai|
|00000940| 6e 73 20 22 54 69 6d 65 | 73 22 20 74 68 65 6e 20 |ns "Time|s" then |
|00000950| 70 75 74 20 22 54 69 6d | 65 73 22 20 69 6e 74 6f |put "Tim|es" into|
|00000960| 20 76 54 69 6d 65 73 0d | 65 6c 73 65 20 70 75 74 | vTimes.|else put|
|00000970| 20 76 4e 65 77 59 6f 72 | 6b 20 69 6e 74 6f 20 76 | vNewYor|k into v|
|00000980| 00 00 00 4f 18 d9 2a 62 | 3f e5 32 30 00 04 00 00 |...O..*b|?.20....|
|00000990| 00 00 00 00 00 00 a6 2d | 74 f7 a6 2d 74 f7 a5 ff |.......-|t..-t...|
|000009a0| 6b 8a 00 56 38 82 00 03 | 00 09 00 03 0a 63 61 6c |k..V8...|.....cal|
|000009b0| 65 6e 64 61 72 73 ba 00 | 07 73 74 65 76 65 20 63 |endars..|.steve c|
|000009c0| 00 01 32 00 08 5f 55 74 | 69 6c 69 74 79 00 00 00 |..2.._Ut|ility...|
|000009d0| 00 00 00 00 00 01 00 00 | 00 01 53 00 00 00 53 00 |........|..S...S.|
|000009e0| 00 00 3c 01 0d 2c f0 0d | 98 00 00 00 1c 00 32 00 |..<..,..|......2.|
|000009f0| 00 63 6b 69 64 00 00 00 | 0a 00 80 00 00 00 00 00 |.ckid...|........|
|00000a00| 00 01 0f 12 a0 09 50 72 | 6f 6a 65 63 74 6f 72 00 |......Pr|ojector.|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+