das geht nur mit GUI scripting…
Show Plain Text
- tell application "Mail"
- activate
- close front window
- end tell
- delay 0.5
- tell application "System Events"
- tell process "Mail"
- if exists sheet 1 of window 1 then
- click button 2 of sheet 1 of window 1
- end if
- end tell
- end tell