为什么不是这个脚本增加从邮件规则运行? [英] Why won't this Scripting Addition run from a Mail rule?

查看:150
本文介绍了为什么不是这个脚本增加从邮件规则运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我访问 satimage.osax脚本除了(我M使用正则表达式的能力)从雪豹邮件规则,我得到的错误,但它在脚本编辑器运行正常。下面的code能说明问题。第一行执行罚款,但里面就行了告诉块抛出一个错误(如下图),从邮件规则的版本,我已经捕获错误。

When I access the satimage.osax scripting addition (which I'm using for its regex capability) from a Mail rule on Snow Leopard, I get errors, but it runs fine in Script Editor. The code below illustrates the problem. The first line executes fine, but the line inside the tell block throws an error (below), from the mail rule version, which I had catching the error.

set substr to find text "a" in "abcd"

tell application "Mail"
    set substr to find text "a" in "abcd"
end tell

所以我尝试了解决方法:告诉应用程序发现者,以... 从邮件规则脚本中,但然后把安全性错误

So I tried a workaround: tell application "Finder" to ... from within the Mail Rule script, but that then threw a security error.

推荐答案

这不是一个沙盒的问题 - 这是一个32/64位的问题。邮件是雪豹64位应用程序,而截至目前, Satimage。 osax 是一个32位加法。因此,对于目前来说,我设置邮件到打开32位模式(见图片)。我得出这个结论的阅读 MacScripter论坛上发帖后。我仍然希望听到另一种解决办法,如果Satimage保持一个32位加法。

It's not a sandboxing problem - it's a 32/64 bit problem. Mail is a 64-bit application in Snow Leopard, and as of right now, Satimage.osax is a 32-bit addition. So for the time being, I set Mail to Open in 32-bit mode (see picture). I arrived at this conclusion after reading a MacScripter forum post. I'd still love to hear another workaround, in case Satimage stays a 32-bit addition.

这篇关于为什么不是这个脚本增加从邮件规则运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆