我正在尝试检索触发AppleScript的任何电子邮件的正文.我保存了测试消息,当我单击"应用规则"时,出现此错误:
"无法将<>"Gmail"的<> id> 9574 <>"INBOX"<>中的<>.<>
编辑:这是代码的相关部分:
using terms from application "Mail"
on perform mail action with messages messageList for rule aRule
tell application "Mail"
repeat with thisMessage in messageList
try
say content of thisMessage
on error errMsg
display alert errMsg
end try
end repeat
end tell
end perform mail action with messages
end using terms from
Run Code Online (Sandbox Code Playgroud) 嗨,我遇到了一个非常奇怪的问题.
我有一个基本的chrome扩展,它有一个默认的popup.html文档,定义如下:
<html>
<head>
<script type="text/javascript">
function disp() {
document.getElementById("test").innerHTML = "Bye";
}
</script>
</head>
<body>
<p id="test">Hello</p>
<button type="button" onclick="disp()">'Twas Nice to meet you</button>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
在浏览器中独立运行html文件时,它的行为与预期一致:单击按钮可更改p标记的文本.但是,通过使用chrome扩展,在弹出窗口中按钮似乎没有响应
这是一般的弹出窗口或我的代码特定的东西吗?
这是我的代码:
- (BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
NSLog(@"Beep");
return YES;
}
Run Code Online (Sandbox Code Playgroud)
我将控制台设置为显示"All Output",但我在控制台中看不到"Beep".