1
AppleScriptの初心者ですが、まだ基本的な構文では苦労しています。AppleScriptのリストとその句
これは動作します:
tell application "Mail"
set flagged to messages of inbox whose flagged status is true
log count of flagged
end tell
これは動作しません:
tell application "Mail"
set msgs to messages of inbox
set flagged to msgs whose flagged status is true
log count of flagged
end tell
なぜ?あなたがset msgs to messages of inbox
を書くとき、あなたが、そうでない場合の結果を、それを教えていない場合はAppleScriptが自動的get
コマンドを実行して、何が本当に言っていることはset msgs to GET messages of inbox
ある