Re: Help Testing a Mail Script
Re: Help Testing a Mail Script
- Subject: Re: Help Testing a Mail Script
- From: Christopher Stone <email@hidden>
- Date: Fri, 28 Sep 2012 16:34:18 -0500
On Sep 28, 2012, at 15:35, James Roberts < email@hidden> wrote: I ran it a dozen times or so from applescript editor and it seems totally random when it works and when it doesn’t.
______________________________________________________________________
Thanks for helping. I use 4 Mail plugins and wanted to make sure this was happening to people other than myself before moving on to test for bug-reporting.
Mail in Mountain Lion does seem to be even buggier than it was in Lion. I have been having this problem with most of my mail scripts that run from rules.
I haven't used Applescript much with rules, but trying to test them on Mountain Lion has been so problematic that I gave up.
The primary triggering factor for my script malfunction seems to be a selection of more than 1 non-threaded message OR more than 1 thread such that the preview-pane shows that useless little stack of messages.
If I close the preview-pane my script runs every time without a problem. If I operate on only 1 thread or only 1 message it also works every time.
A successful work-around for my issue (for now):
------------------------------------------------------------------------------ on bugFix() tell application "FastScripts" activate end tell tell application "Mail" activate end tell delay 0.1 end bugFix ------------------------------------------------------------------------------ try tell application "Mail" try (some message viewer whose index is 1) on error my bugFix() end try tell (some message viewer whose index is 1) to set selected messages to {} end tell on error errMsg number errNum beep tell me to display dialog "Error: " & errMsg & return & "Error Number: " & errNum end try ------------------------------------------------------------------------------
-- Best Regards, Chris
|
_______________________________________________
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