Make Calendar Event into a Message

R

Ron Kaplan

In Entourage 2004, I see a script for making a message into a calendar
event, but I cannot find a script to send a message to all invitees from a
calendar event or forward a calendar event as a message.

What am I missing?

Thank you.

Ron Kaplan
 
J

Jolly Roger

In Entourage 2004, I see a script for making a message into a calendar
event, but I cannot find a script to:

That's because you need to write one such script yourself. AppleScript
is fairly simple to learn. You can do this yourself easily. To see the
commands supported by Entourage, drag the Entourage application icon
over /Applications/AppleScript/Script Editor.
send a message to all invitees from a calendar event

Here you go (watch for line wraps of long lines):

-- begin script
-- send a message to all invitees from a calendar event

tell application "Microsoft Entourage"

-- get the current selection
set eventList to selection

if eventList is not {} then
-- something is selected

repeat with nextEvent in eventList
if nextEvent's class is event then
-- an event is selected

-- get the event invites
set invites to nextEvent's to recipients

-- create a new blank message to event invites
set newMessage to make new outgoing message ¬
at folder "Outbox" with properties ¬
{account:nextEvent's account, content:"", subject:nextEvent's
subject, recipient:invites}

-- open the new message so it's ready for editing
open newMessage

end if
end repeat
end if

end tell
-- end script

Simple, right?

or forward a calendar event as a message.

What exactly would you like this forwarded message to look like?
 
B

BPippenger

That's because you need to write one such script yourself. AppleScript
is fairly simple to learn. You can do this yourself easily. To see the
commands supported by Entourage, drag the Entourage application icon
over /Applications/AppleScript/Script Editor.


Here you go (watch for line wraps of long lines):

-- begin script
-- send a message to all invitees from a calendar event

tell application "Microsoft Entourage"

-- get the current selection
set eventList to selection

if eventList is not {} then
-- something is selected

repeat with nextEvent in eventList
if nextEvent's class is event then
-- an event is selected

-- get the event invites
set invites to nextEvent's to recipients

-- create a new blank message to event invites
set newMessage to make new outgoing message ¬
at folder "Outbox" with properties ¬
{account:nextEvent's account, content:"", subject:nextEvent's
subject, recipient:invites}

-- open the new message so it's ready forediting
open newMessage

end if
end repeat
end if

end tell
-- end script

Simple, right?

or forward a calendar event as a message.

What exactly would you like this forwarded message to look like?
I can'

JR,
I
I can't seem to get this to work correctly. When I have a calendar
event selected in Entourage and run this script, I get an error
stating that Entourage can't make class outgoing message. I then try
to actually open up the calendar event and run the script again. This
time i get no error, but nothing happens. Any thoughts?

Ben
 
J

Jolly Roger

I can't seem to get this to work correctly. When I have a calendar
event selected in Entourage and run this script, I get an error
stating that Entourage can't make class outgoing message. I then try
to actually open up the calendar event and run the script again. This
time i get no error, but nothing happens. Any thoughts?

It's hard to say why you would get such an error.

Are you running the absolute latest version of Entourage?

Does this script run?:

-- begin script
tell application "Microsoft Entourage"

-- create a new blank message
set newMessage to make new outgoing message ¬
at folder "Outbox" with properties ¬
{content:"test", subject:"test"}

-- open the new message so it's ready for editing
open newMessage

end tell
-- end script
 
Top