Title: Re: Feature Request. Mailing To-Do's
On 11/17/00 3:12 AM, "Kai Vermehr" <[EMAIL PROTECTED]> wrote:

> Cool!!! Now what if I would like to add the date and hour of the reminder to
> the message. What would be the correct formula on this?
>
> set theContent to "Remind me:" & ?????? of theTask

First leave  a space, and then add to theContent, don't wipe out the rest of theContent:

    set theContent to theContent & return & return & "Remind me:  " & (remind date and time) of theTask


That will give you a rather more lengthy version than you might normally prefer to have, but it's the right format for converting back again at the other end, e.g.:

  --  date "Sunday, November 19, 2000 7:45:33 AM"

(If you want to actually record this rather than simply convert it back at the other end, then use Akua Sweets if you have it installed:

    
    set remindTime to (remind date and time) of theTask)
    set remindTime to the clock from remindTime using system form "%e & %t"
    set theContent to theContent & return & return & "Remind me:  " & remindTime


That way you'll get it as

     --  "Sun, Nov 19, 2000 7:45 AM"

I'm purposely not suggesting the "11/01/00" format because some of your correspondents would read that as Nov. 1 and some as Jan. 11. Your correspondents don't need to have Akua Sweets for this to be read back correctly as a date if the word date is put back in front of it in the converting script:

    date "Sun, Nov 19, 2000 7:45 AM"
    -- date "Sunday, November 19, 2000 7:45:00 AM"
>
>
> PS I had to erase "end if" after "D/L: " & due date of theTask". Don't know
> why but it didn't work.


Probably because you put the two previous (real) lines on one if/then line. People can use HTML on this list to make sure that scripts have the correct line lengths at the receiving end without the need for adjustment.


--
Paul Berkowitz

Reply via email to