Re: Compare dates
Re: Compare dates
- Subject: Re: Compare dates
- From: Christopher Stone <email@hidden>
- Date: Tue, 2 Sep 2003 06:30:47 -0500
At 11:55 -0600 08/31/2003, Robert Poland wrought:
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".
______________________________________________________________________
Hey Robert,
When asking for help it's very important to relay the context of your
script - in this case Tex-Edit Plus. Fortunately you gave the error
message, so it wasn't hard to figure out what was up.
As an addendum to Paul's answer - these methods also work:
tell application "Tex-Edit Plus"
set answerDay to "6-Sep"
set answerDay to my date answerDay
end tell
tell application "Tex-Edit Plus"
set answerDay to "6-Sep"
set answerDay to AppleScript's date answerDay
end tell
tell application "Tex-Edit Plus"
set answerDay to "6-Sep"
tell AppleScript
set answerDay to date answerDay
end tell
end tell
tell application "Tex-Edit Plus"
set answerDay to "6-Sep"
tell AppleScript to set answerDay to date answerDay
end tell
Best Regards,
Chris
_______________________________________________
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.