Problem setting Mail's message viewer's selected messages (Timing issue?)
Problem setting Mail's message viewer's selected messages (Timing issue?)
- Subject: Problem setting Mail's message viewer's selected messages (Timing issue?)
- From: Daniel Krech <email@hidden>
- Date: Thu, 30 Sep 2004 14:40:34 -0400
I'm stumped on what I'm guessing should be very trivial for someone who
knows applescript.
The problem seems like it might be a timing issue related to the moving
of the messages, because sometimes it works and sometimes it does not.
However, it works intermittently when commenting out the move bit. So,
I'm a bit lost as to what's going on. Since I'm new to applescript and
am at a bit of a lose I'm kindly asking if anyone here could enlighten
me.
Here is my script:
tell application "Mail"
if (count of selection) is equal to 0 then
display dialog "Please select messages first"
else
move the selection to mailbox "Desk" of account
"IMAP:email@hidden"
end if
tell front message viewer
set the selected messages to {first message}
-- Ideally something like:
--set the selected messages to {last message whose read status is
false and deleted status is false}
end tell
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden