0
我不熟悉腳本,並且正在嘗試爲郵件編寫簡單的腳本。我需要發件人地址,或者我們可以說發件人地址。但我沒有從中得到任何東西。我的腳本如下。從蘋果的郵件得到「發件人」或發件人地址
tell application "Mail"
try
set theSelectedMessage to selection
set msgCount to count of theSelectedMessage
if (msgCount = 1) then
set theMsg to item 1 of theSelectedMessage
#also tried this
#set theSender to extract name from sender of theMsg
set theSender to (sender of theMsg)
display dialog "name:" & theSender
end if
end try
end tell
Dialog即將到來,但沒有發件人的詳細信息。
我添加到我的問題在評論....不工作,... –
此代碼應該工作。我測試成功了。 – vadian