2016-04-05 19 views
0

gönderdiği güne bağlı olarak eklenecek bir e-posta iletisi eklemek için kullanıyorum. Otomatik Yanıtlayıcı'da bir iş akışını bitirmeye çalışıyorum ve içeriğin bağımlı olduğu bir e-posta oluşturmak için tek adım inşa edildiği gün.Geçerli tarihi, e-postanın konu satırına ve e-postanın gövdesine,

Outlook e-postasının konusu, geçerli tarihi içermelidir ve e-postanın gövdesi, e-postanın ya "e Mevcut hafta "veya" ... önümüzdeki hafta için ".

Bu mümkün mü? Automator "Yeni Outlook Mail Mesajı Oluştur" u kullanmayı denedim ancak içerideki her türlü koşulu uygulayamadım, bu yüzden ham Applescript'in gitmek için bir yol olduğunu düşünüyorum.

+0

Evet, ham Applescript gitmenin yoludur. 1. Günün tarihini nasıl alacağınıza dair örnekler bulamadığınıza şaşırdım. 2. Hedef tarihinize göre karşılaştır, 3. Verilen bir konu ve gövde içeriğiyle Outlook'ta yeni e-posta oluştur – jweaks

cevap

0

Evet, AppleScript daha esnek olacaktır. senin Otomatikleştirici akışında, bir eylem "run AppleScript" ekleyip komut dosyasını değiştirin: E-posta adresi "giriş" geçmek ayarlamak zorunda

on run {input, parameters} 
set My_Destinataire to "[email protected]" -- assign here the email address 

set Wday to first word of date string of (current date) -- get the days of the week in local language 
if Wday is in {"Saturday", "Sunday"} then -- fill subject and content for week end 
set My_Subject to "we are " & Wday & " !" 
set My_Content to "this email is for next upcoming week…" 
else -- fill subject and content with message for working days 
set My_Subject to "we are " & Wday & ", an other working day !" 
set My_Content to "this email is for current week…" 
end if 

tell application "Microsoft Outlook" -- creation of the new email itself 
activate 
set NewMessage to make new outgoing message with properties {subject:My_Subject, content:My_Content} 
make new recipient at NewMessage with properties {email address:{name:"", address:My_Destinataire}} 
send newMessage -- if you want to send the message directly without checking it 
end tell 
return input 
end run 

ve neye ihtiyacınız tabi/içerik dizeleri ayarlamak gerekir iş günü ve hafta sonu için.

+0

Üzgünüm Jweaks, " Görünüm". Komut dosyasını yeni güncelledim ve "Microsoft Outlook" ile "Mail" i değiştirdim. Sözdizimi neredeyse aynı. Ana fark alıcıları eklemek. – pbell

+0

Posta için kullanırdım - farklar ne olurdu? 'Microsoft Outlook'u' Mail 'ile değiştirmenin tek farkı nedir? –

+0

Evet, "Microsoft Outlook" tarafından "Mail" yerine, ancak ayrıca alıcıları ekleme satırı: Mail'de: alıcılara alıcılara alıcıya yeni bir ad verin {name: "", address: Mon_Destinataire} – pbell