Friday, 15 April 2011

osx - Use applescript to set multiple signatures in Outlook 11 -



osx - Use applescript to set multiple signatures in Outlook 11 -

i'm trying create applescript utilize on outgoing email messages in outlook 11 mac dynamically set email signature in message based on sender address is. have multiple accounts in outlook, , alter signature based on 1 i'm using. below code i've been trying, have not had success. advice?

tell application "microsoft outlook" if message sender contains {name:"emailaddress"} set message signature signature {name:"signaturename"} else set message signature signature {name:"signaturename2"} end if end tell

if understand question, think outlook 2011 has capability built in, without need scripting.

click "outlook", "preferences..." outlook menu click "signatures" icon set signatures need if haven't done so, , give them meaningful names click "default signatures..." button associate relevant signature each business relationship require

there seems bit of trick using this. if want signature business relationship x appear automatically in new message, must first select folder business relationship x before creating new message. if that, message should include right signature have set account.

osx outlook applescript signatures

No comments:

Post a Comment