• 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: Getting a reference to email by ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book: Getting a reference to email by ID


  • Subject: Re: Address Book: Getting a reference to email by ID
  • From: Todd Geist <email@hidden>
  • Date: Fri, 11 Apr 2008 08:02:35 -0700

thanks every one for your help,

I was trying to find the shortest route to finding an email object in Address book by it's unique ID. This doesn't seem possible. What I came up with is the following handler.

on getEmail(personID, emailID)
	tell application "Address Book"
		get email id emailID of person id personID
	end tell
end getEmail


This works, but I have to reference the parent object as well.

It does seem a bit strange to have a unique ID for an object but not allow any way to get that object without having to reference the object's parent. Perhaps it is because the id may not be truly unique?? I don't know...

Thanks

Todd


Todd Geist ------------------------------------------------------------- geist interactive 323-383-3600 MBS Plug-in, 12 plug-ins in one




_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Address Book: Getting a reference to email by ID
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Address Book: Getting a reference to email by ID (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: Address Book: set property values dynamically
  • Next by Date: Re: Address Book: set property values dynamically
  • Previous by thread: Re: Address Book: Getting a reference to email by ID
  • Next by thread: Re: Address Book: Getting a reference to email by ID
  • Index(es):
    • Date
    • Thread