Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Applescript problem

Status
Not open for further replies.

georgeocrawford

Technical User
Aug 12, 2002
111
GB
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:

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
 
My guess is you have to add the operation it has to do when clicking Yes and No in your script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top