2016-03-23 9 views
1

私は2つのテーブルを持っている番号の文書を持っています。最初は単純なフォームのようなもので、データを入力し、ドロップダウンから値を選択します(人の名前とメッセージに使用された電子メール+値)。 2番目のテーブルはメッセージが生成される場所です。Macの番号からAppleScript経由でメールを送信する

I.e. in the first table I have: 
subject: textfield 
value1: dropdown 
value2: dropdown 
person: John Doe <[email protected]> 

Second table generates a mail message from table1 values: 
Subject of mail: $subject 
Hi, this is a request for $subject with properties $value1 , $value2. Responsible for your request is $person. 

今、私はメールにメッセージをコピー/ペーストして、被験者/人を手渡します。 誰かが数字のScriptメニューバーから呼び出すAppleScriptを使用して助けてください。番号の値からメッセージ/ &件名を作成しますか?

合成メールのために特定の文房具を引くことは可能でしょうか?

答えて

0

私はNumberを使用しませんが、Numbersセルの値をApplescript変数に抽出できると仮定します。その後、メールを作成するために:あなたが送信する前にメールをチェックする必要がない場合

set mySubject to "subject value from Numbers" 
set myContent to "text content" -- in can be a concat of text and variables 
set mySignature to "name of signature created in Mail" 
set myContact to "joh,@doe.com" 

tell application "Mail" 
activate 
set newMessage to make new outgoing message with properties {visible:true, subject:mySubject, content:myContent} 
set message signature of newMessage to signature Ma_Signature -- not mandatory 
tell newMessage 
    make new to recipient at end of to recipients with properties {name:"", address:myContact} 
end tell 
end tell 

を、あなたは、単に後、送信指示を追加したりすることはできません。

関連する問題