MACSCRPT Archives

October 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chuck Pelto <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 3 Oct 2007 13:17:33 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
On Oct 3, 2007, at 12:50 PM, John Delacour wrote:

> At 09:52 -0600 3/10/07, Chuck Pelto wrote:
>
>> Greetings All,
>>
>> What are the calls to:
>>
>> [1] Check if there is a record in Macintosh OS X Address Book with  
>> specific data in it?
>
> tell application "Address Book" to get the name of people whose  
> vcard contains "sm"

How about the verbiage for getting the home e-mail?

For instance....

tell application "Address Book"
	
	get name of people whose property street contains "Greenwood"
	
end tell

Doesn't work.


>> [2] Update an existing record in Address Book with data?
>> [3] Create a new record in Address Book with data?
>
> What problems are you having?  Address Book has always seemed to me  
> pretty easy to script.

It might be, for you, but I've had no fun at all with it. Probably  
just me, but nevertheless....

My problem is that whatever variation on verbiage I write to find or  
replace data doesn't work.

I need examples of what DOES work.

Regards,

Chuck

ATOM RSS1 RSS2