• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem setting Mail's message viewer's selected messages (Timing issue?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Variable Ponderance
  • Next by Date: Re: Variable Ponderance
  • Previous by thread: Re: Variable Ponderance
  • Next by thread: Re: How to generate form-based and locked PDFs with FileMaker (off?)
  • Index(es):
    • Date
    • Thread