• 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 Name & Company Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book's Name & Company Name


  • Subject: Re: Address Book's Name & Company Name
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 20 Mar 2004 00:12:41 -0800

On 3/19/04 7:59 PM, "Irwin Poche" <email@hidden> wrote:

> From what's available in the dictionary, I cannot see how the Address
> Book (or a script) differentiates between Company, First Name and Last
> Name. The Company boolean alone doesn't appear to do it.
>
> There isn't a dictionary entry for Company and the value shown for
> Company is returned in the name field.
>
> How can Applescript get the Company, First Name and Last Name of an
> entry that specifies each of these ?

The Address Book AppleScript term for the company field is 'organization'.
'company' (in Panther only, not Jaguar) is a boolean indicating that the
"Company" checkbox has been checked and that the name of the contact will
appear as the company (i.e. organization) in the alphabetical "All" listing
and in large letters on the card.

What you're looking for is the 'organization' property.

--
Paul Berkowitz

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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 Name & Company Name (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: Template for Debugging "on Open..." Handler
  • Next by Date: Re: osascript crashed and burned getting raw source of huge email attachments
  • Previous by thread: Re: Address Book's Name & Company Name
  • Next by thread: Re: osascript crashed and burned getting raw source of huge email attachments
  • Index(es):
    • Date
    • Thread