Apple メールを開かずにメールを送信する方法を検索したところ、AppleScript - メールアプリを開かずにメールを送信する方法という質問が見つかりました。
ただし、これは 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
終わりを告げる
1 つの問題: これを実行したいのですが、件名のhelloの代わりに、 clipboardが必要です。そのためにグーグルで、私は2つのことを見つけました
keystroke "v" using {command down}
また
return (the clipboard)
その二人に「こんにちは」を入れてみました。しかし、どれも機能しません。
私はapplescriptを知らないので、グーグルで調べて、ここで質問します。