[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleWorks 5.1 Desktop Calendar Patch



              APPLEWORKS DESKTOP CALENDAR YEAR 2001 COMMAND PATCH
                   for The AppleWorks Gazettes' Calendar Init
                                 December 5, 2000

INTRO
--------------------

Christian Serreau, for the AppleWorks Gazette, published an AppleWorks
'Init' that enables the <OA-Q> <OA-M> Desktop Calendar that was intended to
be built into AppleWorks 5.1. The enabling code installs in the form of an
INIT file in the AW.INITS subdirectory for the AppleWorks program.

This became a feature I enjoyed using.



THE PROBLEM - Worked only for Calendar Year 1996
-------------------------------------------------------

The enabling code works very well, but it is specific to calendar year 1996.



THE FIX 
--------------------------------------------------------

Fortunately, a 19-byte patch corrects the problem.

The year is changed from 1996 to 2001. The month of February is changed to
contain only 28 days (not a leap year) and the starting weekday of each
month is changed to the appropriate weekday for 2001.

So..............

Use your favorite block editor (e.g. ProSel's Zap/Block Warden) and follow
the file 'I.CALENDAR' (a 1-block file) to change the following bytes:

       Original        For
BYTE        1996            2001        COMMENT
-----    ----          ----        ----------
$0010    $39            $30        2001
$0011    $36            $31        2001
                   
$004D    $31            $32        2
$004E    $39            $30        0
$004F    $39            $30        0
$0050    $36            $31        1
                   
$0093    $1D            $1C        28 Days (Feb)
                   
$009E    $1E            $1E        Jan - Monday
$009F    $2A            $2A        Feb - Thursday
$00A0    $2E            $2A        Mar - Thursday
$00A1    $1E            $1A        Apr - Sunday
$00A2    $26            $22        May - Tuesday
$00A3    $32            $2E        Jun - Friday
$00A4    $1E            $1A        Jul - Sunday
$00A5    $2A            $26        Aug - Wednesday
$00A6    $1A            $32        Sep - Saturday
$00A7    $22            $1E        Oct - Monday
$00A8    $2E            $2A        Nov - Thursday
$00A9    $1A            $32        Dec - Saturday


Then write the block back to the disk. PLEASE MAKE SURE YOU HAVE A BACKUP
BEFORE YOU DO THIS.

That should do the trick for 2001. Enjoy it.

Key for Day of Week that Month starts:

Sunday    =    $1A
Monday    =    $1E
Tuesday   =    $22
Wednesday =    $26
Thursday  =    $2A
Friday    =    $2E
Saturday  =    $32


THE HELPERS
-----------------------------------------------------------

I appreciate the work of former NAUG members Christian Serreau and Howard
Katz of the AppleWorks Gazette. Four issues of TAG had been published as of
the date of this patch, and should be available from Howard.

Chris, in particular, has a most impressive knowledge of AppleWork's
internal workings, and has written several useful Inits, TimeOut
applications, and TimeOut updates.



COMMENTS?
----------------------------------------------------------

Please remember, improvements are always welcome. You could re-program the
Init to make the year change automatic. Then, the Init would not have to be
patched with each new year.

Alternatively, if someone were to send me written permission from Christian
Serreau to distribute his 'I.Calendar' file, I would upload the complete
Calender Inits for the next several years, so that no user patching would be
required. Otherwise, please buy a legit copy of I.Calender from TAG and keep
your block editors handy. <g>


DISTRIBUTION
-----------------------------------------------------------

Oh yeah, one more thing. Simple as it may be, this patch procedure
documentation is Copyright 2000 by Hugh Hood. As long as this CAL01.PATCH
'manifesto' is present in its entirety, you may copy, upload, download,
distribute etc., without charge.

You may address Email to:

              hughhood@earthlink.net