Re: Address Book scripting --- This looks very weird to me...
Re: Address Book scripting --- This looks very weird to me...
- Subject: Re: Address Book scripting --- This looks very weird to me...
- From: Bernardo Hoehl <email@hidden>
- Date: Mon, 26 Dec 2005 17:44:03 -0200
Thanks Has!
That looks much better!
Greetings,
Bernardo
==============
On 26 Dec, 2005, at 5:35 PM, has wrote:
Bernardo Hoehl wrote:
I have come up with this script to extract every email address from
my address book, and it looks to me a a good monster example. (see
the script at the end of this)
Although it seems to work, it looks very weird to me. Could you folks
send me your comments on how to make it simpler?
set res to {}
tell application "Address Book" to set lst to value of every email of
every person
repeat with subListRef in lst
repeat with emailRef in subListRef
if emailRef's contents is not in res then set end of res to
emailRef's contents
end repeat
end repeat
res
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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