• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Address Book's AIM Handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book's AIM Handle


  • Subject: Re: Address Book's AIM Handle
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 12 Sep 2003 20:10:37 -0700

On 9/12/03 7:48 PM, "Yannis Angelidis" <email@hidden> wrote:

> Can you please give me an ex. on how I can set the AIM Handle of a person?
>
> on makeAIMEntry(firstName, AIMName)
> tell application "Address Book"
> set aPerson to make new person at end of group "myGroup" with
> properties {first name:firstName, note:"whatever"}
>
> -- so far it's OK
>
> set AIM Handle of contact info of aPerson to AIMName -- or
> everything else I've tried with no succes
>
> end tell
> end makeAIMEntry


AIM Handle is an element, not a property, of a person. It thus has its own
class entry in the dictionary, with properties 'label' and 'value'. So you
make it the same way you made aPerson. (BTW, people don't actually have to
be made in groups - you may know that.)

-- AIMLabel is "home", "work", etc.

on makeAIMEntry(firstName, AIMName, AIMLabel)
tell application "Address Book"
set aPerson to make new person at end of group "myGroup" with
properties {first name:firstName, note:"whatever"}

tell aPerson
make new AIM Handle at end of AIM Handles with properties
{label:AIMLabel, value:AIMName}
end tell
save addressbook -- or wait until you've finished doing
everything

end tell
end makeAIMEntry



--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Address Book's AIM Handle (From: Yannis Angelidis <email@hidden>)

  • Prev by Date: Address Book's AIM Handle
  • Next by Date: Re: Address Book's AIM Handle
  • Previous by thread: Address Book's AIM Handle
  • Next by thread: Re: Address Book's AIM Handle
  • Index(es):
    • Date
    • Thread