On or near 6/23/02 11:03 AM, Domains4Days.com at [EMAIL PROTECTED]
observed:
> Just curious if anybody has an ideas about this...
>
> ====
>
> Entourage calendar help ...
>
> I'm having trouble ... How do I set the Start Date / End Date and Start Time
> and End Time for a new entry???
>
>
> ... Assuming that I had previously set some of these variables earlier in
> the code... Then ...
>
>
> tell application "Microsoft Entourage"
> activate
>
>
> -- get the information from the message, and store it in variables
> set theName to vNam
> set theCategory to "Cool"
> set thePriority to "High"
> set theContent to vBod
> set theStartDate to "07/02/02"
> set theEndDate to "07/02/02"
> set theStartTime to "???10am ???"
> set theEndTime to "???2pm ???"
>
>
> ... WHAT DO I PUT HERE ....?:
>
> set newEvent to make new event with properties {subject:theName,
> content:theContent, ?????start time:theStart???? End date --- starttime end
> time etc.}
>
> open newEvent
> end tell
>
>
>
> ===========
>
>
>
> Class event: A calendar event
> Plural form:
> events
> Properties:
> ID integer [r/o] -- the event's unique ID
> subject Unicode text -- subject of the event
> location Unicode text -- location of the event
> content Unicode text -- description of the event
> start time date -- time at which the event starts
> end time date -- time at which the event ends
> all day event boolean [r/o] -- is the event an all day event?
> recurring boolean [r/o] -- is the event recurring?
> category a list of reference -- the list of categories
> links a list of reference [r/o] -- the list of linked items
> properties record -- property that allows setting a list of properties
>
>
> THANKS IN ADVANCE...
Sounds like you need to learn to use dates and times in general, in AS. Date
and time are expressed in a single variable. Try:
set theStartDate to date "June 30, 2002 17:30"
--
My web page: <http://home.earthlink.net/~allenwatson/>
My scripts page: <http:homepage.mac.com/allenwatson>
Microsoft MVP for Mac Entourage/Word--<[EMAIL PROTECTED]>
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>