Re: date of question
Re: date of question
- Subject: Re: date of question
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 13 Oct 2005 11:27:28 -0700
- Thread-topic: date of question
On 10/13/05 11:13 AM, "Robert Poland" <email@hidden> wrote:
> Trying to get date of "10/20/05".
>
> set EventStartDate to "10/20/05"
> set EventEndDate to (EventStartDate) + 3600
> EventEndDate
>
> I think I have learned how to get any part of a date but can't figure
> out how to go back.
You left out 'date' before your short date string, so it hasn't compiled as
a date. You can't use a string. You can't really do AppleScript at all
without knowing that.
set EventStartDate to date "10/20/05"
set EventEndDate to (EventStartDate) + 3600
EventEndDate
--> date "Thursday, October 20, 2005 1:00:00 AM"
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden