【发布时间】:2013-10-29 18:14:25
【问题描述】:
标题说明了一切。
我是applescripts的新手,我希望有人能够解释如何
将剪贴板文本粘贴到消息中并使用 AppleScript 发送给用户。
另外,如果您知道如何发送图片附件而不是剪贴板文本,那将是非常棒的,我将不胜感激
【问题讨论】:
-
你有什么问题?
标签: applescript
标题说明了一切。
我是applescripts的新手,我希望有人能够解释如何
将剪贴板文本粘贴到消息中并使用 AppleScript 发送给用户。
另外,如果您知道如何发送图片附件而不是剪贴板文本,那将是非常棒的,我将不胜感激
【问题讨论】:
标签: applescript
set clipContent to (the clipboard as text)
tell application "Mail"
set myMessage to make new outgoing message at the beginning of outgoing messages with properties {subject:"Clipboard Content"}
tell myMessage to make new to recipient at beginning of to recipients with properties {address:"first@email.com, second@email.com"}
set myMessage's content to clipContent
set myMessage's visible to true
activate
-- Uncomment the line below to send the message
--send myMessage
end tell
【讨论】: