Re: Properties within Properties - Scripting Address book
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