Attendance tracking in Numbers '09 via AppleScript
Wed, Feb 11 2009 at 7:30AM PST • Contributed by: mr. applescript
Wed, Feb 11 2009 at 7:30AM PST • Contributed by: mr. applescript
I've been playing around with the new AppleScript support in Numbers '09, and came up with a couple example scripts for teachers (or anyone who needs to track attendance over a month for a group of people). The first script creates a new table, in the currently open sheet, using the names from a chosen Address Book group.
The names of the people in the group are displayed alphabetically down the first column on the left, and the dates of the current month are displayed across the top row. The script will prompt for the Address Book group to use, as well as whether you want to omit or include weekends in the display. The second script is meant to work with one of the attendance tables created by the first script. After completing the table (i.e. at the end of the month, where any missed days are reflected by an unchecked cell), select any cell in an attendance table and run the script to color the cells of missed days red. Save both of the scripts as separate script files (.scpt) from Script Editor, and put them in Home » Library » Scripts » Applications » Numbers to have them appear in the Scripts Menu while Numbers is the frontmost application. Enjoy!
[robg adds: Both scripts worked as described.]
The names of the people in the group are displayed alphabetically down the first column on the left, and the dates of the current month are displayed across the top row. The script will prompt for the Address Book group to use, as well as whether you want to omit or include weekends in the display. The second script is meant to work with one of the attendance tables created by the first script. After completing the table (i.e. at the end of the month, where any missed days are reflected by an unchecked cell), select any cell in an attendance table and run the script to color the cells of missed days red. Save both of the scripts as separate script files (.scpt) from Script Editor, and put them in Home » Library » Scripts » Applications » Numbers to have them appear in the Scripts Menu while Numbers is the frontmost application. Enjoy!
[robg adds: Both scripts worked as described.]
•
[7,591 views]
