【问题标题】:Applescript to Paste clipboard text into Messages and send to emailApplescript 将剪贴板文本粘贴到消息中并发送到电子邮件
【发布时间】:2013-10-29 18:14:25
【问题描述】:

标题说明了一切。

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

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

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

【问题讨论】:

  • 你有什么问题?

标签: applescript


【解决方案1】:
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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-11-25
    • 1970-01-01
    • 2017-10-14
    • 1970-01-01
    • 2017-06-18
    • 1970-01-01
    • 2013-03-15
    相关资源
    最近更新 更多