私はapplescriptを初めて使用し、非常に基本的なことをするのに非常に苦労しています。選択したメールメッセージを添付ファイル付きのRTF形式で保存しようとしています。誤ったスクリプトは次のとおりです。
tell application "Mail"
activate
set AllMessages to selection
set myMessage to item 1 of AllMessages
open myMessage
tell application "System Events"
tell process "Mail"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "Save As…"
delay 2
keystroke "test"
click checkbox "Include Attachments" -- result: ERROR
end tell
end tell
end tell
end tell
end tell
end tell