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: has <email@hidden>
- Date: Mon, 26 Dec 2005 19:35:28 +0000
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:
This email sent to email@hidden