質問

Applescriptスクリプトを使用して、Quicksilverを介してMSGを連絡先に送信します。同様にこのように見えます(リンク)、しかし、連絡先にメッセージを送信するための行は次のとおりです。

tell account of im_contact
    set newChat to make new chat with contacts {im_contact} with new chat window
end tell

IE:MSGをAnneに送信するには、Quicksilverをアクティブにし、 '。'、タイプ anne: my message here また、バックグラウンドに入力されたメッセージが付いたアンとの新しいチャットウィンドウが作成されます(新しいフォーカスウィンドウがワークフローを中断したくないので、バックグラウンドで気に入っています)。
問題は、さまざまな連絡先の場合、タブではなく異なるチャットウィンドウを作成します。

私は助けを求めてアディウムにメールを送りました、そして、彼らは私にこれを試して成功せずに私に頼みました:

tell account of im_contact
    set newChat to make new chat with contacts {im_contact} at end of chat window 1 with new chat window
end tell 

また

tell account of im_contact
    set newChat to make new chat with contacts {im_contact} at end of chat window 1 
end tell 

このスクリプトを変更して、バックグラウンドで新しいチャットウィンドウの代わりにタブを作成するにはどうすればよいですか?

役に立ちましたか?

解決

この問題を解決しました。

set existing_window to first chat window
tell account of im_contact 
    to (make new chat with contacts {im_contact} at end of (chats of existing_window))
end tell
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top