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: Shane Stanley <email@hidden>
- Date: Sat, 21 Mar 2015 10:28:55 +1100
On 20 Mar 2015, at 9:45 am, Shane Stanley <email@hidden> wrote:
>
> On 20 Mar 2015, at 7:05 am, S. J. Cunningham <email@hidden> wrote:
>>
>> 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?
>
> When an application finishes running a script, it's supposed to check whether there have been any changes made, and if so, save the modified version. If that's not happening, possible causes include things like permissions issues, or whoever wrote the application simply didn't implement this step.
Now that I think about it more, it sounds like a sandboxing issue. Sandboxed applications can only run scripts stored in a specific folder, and I have a feeling they only have read-access to that folder -- which means they can't write back modified scripts. That doesn't mean the background process that really runs them in such cases can't -- it might be able to -- but it suggests the problem applies across the board to scripts run from sandboxed apps.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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