Re: Properties not saved when a script is executed by a Mail rule?
Re: Properties not saved when a script is executed by a Mail rule?
- Subject: Re: Properties not saved when a script is executed by a Mail rule?
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 19 Mar 2015 21:21:50 +0100
> Le 19/03/2015 à 21:05, S. J. Cunningham <email@hidden> a écrit :
>
> 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?
> _______________________________________________
I don't know why it behaves this way but I'm sure that for at least several weeks you have to live with this behavior.
So, it seems that the best choice is to write the information in a preference file or in a file, stored in the folder "Application Support"
It's what I does for years with a script which is not triggered by Mail but which, for several reasons out of my scope, must be edited from time to time, a process which delete the property.
Yvan KOENIG (VALLAURIS, France) jeudi 19 mars 2015 21:21:25
_______________________________________________
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