【发布时间】:2014-11-15 19:48:46
【问题描述】:
我搜索了如何在不打开apple mail的情况下发送电子邮件,发现问题AppleScript - How to send a email without the mail app opening up
但是,我正在使用 Keyboard maestro 执行此操作,这样我就可以在任何应用程序中使用热键发送特定的电子邮件。在谷歌搜索解决方案后,我发现这个脚本做得很好:
tell application "Mail"
set theNewMessage to make new outgoing message with properties {subject:"hello", content:"You got a new file in your Downloads folder, girl!", visible:true}
tell theNewMessage
make new to recipient at end of to recipients with properties {address:"myemail@mail.com"}
send
end tell
说完
一个问题:我想这样做,但是我想要剪贴板,而不是主题中的hello。谷歌搜索,我发现了两件事
keystroke "v" using {command down}
或
return (the clipboard)
我试着用那两个来代替“你好”。但它们都不起作用。
我不知道applescript,因此在谷歌搜索和我的问题在这里。
【问题讨论】:
标签: applescript keyboard-maestro