As part of a longer script I am trying to create calendar events and add a category to that event;

set newEvent to make new calendar event with properties {all day flag:true, subject:myEvent, location:myLocation, start time:startTime, end time:endTime}


creates the event but what I can not work out is then how to set the category to that new event?

PRH
Previous question/answer was for Vista:
Assuming this is a POP3 account, you need to configure both computer email
programs to leave the messages on the server after downloading.
WLM is set to do this by default.
So open Windows Mail on the Vista computer,
click on Tools - accounts - <youraccount> - Properties - Advanced
check "[x] Leave a copy of messages on server"
you should also check "[x] remove from server after xx days"
so the server inbox won't fill up.
OK
There is no Advanced tab on Windows 7 Home Edition.  I need to remove deleted messages from my website email account's server when deleted from WLM email account.  They need to be in sync.  How do I access the rules/instructions on WLM for the server as shown above?