• 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
Re: Mail script puzzlement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail script puzzlement


  • Subject: Re: Mail script puzzlement
  • From: Jeremy Roussak <email@hidden>
  • Date: Thu, 23 Jun 2016 08:26:25 +0100

Yes. I suppose one option is to delete the rule and re-create it from scratch. There’s no reason why it should make any difference, but I might as well give it a try. Who believes in computer determinism?

Jeremy


On 23 Jun 2016, at 00:36, Brian Christmas <email@hidden> wrote:

G’day again Jeremy.

Might I suggest you lodge a bug report, listing everything you’ve tried. Engineering might suggest a solution, or reason for it occurring.

Regards

Santa


On 23 Jun 2016, at 5:57 AM, Jeremy Roussak <email@hidden> wrote:

Brian,

Tried it. Didn’t work. I used a two-stage rule, which first moves the message to a mailbox called Temp, then runs the script. Exactly as before, it receives not the message which triggered the rule but the one received immediately before it. Doesn’t seem to matter how long beforehand, either. 

Weird. No idea what to do now, other than routinely send the triggering email twice.

Jeremy


Jeremy Roussak
email@hidden



On 22 Jun 2016, at 01:12, Brian Christmas <email@hidden> wrote:

G’day Jeremy.

I don’t know if this is a valid hypothesis or not, but here goes.

I have used a mail rule, which runs an Applescript, for over 9 years, without fail.

I wrote it for my Mail Manager application, which started life as a bunch of Applescripts, for Clients who utterly MUST have it work, EVERY time.

However, the rule is in two parts, the first of which takes every Email that arrives in an initially user-choosable inbox, (that the rule is then applied to), and transfers it to an ordinary mailbox, ‘* items to store’.

Only then does it call the Applescript, which it turn checks an Application set flag, stored in the Application's preference file, and determines if the script is ‘allowed’ to activate my Mail Manager App.

My thoughts are that by first shifting the Email, the Applescript somehow sets itself up as being able to reliably work. Just guessing, but as calling the script has never failed in 9 years, and been called over a million times, somethings got be be responsible!

If I’m right, Mail Rules ALWAYS work, and their being called is utterly reliable. It’s just that if the mail rules FIRST, and perhaps ONLY task, is to run an Applescript, that called script can prove unreliable in it’s activation.

Regards

Santa






Jeremy Roussak
email@hidden



 _______________________________________________
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

References: 
 >Mail script puzzlement (From: Jeremy Roussak <email@hidden>)
 >Re: Mail script puzzlement (From: Brian Christmas <email@hidden>)
 >Re: Mail script puzzlement (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Mail script puzzlement
  • Next by Date: Re: FastScripts and script editor discrepancies
  • Previous by thread: Re: Mail script puzzlement
  • Next by thread: Re: en-dash, em-dash, and the like
  • Index(es):
    • Date
    • Thread