-- 弹出对话框,输入收件人
set nameDialog to display dialog "请输入收件人:"default answer "luo"buttons {"确认"} default button 1-- 保存收件人邮箱到recipientAddress
set recipientName to text returned of nameDialog
-- 弹出对话框,输入收件人邮箱地址
set addressDialog to display dialog "请输入收件人邮箱:"default answer "luoxiaolei@duck.com"buttons {"确认"} default button 1-- 保存收件人邮箱到recipientAddress
set recipientAddress to text returned of addressDialog
-- 设置邮件标题
set theSubject to"AppleScript Automated Email"-- 设置邮件内容
set theContent to"This email was created and sent using AppleScript!"-- 调用outlook
tell application "Microsoft Outlook"-- 创建邮件
set theMessage to make new outgoing message withproperties {subject:theSubject, content:theContent}
-- 调用邮件
tell theMessage
set myemail to {name:recipientName, address:recipientAddress}
-- 设置邮件收件人信息
make new recipient withproperties {email address:myemail}
-- 发送邮件
send
end tell
end tell
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
2015-12-11 [Git]git常用命令总结
2015-12-11 [struts2]Struts遍历标签<s:iterator>总结 [转]