Properties not saved when a script is executed by a Mail rule?
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