• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 13 Sep 2005 23:50:06 -0700
  • Thread-topic: Properties within Properties - Scripting Address book

Title: Re: Properties within Properties - Scripting Address book
On 9/13/05 11:45 PM, I wrote:

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


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


--
Paul Berkowitz
 _______________________________________________
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: Christopher Nebel <email@hidden>
References: 
 >Properties within Properties - Scripting Address book (From: chet kelley <email@hidden>)

  • Prev by Date: Re: Properties within Properties - Scripting Address book
  • Next by Date: Converting Mac Roman and/or UTF 16 to UTF 8?
  • Previous by thread: Re: Properties within Properties - Scripting Address book
  • Next by thread: Re: Properties within Properties - Scripting Address book
  • Index(es):
    • Date
    • Thread