das geht nur mit GUI scripting…

Show Plain Text
  1. tell application "Mail"
  2.   activate
  3.   close front window
  4. end tell
  5. delay 0.5
  6. tell application "System Events"
  7.   tell process "Mail"
  8.     if exists sheet 1 of window 1 then
  9.       click button 2 of sheet 1 of window 1
  10.     end if
  11.   end tell
  12. end tell
----------
Gruss

Stefan