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

Re: Address Book scripting


  • Subject: Re: Address Book scripting
  • From: Martin Orpen <email@hidden>
  • Date: Mon, 13 Sep 2004 15:54:04 +0100

Title: Re: Address Book scripting
on 13/9/04 3:43 pm, Paul Berkowitz at email@hidden wrote:

On 9/13/04 7:20 AM, "John" <email@hidden> wrote:

If I run this script...
    set pid to id of person lookupName
I get this result...
"
3E64ECD7-0458-11D9-AF02-000A9590350C:ABPerson"
so it looks to me that I'm getting the ID.

But when I try this statement, it opens Address Book, but not to the selected record.
set pid to id of person lookupName
    open location "addressbook://" & pid

It should, assuming that the card with that ID still exists. Does it? If it no longer exists it can't be selected. Also try with the 'open location ...' line outside the Address Book tell block. It works here.


It shouldn’t :-)

“open location” should be outside of the Address Book tell block:

try
   set foo to "Martin Orpen"
    
tell application "Address Book"
        
set bar to id of first person whose name is foo
   end tell
   open location "addressbook://" & bar
end try


Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
 _______________________________________________
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: Address Book scripting
      • From: Martin Orpen <email@hidden>
References: 
 >Re: Address Book scripting (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Address Book scripting
  • Next by Date: Re: Address Book scripting
  • Previous by thread: Re: Address Book scripting
  • Next by thread: Re: Address Book scripting
  • Index(es):
    • Date
    • Thread