Probiers mal mit AppleScript. Unter 10.6 funktionierts. neuere musste mal testen.
Empfangsbestätigung aktivieren:
Empfangsbestätigung deaktivieren:
Show Plain Text
- tell application "Mail"
- quit
- end tell
- tell application "Terminal"
- activate
- set ReceiptActive1 to "defaults write com.apple.mail UserHeaders '{"
- set ReceiptActive2 to "Disposition-Notification-To"
- set ReceiptActive3 to "="
- set ReceiptActive4 to "mail@example.com"
- set ReceiptActive5 to ";}'"
- set zeichen to ASCII character 34
- set neueZeile to ASCII character 13
- do script ReceiptActive1 & zeichen & ReceiptActive2 & zeichen & ReceiptActive3 & zeichen & ReceiptActive4 & zeichen & ReceiptActive5 & neueZeile
- end tell
- delay 2
- tell application "Mail"
- activate
- end tell
- tell application "Terminal"
- quit
- end tell
Empfangsbestätigung deaktivieren:
Show Plain Text
- tell application "Mail"
- quit
- end tell
- tell application "Terminal"
- activate
- do script "defaults delete com.apple.mail UserHeaders"
- end tell
- delay 2
- tell application "Mail"
- activate
- end tell
- tell application "Terminal"
- quit
- end tell