Trying to alter "Create Event from Message" script...

E

erobson

Hello, I am trying to tweak the "create Event from Message" script t
become a "Create Task from Message" script. I've gottne it to wor
except that the Subject of the email doesn't fill in the "Task Name
field in the new Task. This is what I have

***************
tell application "Microsoft Entourage

-- get the currently selected message or message
set selectedMessages to current message

-- if there are no messages selected, warn the user and then qui
if selectedMessages is {} the
display dialog "Please select a message first and then run thi
script." with icon
retur
end i

repeat with theMessage in selectedMessage

-- get the information from the message, and store it in variable
set theTaskName to subject of theMessag
set theCategory to category of theMessag
set theContent to content of theMessag

-- create a new note with the information from the messag
set newTask to make new task with properties {subject:theTaskName
category:theCategory, content:theContent

-- if there was only one message selected, then open that new not
if (count of selectedMessages) = 1 then open newTas
end repea
end tel
****************
I think the problem lies in the "set theTaskName to subject o
theMessage" line, as well as the "set newTask to make new task wit
properties {subject:theTaskName, category:theCategory, content:theContent}
line

I don't know what to call the Task Subject object in Entourage. SO I trie
using "TaskName", but that's obviously not it, as it isn't working

I'm a ridiculously inept novice at this (this is the first time I've ever eve
opened Apple Script Writer, much less tried to mess with a script), so i
anyon
has a suggestion as to how to make this work, if you can phrase it in such
wa
that your average 5 year old (non-Mac user, that is) could understand it, lol
that would be great

I tried using the Apple Script Editor Help and Apple Script Help pages and
after fleeing the first one in confusion, experienced a painful brain cram
about 3 paragraphs into the second one. Obviously, I lack the developer gene

Thanks
Elizabeth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top