• 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: New Adress in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Adress in Address Book


  • Subject: Re: New Adress in Address Book
  • From: John Delacour <email@hidden>
  • Date: Fri, 22 Aug 2003 22:25:10 +0100

At 9:29 pm +0200 22/8/03, michael.slomski wrote:

tell application "Address Book"
make new person at end of last group with properties {last name:"ghj",,
first name:"test", birth date:(date "Dienstag, 2. Juli 1968 12:00:00 Uhr")}
end tell

This will create a new entry. Fine, but how can I add the other information
like phones, street etc?

I can read this info with:
get value of phone 1 of first person

But how can I set this info at the above make statement?


At its simplest:


tell application "Address Book"
set p to {first name:"Ann", last name:"Other"}
set _person to make person with properties p
make phone at end of _person with properties {value:"12345"}
end tell

But you can locate the phone in a number of places.

JD


.
_______________________________________________
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: 
 >New Adress in Address Book (From: email@hidden (michael.slomski))

  • Prev by Date: Re: How does one paste in OS9.2.2
  • Next by Date: [Repost] Keystroke command
  • Previous by thread: Re: New Adress in Address Book
  • Next by thread: Re: New Adress in Address Book
  • Index(es):
    • Date
    • Thread