Title: Re: Script to delete from "recently  used address list"
On 7/13/05 5:23 PM, Douglas Christopherson deftly typed out:

> Is there a script to simplify this procedure.

In case what you actually wanted to do was remove just one entry from the recent addresses list, AND you have a message from that person around, this script should do that for you:

tell application "Microsoft Entourage"
    set junkCat to category "Junk"
    set prevDelims to AppleScript's text item delimiters
   set AppleScript's text item delimiters to {" "}
    set theMessage to item 1 of (get current messages)
    set fullname to display name of sender of theMessage
   set eAddress to address of sender of theMessage
   set firstname to words 1 thru -2 of fullname
   set lastname to word -1 of fullname
   set AppleScript's text item delimiters to prevDelims
   set person to make new contact with properties {first name:firstname, last name:lastname, address:eAddress, category:junkCat}
    delete person
end tell

-Remo Del Bello

--
"Thinking is for losers"
- Bart Simpson

Reply via email to