「選択したメール メッセージを取得」アクションの後に実行する AppleScript アクションのコードを次に示します。アクション内に配置する必要があります:「AppleScript を実行」
-- This script accepts an input which is a list of message objects from Mail and returns their properties.
-- The properties returned are in the form of an AppleScript properties record.
on run {input, parameters}
tell application "Mail"
set output to {}
repeat with thisMessage in input
set output to output & (properties of thisMessage)
end repeat
end tell
return output
end run
このスクリプトは進行中だと思いますが、そのアクションは AppleScript レコードのリストを返します。AppleScript で必要なフィールドを選択して選択し、すべてのメール メッセージを次のアクションのテキストとして返します。Perl スクリプトはプレーン テキストを解析でき、AppleScript レコードを処理する必要はありません。
上記の AppleScript を使用してレコードのキーと値を調べてから、完成したワークフローで実際に使用する AppleScript を記述して、必要なフィールドだけを選択することができます。
-- ケイデル
kaydell@yahoo.com
http://learnbymac.com