Hi,
I work at a support department. The subject of every mail we reply gets a tracking number. Now this happens with copy-pasting. I want to make a script that, when the reply is open, if i run it from the script menu:
1 reads the current subject
2 adds a prefix to it
3 change the subject to the new one with prefix
For now, I have this:
tell application "Microsoft Entourage"
if the class of the front window is message window then
set theMessage to the displayed message of the front window
else if the class of the front window is draft window then
save the front window
set theMessage to the displayed message of the front window
else
display dialog "Fail te select active message"
end if
set theSubject to subject of theMessage
set thePrefix to "Prefix"
set the subject of theMessage to thePrefix & theSubject
end tell
The reading the subject part works. But the part to change the subject to my subjects doesn’t. I get no error.
I work on OSX 10.6.3 with Microsoft Entourage 2008 for Mac, version 12.2.2