Re: Compare dates
Re: Compare dates
- Subject: Re: Compare dates
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 31 Aug 2003 11:20:01 -0700
On 8/31/03 10:55 AM, "Robert Poland" <email@hidden> wrote:
>
Got an Applescript question. The following script doesn't work as I
>
would hope. Any Suggestions?
>
>
set answerDay to "6-Sep"
>
set readData to "1-Sep"
>
set endData to "7-Jun"
>
>
set answerDay to date answerDay
>
----> GETS ERROR "Tex-Edit Plus got an error: Can't get date "5-Seo".
>
Access not allowed."
AppleScript won't compile dates inside a tell block: actually it's the app
(Tex-Edit Plus here) that you're telling to compile the date, and it can't.
So either:
set answerDay to date answerDay
OUTSIDE a tell block, or if it must be inside one, tell the script itself
(whose parent is AppleScript, which knows how to do this and passes on the
ability to its child, the script):
tell me to set answerDay to date answerDay
--
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.