Re: Clearing Dates in Entourage
Re: Clearing Dates in Entourage
- Subject: Re: Clearing Dates in Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 04 Mar 2004 18:51:02 -0800
On 3/4/04 4:00 PM, "Todd Geist" <email@hidden> wrote:
>
>
What's the trick for setting an Applescript date to null or empty.
>
>
I tried the following
>
>
set theDate to date("")
>
>
But that didn't work.
>
>
Can anybody help me out?
>
>
Thanks very much for your time.
What would you be needing to do this for? You say "in Entourage" - are you
trying to set a task's due date to "no due date"? Or what? there's no need
to "clear" variables. For a task's due date:
set due date of the task to date "1/1/1904"
is what will do it. (You may have to 'tell me to' in some versions of
Entourage.)
To remove the 'remind date and time' of the task is unfortunately not
possible. (If you try 1/1/1904, that what you get, Jan 1 1904.) You have to
make a new replica of the task with no 'remind date and time' property, and
delete the original. It's a workaround that works. Same for 'remind time' of
events : setting it to 0 doesn't remove the reminder. They actually need
separate boolean properties for these reminders: it's a long-standing
feature request.
(Anyway you don't have to clear variables in AppleScript, if that's all you
wanted. And if you did, variables aren't type-cast in AppleScript, you can
set theDate to null
set theDate to missing value
set theDate to '''
set theDate to 0
or anything you want. It doesn't need to remain a date. But there's no need
to do this. AppleScript's garbage collector clears it up when the script
finished.)
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.