• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compare dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Compare dates (From: Robert Poland <email@hidden>)

  • Prev by Date: Compare dates
  • Next by Date: Re: Compare dates
  • Previous by thread: Compare dates
  • Next by thread: Re: Compare dates
  • Index(es):
    • Date
    • Thread