In article
<BLOCKSPAMfishfry-E10CA6.19575731072007@[EMAIL PROTECTED]
>,
fishfry <BLOCKSPAMfishfry@[EMAIL PROTECTED]
> wrote:
> I'm an experienced Unix, C and Perl developer. I'd like to be able to
> set a reminder for a certain date and time that causes a window to pop
> up at that time, regardless of what else I'm doing.
Here is a shell script that runs a Script Editor script to tell iCal to
make an event with three alarms, dialog with sound, dialog without
sound, or tell the Finder to open a do***ent:
#!/bin/sh
osascript <<Do***entDelimiter
tell application "iCal"
set startTime to (date "August 2, 2007 9:30:00 AM")
set endTime to (startTime + 1)
set anEvent to make new event at end of calendar 1 with properties ¬
{start date:startTime, end date:endTime,summary:"Your reminder string
here"}
make new sound alarm at end of anEvent with properties ¬
{trigger interval:-15} -- units is minutes from start
-- or for one with no sound
make new display alarm at end of anEvent with properties ¬
{trigger interval:-15}
-- or even run a program. see "man open"
make new open file alarm at end of anEvent with properties ¬
{trigger interval:-5, filepath:"file:///Users/david/foo.txt"}
end tell
Do***entDelimiter


|