0

标题真的说明了一切。

我是applescripts的新手,我希望有人能够解释如何

将剪贴板文本粘贴到消息中并使用 AppleScript 发送给用户。

另外,如果您知道如何发送图像附件而不是剪贴板文本,那将是很棒的,我将不胜感激

4

1 回答 1

0
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
于 2013-10-29T19:57:36.553 回答