georgeocrawford
Technical User
Hi,
When I send a message in Entourage from a certain account, I have created a rule which automatically forwards that message to a colleague.
I don't want this function to run for ALL the messages from this account, however. I would like to write a simple applescript which will give me the option of choosing "Yes" (send the message to colleague) or "No" (don't send the copy).
I have started like this:
1) I wrote this script:
2) The actions of the rule are first to run the script, and then to forward the message to my colleague. I guessed that if you click "OK" on the dialogue, the rule would proceed (and the message would be forwarded), and if you clicked "No" the script would fail and the rule would be halted.
You'll be suprised to hear this doesn't work - it was just a guess really!
At present, I do not even get the dialogue, just an error message saying:
"The script could not be run. The end of file was reached"
Any suggestions?
Thanks
When I send a message in Entourage from a certain account, I have created a rule which automatically forwards that message to a colleague.
I don't want this function to run for ALL the messages from this account, however. I would like to write a simple applescript which will give me the option of choosing "Yes" (send the message to colleague) or "No" (don't send the copy).
I have started like this:
1) I wrote this script:
Code:
tell application "Microsoft Entourage"
display dialog "Do you want to send a copy?"
end tell
2) The actions of the rule are first to run the script, and then to forward the message to my colleague. I guessed that if you click "OK" on the dialogue, the rule would proceed (and the message would be forwarded), and if you clicked "No" the script would fail and the rule would be halted.
You'll be suprised to hear this doesn't work - it was just a guess really!
At present, I do not even get the dialogue, just an error message saying:
"The script could not be run. The end of file was reached"
Any suggestions?
Thanks