Re: scripting mail to select mailboxes
Re: scripting mail to select mailboxes
- Subject: Re: scripting mail to select mailboxes
- From: cricket <email@hidden>
- Date: Wed, 12 Mar 2003 12:28:26 -0800
On Wednesday, March 12, 2003, at 9:36 AM, John Delacour wrote:
I've asked twice about "focused messages" and got no reply from
cricket. So here's a guaranteed way to make Mail crash by trying to
do what you're asking.
The only message you sent about focused messages lists a script and has
this line before it: 'Run your script in with the event viewer open,
then try this one and then ask cricket why.'
Maybe if you actually ask a question, you'll get a response. I'm known
for doing that. :)
tell application "Mail"
set ls to messages of mailbox "In" of account "Manningham"
set ls to ls & messages of mailbox "In" of account "demon"
make message viewer
set focused messages of message viewer 1 to ls
end tell
Every time I try to script anything useful in Mail I am confirmed in
my opinion that the whole thing is an abomination. Why we're having
to wait so long for an upgrade I can't imagine.
I don't see any Mail scripting bugs from you in our bug tracking
system. If you reported them, maybe it would get better. What you have
here is a bona fide bug that we'll look into. See, it wasn't that hard
now was it?
Here's a script that does work:
tell app "Mail"
set ls to messages of mailbox "In" of account "Manningham"
set ls to ls & (get messages of mailbox "In" of account "demon")
make message viewer
tell message viewer 1
set selected mailboxes to {in mailbox}
end tell
end tell
Your script has the same problem as another script I commented on a few
weeks back, where you need to explicitly evaluate an expression in
specific cases. Obviously, Mail shouldn't crash and we'll get that
taken care of, but please try to incorporate my suggestions. That's why
I'm here.
- cricket
----->
Software Entomologist Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
It's a great thing when you realize you still have the ability to
surprise yourself.
_______________________________________________
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.