• 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: Properties within Properties - Scripting Address book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properties within Properties - Scripting Address book


  • Subject: Re: Properties within Properties - Scripting Address book
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 14 Sep 2005 14:25:22 -0700

On Sep 13, 2005, at 11:50 PM, Paul Berkowitz wrote:

Oops. Having said that you need to do it at beginning or end, I left that out. Here's the correct version:

tell application "Address Book"
set p to make new person with properties {organization:"drama", company:true} -- no name, so let the organization behave as name
tell p to make new address at beginning of addresses with properties {label:"work", city:"Miami", state:"FL"}
save addressbook
end tell

At least in Tiger, you don't need the "at beginning of addresses" any more. It won't harm anything if you leave it in, though.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Properties within Properties - Scripting Address book
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Properties within Properties - Scripting Address book (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Setting the computer name
  • Next by Date: Re: Scripting Image Events - some kind of bug ?
  • Previous by thread: Re: Properties within Properties - Scripting Address book
  • Next by thread: Re: Properties within Properties - Scripting Address book
  • Index(es):
    • Date
    • Thread