Re: Scripting Mail:get selection
Re: Scripting Mail:get selection
- Subject: Re: Scripting Mail:get selection
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 25 Feb 2003 10:22:05 -0800
On 2/24/03 4:21 PM, "cricket" <email@hidden> wrote:
>
One thing that you and others on the list need to understand, though,
>
is that Mail will not provide scripting for features that it doesn't
>
have, so having that expectation will surely lead to disappointment.
>
Your mention of lack of features has absolutely zero to do with
>
applescript, so please move that discussion to the appropriate list and
>
keep on task on this list for educating people about applescript.
That's fair enough. You obviously can't be expected to script features not
available in the app (although Entourage has a few of those, by the way). I
guess I meant to say that _using_ Mail is a more limiting experience, which
extends naturally enough to its scripting. Aside from the selection
business, which you responded to already. I'll take your word for it that
Mail's AppleScript dictionary represents the limits of what can be done in
Mail's UI.
By the way, it's very easy to add any signature you want to an outgoing
message in Entourage by script. You just append the contents of the
signature to the content of the message. It takes just one line of script,
just the same as setting a signature of a draft window, which you can also
do, or as in Mail. By definition if you're scripting an outgoing message,
you're scripting its content, so there's nothing to it:
set content of theMsg to (theContent & return & (content of signature
"Special"))
or
set theContent to (theContent & return & (content of signature
"Special"))
make new outgoing message with properties {subject:"Whatever",
content:theContent} -- etc.
In the rare occasion where that might not be true (using the 'reply to'
command, say) you can set the default signature of the account for the
duration, then reset it.
Since rules in Entourage are much, much more complex than in Mail : 26 types
of basic criteria with another 18 or so operators for each one before even
entering the specific filter, any number of such criteria, strung together,
22 basic types of action, limitless operands, etc. it's actually a lot more
powerful having rules and schedules RUN scripts than trying to script the
multi-thousand-rule possibilities (probably in the hundreds of thousands) .
But OK, it's very sweet of Mail to let you script its few rule options, I
grant you that.
--
Paul Berkowitz
_______________________________________________
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.