我在我页面顶部的PHP代码中。这段代码就在sql数据库查询之后,我开始布局我的循环语句,在我的网站上构建一个搜索登陆页面。我想在此包含一个地址,但只有在数据库中填充了“Add1”,但是当我运行此代码时,如果出现错误,我会得到一个
我应该说,这段代码在$ htmlResult内。=“来自此处的代码”
tell application "Mail"
try
set theSelectedMessage to selection
set msgCount to count of theSelectedMessage
if (msgCount = 1) then
set theMsg to item 1 of theSelectedMessage
#also tried this
#set theSender to extract name from sender of theMsg
set theSender to (sender of theMsg)
display dialog "name:" & theSender
end if
end try
end tell
我以为你可以做到这一点,但我可能错了
即使能够将此更改改为“找不到地址”也是有帮助的