Re: AppleScript-Users Digest, Vol 5, Issue 203
Re: AppleScript-Users Digest, Vol 5, Issue 203
- Subject: Re: AppleScript-Users Digest, Vol 5, Issue 203
- From: Eric Welch <email@hidden>
- Date: Sat, 29 Mar 2008 13:39:07 -0700
On Mar 29, 2008, at 12:00 PM, applescript-users-
email@hidden wrote:
as Stan said. Of course Raymond somehow expected everyone to know he
was
I'm trying to write an Applescript so that it places the text I write
below the quoted text.
See John Gruber's "rant" for why...
http://daringfireball.net/2008/03/mail_quoting_bug
The problem is, I also use random signatures with pithy quotes at the
end of my emails. But the problem is to place the cursor above the
signature, but under the quoted text, I have to figure out a way to
switch the signature, since you can't directly do text searches in
Mail for some reason. Why switch signatures? Because if I create the
email without any signature, the cursor ends up right where it should.
Then when I switch on a signature, it's placed under the cursor.
Again, right where I want it.
The problem is there seems to be a bug in Applescript for Mail.app
that breaks it. Here's what I get when exploring Mail in Script
DeBugger:
In the Element/Property for Outgoing messages the value for message
signature is:
"Get failed: no such object (e.g. specifier asked for the 3rd, but
there are only 2)(errAENoSuchObject:-1728)"
The error actually applies to: class, content, id, properties, sender,
subject and visible too as well as message signature.
Now I'm a newbie to Applescripting, (just got Script Debugger to
motivate me) so can someone please tell me if there's a way to pick a
random signature after the outgoing email message exists?
Failing that, is there a way to switch the "From:" pull-down mento to
the left fo the Signature pulldown in the mail message. Because if you
specify an account that has no signatures, and then switch it back, it
will do what I want as well.
Make sense? This is more a puzzle than a necessity, but I would like
to do it. Thanks.
Eric
Look, I don't want to wax philosophic, but I will say that if you're
alive you've got to flap your arms and legs, you've got to jump around
a lot, for life is the very opposite of death, and therefore you must
at [the] very least think noisy and colorfully, or you're not alive. -
Mel Brooks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden