[技術] 寫AppleScript叫Mail自動轉寄信件

Written on 12:58 上午 by Yu Lai

相信大家都有用到Forward的功能吧,
而一些好文章也都會轉來轉去的吧。
但如果是一堆mail就會按forward再打
mail address等同樣的動作弄到煩吧.. XD

身為懶人的我,找了一下網路,寫了這樣功能的AppleScript。

tell application "Mail"
set theMessages to the selection
repeat with thisMessage in theMessages
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set content to thisMessage's content
set subject to thisMessage's subject
make new to recipient with properties {address:"blahblah@blahblah.org"}
end tell
send newMessage
delete thisMessage
end repeat
end tell

If you enjoyed this post Subscribe to our feed

2 Comments

  1. 木可 |

    作者已經移除這則留言。

     
  2. 木可 |

    作者已經移除這則留言。

     

張貼留言