Re: applescript in Mail.app
Re: applescript in Mail.app
- Subject: Re: applescript in Mail.app
- From: cricket <email@hidden>
- Date: Thu, 13 Mar 2003 11:06:58 -0800
If you don't want to do anything with the message received, then ignore
the 'info' variable being passed in. My example illustrates everything
you _can_ do with an Applescript rule action, but if all you wanted to
do was display a dialog, for example, you could write a script like
this:
on perform_mail_action(info)
display dialog "Hi!"
end
- cricket
On Thursday, March 13, 2003, at 9:32 AM, Mike wrote:
Thanks for the reply cricket but I still don't understand the concept.
I
don't want to do anything with the message being received, I have an
stand
alone applescript crafted from one of the Apple examples to create a
new
mail message. This applescript launches Safari, loads a default
homepage,
copies the title and text of a local.machine default webpage to a new
Mail
message and sends it to a web email address for remote retrieval.
When I
run the "sendWebPage" script, it performs as expected. Now, I want
Mail.app
to execute the script when the rule evaluates the subject line and
matches
the appropriate text. That is where I am hung up.....the rule
doesn't run
the external script. Maybe I am asking the impossible. I don't have
a lot
of experience writing applescripts but have been pretty successful in
modifying examples from sources like this list to do my bidding.
Thanks again for your help.
----->
Software Entomologist Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
A tray full of delectable and beautiful petit fours will turn any
ordinary event into an extraordinary one
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.