0
所以我做了一個腳本,允許我複製電子郵件的發件人並將其粘貼到Numbers文檔中,複製的地址列出兩個不同的電子郵件,我需要刪除其中的一個。刪除文本,Applescript
tell application "Mail"
\t set theSenderList to {}
\t set theMessages to the selected messages of message viewer 0
\t repeat with aMessage in theMessages
\t \t set end of theSenderList to {address of to recipients of aMessage, " OR"}
\t end repeat
\t set AppleScript's text item delimiters to " "
\t set the clipboard to (theSenderList as string)
\t set AppleScript's text item delimiters to ""
beep
end tell
tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
\t set value of cell "a1" to (the clipboard as text)
end tell
tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
\t set value of cell "b1" to current date
end tell