P
Prometheus
The script ³Create Task From Message² is not populating the body of the task
form with the contents of the message. I have pasted the script below. Being
as ignorant about AppleScript as they come, I don¹t know what or where to
modify.
(I am using Entourage 2004, OS X 10.3.5, on a PowerBook 1.5.)
Help would be much appreciated.
(*
Create task from Message
Copyright (c) Microsoft Corporation. All rights reserved.
*)
tell application "Microsoft Entourage"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this
script." with icon 1
return
end if
repeat with theMessage in selectedMessages
-- get the information from the message, and store it in variables
set theName to subject of theMessage
set theCategory to category of theMessage
set thePriority to priority of theMessage
set theContent to content of theMessage
-- create a new task with the information from the message
set newTask to make new task with properties {name:theName,
content:theContent, category:theCategory, priority:thePriority}
-- create a link between the message and the new task
link theMessage to newTask
end repeat
-- if there was only one message selected, then open that new task
if (count of selectedMessages) = 1 then open newTask
end tell
form with the contents of the message. I have pasted the script below. Being
as ignorant about AppleScript as they come, I don¹t know what or where to
modify.
(I am using Entourage 2004, OS X 10.3.5, on a PowerBook 1.5.)
Help would be much appreciated.
(*
Create task from Message
Copyright (c) Microsoft Corporation. All rights reserved.
*)
tell application "Microsoft Entourage"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this
script." with icon 1
return
end if
repeat with theMessage in selectedMessages
-- get the information from the message, and store it in variables
set theName to subject of theMessage
set theCategory to category of theMessage
set thePriority to priority of theMessage
set theContent to content of theMessage
-- create a new task with the information from the message
set newTask to make new task with properties {name:theName,
content:theContent, category:theCategory, priority:thePriority}
-- create a link between the message and the new task
link theMessage to newTask
end repeat
-- if there was only one message selected, then open that new task
if (count of selectedMessages) = 1 then open newTask
end tell