[fa.info-mac] A Calendar/Note Pad desk accessory

info-mac@uw-beaver (info-mac) (08/14/84)

From: Mike Schuster <MIKES@CIT-20.ARPA>

The desk accessory "Calendar" draws a monthly calendar above a note
pad text region containing a daily agenda.  Agendas can be edited with
the standard Cut, Copy, Paste, Clear, and Undo commands.  Calendar
uses the standard desktop clipboard, so you can easily transfer text
between other applications and desk accessories.  Agendas for
different dates can be viewed by clicking on the various parts of the
calendar.  Click on Sun, Mon, ..., or Sat to see the agenda for
another day of the week.  Click on 1, 2, ..., or 31 to see the agenda
for another day of the month.  Click on Jan, Feb, ..., or Dec to see
the calendar for another month.  Click on 83 or 85 to see the calendar
for last year or next year.  Look closely and you will see how to get
other years.  Finally, click on the top region containing the date and
time to see today's agenda.

Calendar saves each day's agenda as a purgeable resource of type
"TEXT" named "month/day/year" with some random id in a resource file
called "Calendar File".  I keep "Calendar File" in "System Folder"
along with "Note Pad File" and "Clipboard File".  Calendar requires
about 20K bytes, and hence it won't work under some applications,
notably MacPaint and MacTerminal.

Calendar is compiled with Bill Croft's SUMACC as a DRVR resource in a
desk accessory launcher/installer application called "Desk".  Calendar
can be used by launching "Desk" and pulling down the Apple menu or by
first copying it from Desk into your system resource file using either
"Resource Mover" or Desk's "Install" command.  I assume that your
version of "Rmaker" implements resource names as well as DRVR
resources.  Before compiling, check the path names defined in
"Makefile".  They will have to be changed to match your environment.

The file "device.h" contains some useful definitions for io drivers
and desk accessories.  "Crtcal.s" is a slightly modified version of
SUMACC's driver/accessory self-relocator "crtdrvr.s".

Mike Schuster (mikes@cit-20, mikes@cit-vax)

[Due to the size of these sources, I have moved them out to
 the file {SUMEX-AIM}<INFO-MAC>CALENDAR.C -- Ed.]

ggr@hudson.UUCP (Guy Riddle) (08/21/84)

For those without access to FTP, I have posted in net.sources
(article <272@hudson.UUCP>) the code for Mike Schuster's
desk accessory.  Thanks to Mike for mailing it to me.

			=== Guy Riddle == AT&T Bell Laboratories, New Jersey ===