Hello,
I am trying to use KM to update keywords from the Daylite mail assistant in mail. Rather than click and move and click and click and click.
When I send an email I want to update the keywords for that contact.
First problem is to select the contact from dmi, this poses a problem from the mouse move standpoint as there may be more than one contact attached to the mail. How do I select from a possible moving target with the mouse? I can not find a way from the menu in mail to select it.
Once I am on the contact I have the same problem with keyword as there can be none, one or many so the plus sign moves.
I have tried inserting f script into the applescript action with little success.
Here is the f script. I need it to just use the selected contact and add a keyword for “Initial email sent” and others as needed.
person := objectContext objectForEntityNamed:‘Contact’ wherePrimaryKeyValueIs:5400.
keywords := (objectContext optionsCache) valueForKey:‘activeContactKeywords’.
nonprofit := keywords objectWithAttribute:‘name’ equalTo:‘Non-Profit’.
developer := keywords objectWithAttribute:‘name’ equalTo:‘Developer’.
person addToKeywords:nonprofit.
person removeFromKeywords:developer.
person primaryKeyValue.
Thanks for your input.
BIll