• 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 --- This looks very weird to me...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Address Book scripting --- SPAM ALERT
      • From: Gnarlodious <email@hidden>
References: 
 >Re: Address Book scripting --- This looks very weird to me... (From: has <email@hidden>)

  • Prev by Date: Re: Address Book scripting --- This looks very weird to me...
  • Next by Date: GC header gets pixilated
  • Previous by thread: Re: Address Book scripting --- This looks very weird to me...
  • Next by thread: Re: Address Book scripting --- SPAM ALERT
  • Index(es):
    • Date
    • Thread