[英]Applescript to Paste clipboard text into Messages and send to email
標題說明了一切。
我是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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.