Re: Applescript: referring to selected email in Mail
- From: Ingvar Nedrebo <inn@xxxxxxxxxx>
- Date: Mon, 13 Feb 2006 17:36:02 +0000
In article <1hao576.1wb3ea7s6jqjnN%me3@xxxxxxxxxxx>, zoara
<me3@xxxxxxxxxxx> wrote:
Ingvar Nedrebo <inn@xxxxxxxxxx> wrote:
In article <1hanbej.g6dswt14ncbaaN%me3@xxxxxxxxxxx>, zoara
<me3@xxxxxxxxxxx> wrote:
How do I refer to a message (and/or number of messages) that are
selected in Mail? I have a bunch of actions I want to perform on a given
email(s) but can't refer to them! For example's sake, let's say I want
to display a dioalog saying who the email is from...
I got this to work:
set msgs to selection
repeat with this_message in msgs
set adr to extract address from sender of this_message
display dialog "message is from " & adr
end repeat
I tried "repeat with this_message in selection", which didn't work. I
have no idea why.
Thankyou. Got it all sorted now;
Goody.
it's a manual "stop sending me this
crap email" script that looks - at least to the technically numpty -
entirely automated. Girlfriend has several friends who insist on sending
her stupid forwarded emails (you know, the sort that got old after you'd
seen your third one) even after repeated requests not to. "Yeah, but I
thought you'd like *this* one, it's funnier than the others".
She asked whether there was any way to make it look like they were
getting sent back, so I whipped up a script to do just that. It's more a
joke than anything else, to be honest.... it pretends that the email has
been 'statistically analysed' and has scored highly enough to be
rejected instead of being delivered.
Given the target audience, do you think that kind of wording will deter
them in the future? :-)
i.
--
Remove all numbers to reply.
.
- Follow-Ups:
- References:
- Applescript: referring to selected email in Mail
- From: zoara
- Re: Applescript: referring to selected email in Mail
- From: Ingvar Nedrebo
- Re: Applescript: referring to selected email in Mail
- From: zoara
- Applescript: referring to selected email in Mail
- Prev by Date: Re: Channel 4's 'The IT Crowd' "comedy" (off topic, blatantly)
- Next by Date: Re: Applescript: referring to selected email in Mail
- Previous by thread: Re: Applescript: referring to selected email in Mail
- Next by thread: Re: Applescript: referring to selected email in Mail
- Index(es):
Relevant Pages
|