Re: degrading script performance in Mail
Re: degrading script performance in Mail
- Subject: Re: degrading script performance in Mail
- From: patrick machielse <email@hidden>
- Date: Sat, 27 Aug 2005 21:36:12 +0200
Op 27-aug-2005, om 21:00 heeft deivy petrescu geschreven:
On Aug 27, 2005, at 11:45, patrick machielse wrote:
I'm trying to script Apple Mail 2.0.2. Essentially I want to set
the read status of all messages in a particular mailbox. As an
example, I use the following code:
tell application "Mail"
set read status of every message of mailbox "ADC" to false
end tell
"ADC" is a mailbox containing some 300 messages. The first time I
run this script after opening Mail it will complete in a matter of
seconds. However, the 5th run takes about a minute on my (slow)
machine, and performance only continues to degrade. I can actually
watch the blue dots being drawn in front of each message. Then
after all blue dots are there, spotlight runs (mds and mdimport)
for a while. During all this time you can not use ot
If anyone can confirm or deny this behaviour I'd be much obliged...
Patrick, I've run many times the following script (in Smile, mind you)
[]
So it takes 0.43 seconds to get the read status of 1124 messages.
consistent over many runs!
Deivy,
Thanks for taking the time. Your figures are interesting. However,
I'm afraid I didn't make myself clear. What I notice is that the Mail
application gets in a 'comatose' state for longer and longer after
setting the read status of messages. The more I run my script, the
longer it takes Mail to reflect the changes in the interface. Also
there is a lot of spotlight indexing going on, and the numbers to the
right of the mailbox names that indicate the number of unread
messages are not correct. (all of which doesn't take place when I set
the read status by hand in Mail)
The script itself finishes reasonably fast, and in a consistent time.
I should have made that more clear, sorry.
The problem seems to lie with Mail (again). If anyone can confirm
what I see on my machine, I can file another bug report against Mail...
patrick
_______________________________________________
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