• 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
Properties not saved when a script is executed by a Mail rule?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Properties not saved when a script is executed by a Mail rule?


  • Subject: Properties not saved when a script is executed by a Mail rule?
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Thu, 19 Mar 2015 16:05:22 -0400

I am trying to execute the following script as the result of a Mail rule:

---------------------
property theCounter : 1

display dialog "The counter is " &  theCounter
set theCounter to theCounter + 1
---------------------

Obviously, I expected to see 1,2,3... upon successive applications of the Rule.  But all I ever see is 1 whether I save it as a compiled script or a script app.  The property isn't sticking.

Can someone explain what is going on and how to fix it?  Is Mail recompiling the script every time it is called?
 _______________________________________________
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


  • Follow-Ups:
    • Re: Properties not saved when a script is executed by a Mail rule?
      • From: Shane Stanley <email@hidden>
    • Re: Properties not saved when a script is executed by a Mail rule?
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Kind of OT, Kind of Not
  • Next by Date: Re: Properties not saved when a script is executed by a Mail rule?
  • Previous by thread: Re: Add user button to Mail message title bar?
  • Next by thread: Re: Properties not saved when a script is executed by a Mail rule?
  • Index(es):
    • Date
    • Thread